-
Notifications
You must be signed in to change notification settings - Fork 33
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
Advice for M1 mac installation #83
Comments
@dokato: any thoughts on that? @swilson27: technically
Let me know if you run into any issues. |
Could pyqt5 be moved into an optional dependency? I regularly have installation issues with it on x86 too. |
I'm on Mac M1 and used to have much more problems with pyqt in the past. Recently, I succeeded with creating a conda environment like this:
(some packages can be probably skipped, leaving for completeness, just in case) |
I was thinking about that too but just tried uninstalling my PyQt5 and then |
Hi @swilson27. Has any of the above helped you to install navis? |
In case it's useful for anyone else, a cheat code for this which will stay up to date with wget -O - https://raw.githubusercontent.com/navis-org/navis/master/requirements.txt \
| grep -v 'PyQt' \
| pip install -r /dev/stdin It'll also install the dev reqs, but that shouldn't be too much of a problem. |
If pyqt5 is only used as a vispy backend, should we just use a different backend? Both pyqt6 and pyside6 have macos-universal2 wheels for py3.6+. |
PyQt5 causes installation issues on M1 macs (see issue #83). PyQt is not used explicitly; only as a backend for vispy. PyQt6 does not seem to have such issues on M1, and selecting it as a vispy extra rather than a direct dependency should be more robust.
Progress: on master, no backend is installed if you just |
There are difficulties with installing navis on an M1 mac, with PyQt5 appearing to be the root. Running pip3 install navis in the terminal raiss the following error:
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
Querying qmake about your Qt installation...
/opt/homebrew/bin/qmake -query
Traceback (most recent call last):
File "/Users/swilson/documents/devneurons/devenv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
Note that this applies for python 3.8, .9 and .10. I previously managed to get this working, so there is definitely a means, but stupidly didn't note down which fix online worked. If anyone has any insights or has succeeded with installing navis on M1 recently, please do let me know
The text was updated successfully, but these errors were encountered: