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

pybinding can not run on MAC with M3 chip. #54

Open
xuey06 opened this issue Jan 25, 2024 · 4 comments
Open

pybinding can not run on MAC with M3 chip. #54

xuey06 opened this issue Jan 25, 2024 · 4 comments

Comments

@xuey06
Copy link

xuey06 commented Jan 25, 2024

Dear developers,
I installed pybinding by the "pip3 install -i https://test.pypi.org/simple/ pybinding" on my Mac book with M3 chip. When I import pybinding, I got the following error message. How can I fix it?
run_error

@BertJorissen
Copy link
Collaborator

Hi
I'm not certain what went wrong. It cannot find the compiled libraries (that's the _cpp error), but the python 11 M-chip Apple version should be supported.
An error with current Apple machines is that during the installation the Rosetta was active in the terminal, installing an other version than the one needed by the system. Please try again to install pybinding and be sure to turn off the Rosetta support.
Best
Bert

@xuey06
Copy link
Author

xuey06 commented Jan 25, 2024

Thanks for your reply. I reinstalled pybinding using the command 'arch -arm64 pip3 install -i https://test.pypi.org/simple/pybinding'. However, the obtained results are the same as before. The terminal is also set to run without Rosetta support. Is there anything else I can check?

@xuey06
Copy link
Author

xuey06 commented Jan 25, 2024

The Python environment was also checked with 'file $(which python3)', which indicates 'arm64'. I have also enforced Python to run with arm64 using 'arch -arm64 python3'. However, no changes have occurred.

@BertJorissen
Copy link
Collaborator

Please make a complete re-installation of pybinding, and add the --verbose part tot the pip install command. I'm almost certain that rosetta is enabled, x86_64 is exactly the behavior expected from an installation with rosetta. If possible, make a complete new installation of a python virtual environment to be certain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants