Nosetests cannot be run within the docker CI container due to Qt exception.
Currently, it is not possible to run any nosetests within the docker CI container. The following exception is raised:
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, webgl, xcb.
Note, that the ´docker run´ command already includes some extra statements to enable X11 display forwarding. See here.
Here is the detailed output with QT_DEBUG_PLUGINS=1:
(ci_env) [root@bcdfe842247c enpt_enmapboxapp]# export QT_DEBUG_PLUGINS=1
(ci_env) [root@bcdfe842247c enpt_enmapboxapp]# python tests/test_enpt_enmapboxapp.py TestExampleEnMAPBoxApp
QFactoryLoader::QFactoryLoader() checking directory path "/root/miniconda3/envs/ci_env/plugins/iconengines" ...
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/iconengines/libqsvgicon.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/iconengines/libqsvgicon.so, metadata=
{
"IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
"MetaData": {
"Keys": [
"svg",
"svgz",
"svg.gz"
]
},
"archreq": 0,
"className": "QSvgIconPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("svg", "svgz", "svg.gz")
loaded library "/root/miniconda3/envs/ci_env/plugins/iconengines/libqsvgicon.so"
qt.svg: Cannot open file ':/images/themes/default/mIconRaster.svg', because: No such file or directory
qt.svg: Cannot open file ':/images/themes/default/mIconRaster.svg', because: No such file or directory
qt.svg: Cannot open file ':/qps/ui/icons/speclib.svg', because: No such file or directory
qt.svg: Cannot open file ':/qps/ui/icons/speclib.svg', because: No such file or directory
qt.svg: Cannot open file ':/images/themes/default/mIconVector.svg', because: No such file or directory
qt.svg: Cannot open file ':/images/themes/default/mIconVector.svg', because: No such file or directory
qt.svg: Cannot open file ':/images/themes/default/processingAlgorithm.svg', because: No such file or directory
qt.svg: Cannot open file ':/images/themes/default/processingAlgorithm.svg', because: No such file or directory
QFactoryLoader::QFactoryLoader() checking directory path "/root/miniconda3/envs/ci_env/plugins/imageformats" ...
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/imageformats/libqgif.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/imageformats/libqgif.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"gif"
],
"MimeTypes": [
"image/gif"
]
},
"archreq": 0,
"className": "QGifPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("gif")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/imageformats/libqicns.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/imageformats/libqicns.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"icns"
],
"MimeTypes": [
"image/x-icns"
]
},
"archreq": 0,
"className": "QICNSPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("icns")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/imageformats/libqico.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/imageformats/libqico.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"ico",
"cur"
],
"MimeTypes": [
"image/vnd.microsoft.icon",
"image/vnd.microsoft.icon"
]
},
"archreq": 0,
"className": "QICOPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("ico", "cur")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/imageformats/libqjpeg.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/imageformats/libqjpeg.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"jpg",
"jpeg"
],
"MimeTypes": [
"image/jpeg",
"image/jpeg"
]
},
"archreq": 0,
"className": "QJpegPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("jpg", "jpeg")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/imageformats/libqsvg.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/imageformats/libqsvg.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"svg",
"svgz"
],
"MimeTypes": [
"image/svg+xml",
"image/svg+xml-compressed"
]
},
"archreq": 0,
"className": "QSvgPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("svg", "svgz")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/imageformats/libqtga.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/imageformats/libqtga.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"tga"
],
"MimeTypes": [
"image/x-tga"
]
},
"archreq": 0,
"className": "QTgaPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("tga")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/imageformats/libqtiff.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/imageformats/libqtiff.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"tiff",
"tif"
],
"MimeTypes": [
"image/tiff",
"image/tiff"
]
},
"archreq": 0,
"className": "QTiffPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("tiff", "tif")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/imageformats/libqwbmp.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/imageformats/libqwbmp.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"wbmp"
],
"MimeTypes": [
"image/vnd.wap.wbmp"
]
},
"archreq": 0,
"className": "QWbmpPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("wbmp")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/imageformats/libqwebp.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/imageformats/libqwebp.so, metadata=
{
"IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
"MetaData": {
"Keys": [
"webp"
],
"MimeTypes": [
"image/webp"
]
},
"archreq": 0,
"className": "QWebpPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("webp")
loaded library "/root/miniconda3/envs/ci_env/plugins/imageformats/libqgif.so"
loaded library "/root/miniconda3/envs/ci_env/plugins/imageformats/libqicns.so"
loaded library "/root/miniconda3/envs/ci_env/plugins/imageformats/libqico.so"
loaded library "/root/miniconda3/envs/ci_env/plugins/imageformats/libqjpeg.so"
loaded library "/root/miniconda3/envs/ci_env/plugins/imageformats/libqsvg.so"
loaded library "/root/miniconda3/envs/ci_env/plugins/imageformats/libqtga.so"
loaded library "/root/miniconda3/envs/ci_env/plugins/imageformats/libqtiff.so"
loaded library "/root/miniconda3/envs/ci_env/plugins/imageformats/libqwbmp.so"
loaded library "/root/miniconda3/envs/ci_env/plugins/imageformats/libqwebp.so"
Application path not initialized
/root/miniconda3/envs/ci_env/lib/python3.8/site-packages/osgeo/gdal.py:106: DeprecationWarning: gdal.py was placed in a namespace, it is now available as osgeo.gdal
warn('%s.py was placed in a namespace, it is now available as osgeo.%s' % (module,module),
QFactoryLoader::QFactoryLoader() checking directory path "/root/miniconda3/envs/ci_env/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/platforms/libqeglfs.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/platforms/libqeglfs.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"eglfs"
]
},
"archreq": 0,
"className": "QEglFSIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/platforms/libqminimal.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/platforms/libqminimal.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archreq": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/platforms/libqminimalegl.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/platforms/libqminimalegl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimalegl"
]
},
"archreq": 0,
"className": "QMinimalEglIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/platforms/libqoffscreen.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/platforms/libqoffscreen.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archreq": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/platforms/libqvnc.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/platforms/libqvnc.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"vnc"
]
},
"archreq": 0,
"className": "QVncIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/platforms/libqwebgl.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/platforms/libqwebgl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"webgl"
]
},
"archreq": 0,
"className": "QWebGLIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("webgl")
QFactoryLoader::QFactoryLoader() looking at "/root/miniconda3/envs/ci_env/plugins/platforms/libqxcb.so"
Found metadata in lib /root/miniconda3/envs/ci_env/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archreq": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 330752
}
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/root/miniconda3/envs/ci_env/bin/platforms" ...
loaded library "/root/miniconda3/envs/ci_env/plugins/platforms/libqxcb.so"
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, webgl, xcb.
Aborted (core dumped)
(ci_env) [root@bcdfe842247c enpt_enmapboxapp]#
Edited by Daniel Scheffler