-
Notifications
You must be signed in to change notification settings - Fork 43
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
Trying to install on m1 #128
Comments
Same problem with the arch mismatch:
I'm trying to build the package on an M1 Mac running the nightly version of PyPy3.9 that introduced support for M1. |
There is no An example of a script that can do this (ofk should be run in the
Tested with
|
I’m not sure what you mean by that. There is an entire PostrgreSQL stack installed and building psycopg2cffi under cPython works as expected. The issue here is that everything on M1 is supposed to be arm64 but for whatever reason under PyPy it attempts to build for x86_64 which prevents the linker from working (the warning about mixing architectures and ignoring libpq). Is your example from an M1 machine? |
Ignore my comments in this thread, I was accidentally testing it in the wrong virtualenv that was running an x86_64 build of PyPy. It installs and imports fine when using the correct architecture:
|
I just realised that I confused something. At the moment when I used this script, there were no pypy for m1 available (they introduced it only in July 2022). So, I ran this on m1 on rosetta, yes, and there was an issues with architecture mismatch during linking, because m1 version of postgres was installed into the system. Now this should just work on pypy on m1, i guess. |
Does anyone try to install
psycopg2cffi
on mac m1?psycopg2
works fine for me. But forpsycopg2cffi
I got this errorThe text was updated successfully, but these errors were encountered: