-
Notifications
You must be signed in to change notification settings - Fork 221
ImportError: dlopen on MacOs chip M1 #286
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
Comments
We have yet to test this sdk on M1 Macs. Thanks for letting us know about this ImportError and make sure to add any other errors that you run into below. |
I have the same issue with I am trying to run pubsub example too. M1 MacBook Pro
When I install awsiotsdk missing import is fixed but
|
Following. |
Manage to get it to work with python-alpine docker image and awsiotsdk works fine instead of awsiot |
We are currently working on fixing this for Apple M1. Skip to the end for a short term workaround. Background: awsiotsdk depends on awscrt, which contains some C code that needs to be compiled per-platform. We haven't done the work yet to provide precompiled wheels for Apple M1. It also appears that our precompiled wheels for Python 3.9 and 3.10 on macOS are mis-labeled as "universal2" wheels (meaning they should work on either M1 or Intel Macs), but in reality these files only work on Intel right now. The real fix is to provide wheels that work on M1 or Intel. We're currently working on this. The short term workaround is to compile the code on your own Mac. You can do this by following these steps:
|
Thank you for your support! |
Ok, fixed! |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone !
I just migrated to a new M1 MacBook Pro, and i get an error while running a sample on macbook pro with M1 chip.
An error has occurred
My packages installed
Python version: 3.10.2
pip list
Package Version
awscrt 0.13.3
awsiotsdk 1.9.2
boto3 1.21.15
botocore 1.24.15
jmespath 0.10.0
pip 22.0.4
python-dateutil 2.8.2
s3transfer 0.5.2
setuptools 58.1.0
six 1.16.0
urllib3 1.26.8
The text was updated successfully, but these errors were encountered: