-
Notifications
You must be signed in to change notification settings - Fork 4
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
ThreediToolbox 1.16: ImportError: cannot import name 'sip' from 'PyQt5' #548
Comments
This error should be impossible, as "sip" is bundled with pyqt5. But.... a combination of unexpected/undesired behaviour, a corner case and a bug made it possible after all.
There is a new pip option we could use, but that might need a newer pip than is included with qgis/python3.7, so using it might actually break the install. Anyway, that is the very creative way in which this importerror occurred :-) |
Actually, what I wrote above is too creative. The actual problem is simpler. pyqtgraph released 0.12 on 25 march 2021, just a week ago. It includes this change: pyqtgraph/pyqtgraph@30a64d5#diff-82c45b216a85d25c95e4983b8c9ef44904bad1e5c6fafbec2abe74ef3ca7196cR137 The import should be fine, as that import works since pyqt version 5.11, see https://www.riverbankcomputing.com/static/Docs/PyQt5/incompatibilities.html#pyqt-v5-11 But.... if I look at the PyQt version, I see the older 5.10, released early 2018:
Which is the version used on our "ubuntu bionic" test servers and local development docker. On linux, the pyqtgraph 0.11.1 that we bundle, is actually used and works just fine. 0.12 isn't used. |
I've released 1.17 of the plugin, which hopefully fixes the issue. |
ThreediToolbox 1.16 install error:
The text was updated successfully, but these errors were encountered: