-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't start function host for debugging python function on m1 #2394
Comments
@Valansch thank you for reporting this issue. We are working to reproduce this issue. In the meantime, we have not yet validated support on m1, so we will need to go through that process before we can assure compatibility. |
Thank you for your reply. I know the M1 is not officially supported. But If you find a workaround in the meantime I would be grateful if you could share it here. |
One piece of information that I left out of the original issue: |
I'm having similar problems - open #2397 for my issue. In may case adding the Azure IoT Python SDK caused the issue. |
Hi @Valansch, Looks like gRPC doesn't have an M1 wheel yet (required for python runtime to communicate with the host) - https://pypi.org/project/grpcio/#files. This is why this won't work correctly. I don't know if This is a surprise for me.
Could you try the following in the terminal (not in VSCode, and not debugging) - .venv/bin/activate
func host start And paste the output? Edit - |
You are right
Installing CoreTools again does not change anything for me:
However I found a workaround here: Using the python 3.8.2 shipped from xcode allows me to run CoreTools again. This workaround works for me. If you need any info from me in order to fix this issue I will gladly help. |
Consolidating M1 issues. Will use Azure/azure-functions-python-worker#915 for Python work and #2834 for core tools |
Whats the issue?
When trying to run:
>func host start
i receive:
ModuleNotFoundError: No module named '_ctypes'
Full error
How to reproduce
System
Additional info
Curiously when trying to run the function from within vscode I get a different, but similar error
ModuleNotFoundError: No module named '_ctypes'
Maybe that's a hint as to whats going on.
Full error in VSCode terminal
The text was updated successfully, but these errors were encountered: