-
Notifications
You must be signed in to change notification settings - Fork 224
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
Pynacl on Apple Silicon/ARM64 #654
Comments
Building pynacl in a venv using M1 native homebrew python3.9 works on my M1 test machine. This, unfortunately, makes it highly like that your issue is some type of environment problem specific to your circumstances. The error suggests symbol issues in cffi so you may want to try separately installing cffi first, or reinstalling it using --no-binary cffi to make it recompile in case you have a cached wheel compiled against a non-existent dylib. If you're not installing in a venv try making a new one and installing there as well. |
I have the same problem on my M1... bcrypt also fails with exactly the same error. |
What happens if you run this command:
|
The same problem comes up, but it is apparently known issue with CFFI other libs have the same problem, e.g. |
Maybe it's working for @reaperhulk because he's using x86 arch in terminal/rosetta?
|
yes, I have just setup rosetta2 x86_64 python3 and it works with that one... |
@ice29, I guess it will work in time so... |
I bought this M1 mac specifically to test against arm64 for PyCA projects so my entire Python toolchain (and everything I use to test pynacl, bcrypt, and cryptography) is M1 native and not run through rosetta 2 😄
Given the amount of state inherent in a C build toolchain it's possible I did something (that I've now forgotten) to make this all work I suppose. |
@reaperhulk I am unfortunately still getting this error on my m1 mac. I am also in the process of filing a 'downstream' bug report with the Fabric team, as Note: I am NOT using rosetta2.
|
@eblume What happens if you uninstall cffi and then attempt to install it with |
I also tried with replacing the last command with simply |
I was able to install using the following setup:
|
If the previous solution isn't working for you, add |
We ship a universal2 wheel now. |
Trying to
pip3
installpynacl
on an M1 Mac withpip3
version20.3.3
.Get this message on install - any ideas?
Other libs are working ok, such as
tinyec
.This is what I have installed:
The text was updated successfully, but these errors were encountered: