-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unable to install on macOS Big Sur (release version) and Xcode 12.2 #5568
Comments
You're hitting this error in compiling |
It is odd that pip isn't grabbing a wheel here unless you're on Apple Silicon though. If you're on x86_64 you may want to investigate whether you get binary wheels properly and file a bug with pip if not. |
See also hynek/argon2-cffi#68 and https://foss.heptapod.net/pypy/cffi/-/issues/477 My bug reporter went silent unfortunately but there's already a bug on cffi that people know about. |
Are there any workarounds for this? Python is used in a few of my work projects, and I normally don't interact with python so unsure how to progress. |
@chark I had the same issue with CFFI when compiling on macOS 11 with the included version of Python 3.8. Switching to an alternative distribution fixed this for now. I'm using |
@dustinrb I am not to sure what you mean by this. Would this by to run |
For Big Sur Intel this appears to be pypa/pip#9138. (Note that the pip issue includes some ugly workarounds users can use) |
For those who have run into this and land on this issue from google searching, creating an environment via |
Thanks @sdebnath I have done this and it has worked. |
Worked, thanks a lot! |
|
Now that cffi compiles against Apple Silicon you can compile Until we have access to M1 resources in our CI infrastructure (or I get an M1 Mac) we won't be able to ship wheels so this will be the only way to build cryptography using Apple Silicon for the foreseeable future. |
Please note that due to that pip/packaging bug you won't automatically get the wheel on x86_64 at this time either. You can either build it yourself (with those same instructions), manually download the wheel and install it (which will work just fine), or wait for pip to ship a fix. |
this is working for me on M1 mac |
Looking forward to that! In the meantime, have people been able to compile cryptography on Apple Silicon using the instructions in the link? The command outlined on the site seems to crash with the same error as just plain running
If I can be of help, let me know! I get the same error when I try to run [my understanding of the approach of using |
I have no trouble building cffi and cryptography locally on an M1 mac, but apparently my environment is somehow unusual. |
Ah, fair point -- they did mention "installing python 3.9 via homebrew", which was why I made the distinction. I'm still early enough in my setup process that I'm not too worried about blowing away my environment. Can I ask how you set up your environment? Did you install Python 3.9 via homebrew or from |
Using command
sudo pip3 install cryptography
to install the package. Tried to install dependency managerconan
first.Getting this errors in the console (below). What can I do? I'm on an Intel Mac, not ARM.
The text was updated successfully, but these errors were encountered: