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

Python 3.9.12 on OSX #445

Open
BoltzmannEntropy opened this issue Sep 27, 2022 · 6 comments
Open

Python 3.9.12 on OSX #445

BoltzmannEntropy opened this issue Sep 27, 2022 · 6 comments

Comments

@BoltzmannEntropy
Copy link

BoltzmannEntropy commented Sep 27, 2022

Python 3.9.12 (main, Apr 5 2022, 01:53:17)
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.

from projectq import MainEngine
zsh: illegal hardware instruction python

@Takishima
Copy link
Collaborator

Hmm... this is weird as Python 3.9 should be officially supported on Apple Silicon.
I will try to adapt PR #444 to give you a possible workaround.

@Takishima
Copy link
Collaborator

Could you try the following using the branch on my fork that is used for PR #444 ?

PROJECTQ_NOINTRIN=1 python3 -m pip install projectq -v

@BoltzmannEntropy
Copy link
Author

Thank you so much for the effort. There seems to be issues with the M1 chip, what I did was to uninstall conda and install:
pyenv global 3.8.10

All the best,

@Takishima
Copy link
Collaborator

So that's your first issue: Python 3.8.X is not officially supported on Apple Silicon. Please try to install a more recent Python version and try again.

@Takishima
Copy link
Collaborator

Also try downloading the code from https://github.com/Takishima/ProjectQ/tree/feature/apple-mx-processors (you can either use Git or download the ZIP file; in the latter case, unzip it somewhere on your system and then simply do python3 -m pip install path/to/unpacked/

@Takishima
Copy link
Collaborator

Did you try the latest version? Did it help?

If not, this is probably related to the fact that Python 3.8 is not officially supported on Apple Silicon and there is little we can do for the compiled C++ code (since you're compiling the code on your machine locally anyway).

Perhaps if you could post the full log of executing python3 -m pip install projectq -v I could look a bit more into this issue.

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