Skip to content
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

ImportError - Wrong Architecture - M1 Apple Silicone #2680

Closed
simon-tarr opened this issue Aug 9, 2021 · 1 comment
Closed

ImportError - Wrong Architecture - M1 Apple Silicone #2680

simon-tarr opened this issue Aug 9, 2021 · 1 comment

Comments

@simon-tarr
Copy link

I'm running on an M1 (Apple Silicone) Macbook and trying to develop some Azure Functions within a Django project. I require the following packages:

azure-common
azure-functions
azure-storage-blob
requests

When I start debugging mode to run functions for local development I get the error:

ImportError: dlopen(/opt/homebrew/Cellar/azure-functions-core-tools@3/3.0.3477/workers/python/3.9/OSX/X64/grpc/_cython/cygrpc.cpython-39-darwin.so, 2): no suitable image found.
Did find: /opt/homebrew/Cellar/azure-functions-core-tools@3/3.0.3477/workers/python/3.9/OSX/X64/grpc/_cython/cygrpc.cpython-39-darwin.so: mach-o, but wrong architecture

I've been trying for hours to fix this - it must be some issue with x86 and arm64 builds of various libraries etc. but I've honestly no idea how to resolve.

Has anyone seen this before? If so, could any pointers be provided to I can successfully run debugging for Azure Functions?

@ejizba
Copy link
Contributor

ejizba commented Nov 18, 2021

Consolidating M1 issues. Will use Azure/azure-functions-python-worker#915 for Python work and #2834 for core tools

@ejizba ejizba closed this as completed Nov 18, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Dec 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants