Closed NMertsch closed 7 months ago
Your repro is set to private, but likely you're missing dependencies for Qt to run properly. You'll find out more by adding -s
to pytest
to disable output capturing, and perhaps also doing export QT_DEBUG_PLUGINS=1
.
See the docs for an overview of what libraries Qt generally expects to be installed.
You'd see the same issue with a python -c "from PyQt6.QtWidgets import QApplication; QApplication([])"
, this is unrelated to pytest or pytest-qt.
Thank you, the docs on Github Actions almost did the trick.
Additional things I needed to do:
apt install libgl1 libegl1 libdbus-1-3
to get rid of "missing .so file" errorsapt install libxcb-cursor0
because that requirement was added in Qt 6.5.0I'm currently writing a PR to add this to the docs. Feel free to ignore or modify it :)
After installing pyqt6 and pytest-qt, the following test causes a segfault on Linux, but it works fine on Windows.
Code:
Output:
Without the
qtbot
fixture, it passes.Repo with CI script reproducing the issue: https://gitlab.com/NMertsch/qtbot-bug-repro
WSL Linux (crash)
Gitlab CI (crash)
python:3.11
Windows (works)