-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
PyQt6 support breaks PyQt5 on Ubuntu #369
Comments
Hi @machinekoder, Can you try this in your environment please? >>> import PyQt5.sip
>>> |
Right, either Ubuntu or Debian seems to patch PyQt in a way which is incompatible with how upstream (and almost any other distribution) do things. See qutebrowser/qutebrowser#6082 and qutebrowser/qutebrowser@41087d3. I suppose we can work around this in pytest-qt as well, but I'd also like to find out if this is due to Debian or Ubuntu, and then report it there. |
I am seeing the same issue when packaging the update for MacPorts |
Could someone test #370 please, ideally both with PyQt5 and PyQt6? |
thanks @The-Compiler - works for me with PyQt5. Sorry, MacPorts hasn't ported PyQt6 yet so I didn't test it with that... |
|
4.0.1 with the fix is out now. Thanks @machinekoder @reneeotten for the report and testing! |
This has caused us a lot of trouble since the 4.0.0 release (see pytest-dev#369 and pytest-dev#373). However, it was only neeeded for tests, where we might as well just check if the object is alive by calling a Qt method and checking for the exception (RuntimeError with all Qt APIs). Fixes pytest-dev#373
I'm currently facing an issue in my CI which looks related to a recent change in pytest-qt:
The culprit is this line here: https://github.com/pytest-dev/pytest-qt/blob/master/src/pytestqt/qt_compat.py#L144 which was introduced 3 months ago.
System: Ubuntu Focal
Qt version: 5.12.8
PyQt5 version: 5.14.1
log:
The text was updated successfully, but these errors were encountered: