pybinding icon indicating copy to clipboard operation
pybinding copied to clipboard

pybinding can not run on MAC with M3 chip.

Open xuey06 opened this issue 2 years ago • 4 comments

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

xuey06 avatar Jan 25 '24 05:01 xuey06

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

BertJorissen avatar Jan 25 '24 10:01 BertJorissen

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 avatar Jan 25 '24 13:01 xuey06

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.

xuey06 avatar Jan 25 '24 14:01 xuey06

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.

BertJorissen avatar Jan 25 '24 16:01 BertJorissen