-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Error launching Azure Function (Python) in Azure Functions & Python 3 container on Apple M1 #835
Comments
@anthonychu @TsuyoshiUshio Is anything other than x86_64 / amd64 currently supported? I assume the problem here is the intel toolkit is in the image? |
@Chuxel It looks as though the image was built as an
And then from inside the instantiated container:
|
@MrThePlague Thanks. Does this reproduce on an intel Mac, Linux, or Windows machine? Either way, I'll let @anthonychu and @TsuyoshiUshio from the functions team respond further. |
@Chuxel Thanks! Everything works correctly with an Intel Mac. |
The Azure Functions host and Core Tools only support x86/64 right now. The work to do so still needs to be prioritized so I wouldn't expect to get there in the short term. In addition to the host and CLI, we'll also need to produce ARM builds of language workers (some have native dependencies like gRPC), do a fair bit of testing, and produce multi-arch images. |
Thanks for the reply! That all makes sense; however, my (obviously incorrect) assumption would've been that because this image is built as an |
Was there any solution to this problem ? I have an M1, getting the same error and cant get my function app in docker to work. |
@ejizba and team are working on ARM support in Azure Functions toolchain. They might be able to provide some insights on whether the image is able to be run in emulation or if we need to wait for the ARM support to arrive and corresponding multi-arch Core Tools images to ship. |
Here's the issue tracking Apple Silicon support in core tools: Azure/azure-functions-core-tools#2834 We have seen some users report success running in x64 emulation, but I don't know the particulars and I don't think any of them were using Docker |
I'm not 100% sure if this issue is being submitted to the correct repo; however, it looks as though I'm unable to launch a function locally when leveraging the
Azure Functions & Python 3
container image when using a device running on Apple Silicon (M1).When attempting to launch the function using the
Run and Debug
window within VS Code, I receive the error:When attempting to launch the function directly from the terminal using
func host start
, I receive the error:(Example) Steps to reproduce:
These steps work fine when executed on an Intel machine.
The text was updated successfully, but these errors were encountered: