You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the above error message when the following pyqt script terminates
importsysimportpyvirtualdisplay# Import the core and GUI elements of QtfromPyQt4.QtCoreimport*fromPyQt4.QtGuiimport*virtual_display=pyvirtualdisplay.Display(
backend='xvfb', size=(800, 600),
color_depth=16, use_xauth=False)
virtual_display.start()
ifnotvirtual_display.is_alive():
ret=virtual_display.return_coderaiseRuntimeError("Xvfb exited with exit code {0}".format(ret))
qt_app=QApplication(sys.argv)
label=QLabel('Hello, world!')
label.show()
# Run the application's event loop# qt_app.exec_()virtual_display.stop()
This error message causes the process to return a non-zero exit status
> echo $?
1
I tested this in a cpython3.6 conda environemnt with pyqt-4.11.4 and pyvirtualdisplay-0.2.1. To fix this we probably have to stop the xvfb virtual display after the pyqt part disconnected itself from xvfb, right? But how is this possible?
I've just tested it in the same conda environment but with an updated pyqt (5.6.0), where I don't get this error. If you have any idea how to resolve the pyqt4 issue, that would be great.
I get the above error message when the following pyqt script terminates
This error message causes the process to return a non-zero exit status
I tested this in a cpython3.6 conda environemnt with pyqt-4.11.4 and pyvirtualdisplay-0.2.1. To fix this we probably have to stop the xvfb virtual display after the pyqt part disconnected itself from xvfb, right? But how is this possible?
See also The-Compiler/pytest-xvfb#11 and The-Compiler/pytest-xvfb#1
The text was updated successfully, but these errors were encountered: