-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
QtBindingsNotFoundError on Importing Spyder with Python 3.11.6 #470
Comments
Hey @rdm4317, thanks for reporting. I think this problem is caused because you're using a quite old Mac version (10.13), which is not compatible with the latest PyQt5 wheels. The solution is for you to remove your virtualenv, create a new one and run there
If that also fails, please remove that virtualenv, create a new one and run
Let us know if that works for you. |
Hey @ccordoba12, thanks for getting back to me so promptly. Apologies for the confusion above, I am running macOS Ventura 13.6.1, not 10.13. Consequently, I am unable to install the older versions suggested. |
Sorry, my bad. Then this problem is perhaps caused because you're mixing several Pythons in your system. A couple of questions about that:
|
No problem! My setup uses pyEnv, which you can find here: pyEnv Homebrew Formula, to manage different Python versions installed via Homebrew. The environment in question was created by running the Firedrake installation script (details here: Firedrake Installation), using Python 3.11.6 managed by pyEnv. This process successfully creates the virtual environment. Previously, I had no trouble installing Spyder in this environment. However, I've run into a problem after updating Apple's Xcode from version 14.3.1 to 15.0. Since the Firedrake installation now requires the latest Xcode version, reverting to an older Xcode version isn't a feasible solution. |
Hi there, not totally sure but I think there are some issues related with PyQt5 wheels compatibility for arm64 macOS, is your macOS arm64 @rdm4317 ? Maybe you could get more info about the error by trying to import PyQt5 by itself. From some testing napari folks where doing on arm64 macOS machines I think you will get an |
Hey @dalthviz, thanks for getting back to me. Yes, it is an arm64 macOS.
|
Hey @dalthviz, @ccordoba12, I solved this issue by upgrading to macOS 14.1.1 as suggested by the above napari thread. Thanks for your help. |
Description
I am encountering an issue with the
qtpy
module while trying to set up Spyder on Python 3.11.6. Despite having installed the necessary Qt and PyQt5 dependencies,qtpy
is raising aQtBindingsNotFoundError
when I try to import Spyder.Steps to Reproduce
pyqt5-sip
andpyqt5
successfully.qtpy
raises an error.Expected behavior: Spyder should import without any issues.
Actual behavior: Encountering a
QtBindingsNotFoundError
fromqtpy
.Traceback
Traceback (most recent call last):
File "/Users/rdm4317/Development/firedrake/bin/qtpy", line 5, in
from qtpy.main import main
File "/Users/rdm4317/Development/firedrake/lib/python3.11/site-packages/qtpy/init.py", line 287, in
raise QtBindingsNotFoundError from None
qtpy.QtBindingsNotFoundError: No Qt bindings could be found
Versions
Additional Context
I have followed the standard installation procedure for Spyder and its dependencies. Any guidance on how to resolve this error would be greatly appreciated.
The text was updated successfully, but these errors were encountered: