-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix shims with PyQt5 5.11 #11500
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
Fix shims with PyQt5 5.11 #11500
Conversation
sip is not really required by this code when using PyQt5, and 5.11 now no longer requires it nor provides it globally [1]. Also, move the PyQt/PySide shim bits to the end to be near the Qt5/Qt4 shim. [1] http://pyqt.sourceforge.net/Docs/PyQt5/incompatibilities.html#pyqt-v5-11
This fails with PyQt5.11, but is also unnecessary. `_destroying` is set to True before this signal is connected, so the callback simply returns immediately. Thus, just remove the connection entirely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (the latest pyqt5 release was actually buggy and has been withdrawn, see https://www.riverbankcomputing.com/pipermail/pyqt/2018-June/040459.html, so the build is now unbroken and this can wait for a second reviewer; but in general the PR still looks good).
Restarted the build to check with the new release of PyQt5.11. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This passes the tests, so fixes the QT error all the Travis tests are having...
@meeseeksdev backport to v2.2.x |
…n-v2.2.x Backport PR #11500 on branch v2.2.x
PR Summary
Fix import of PyQt5 5.11.
sip is not really required by this code when using PyQt5, and 5.11 now no longer requires it nor provides it globally [1].
Also, move the PyQt/PySide shim bits to the end to be near the Qt5/Qt4 shim.
[1] http://pyqt.sourceforge.net/Docs/PyQt5/incompatibilities.html#pyqt-v5-11
Remove unnecessary Qt signal connection.
This fails with PyQt5.11, but is also unnecessary.
_destroying
is set to True before this signal is connected, so the callback simply returns immediately. Thus, just remove the connection entirely.PR Checklist