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
{{ message }}
Repository navigation
"no Qt platform plugin could be initialised" - Can't run openmc-plotter #111
Hi, I'm having issues getting openmc-plotter to run. I was getting issues with pyside2, so i removed the environment I was using, and installed everything again. Openmc runs fine, but when I reinstalled openmc-plotter (using PIP), I get this error now.
"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.
Hi @harrytilston - Sorry for a much delayed response to this issue. Are you still experiencing this problem?
I have also had similar issues. To be completely honest, my current solution is to make a dedicated conda environment for the plotter and launch it from there because I haven't been able to figure out the nuances of Qt when it comes to all this.
Harry, I found the following fixed my issue to resolve some package dependencies-
Start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to get more information.
Check what packages it references in the error output (e.g. libxcb-xinerama0)
Use apt-get to install them. The below command worked for me. You could just try this
I wonder if this is something that happens on the latest versions of ubuntu which switched wayland display server when older versions of ubuntu used Xorg. Perhaps try switching the display server to xorg
Thanks Mr Shimwell !
I'm using vs-code, ssh remote & wsl on windows11. It seems that adding those lines in my ssh config on windows:
Host xxx-ubuntu
HostName xxx-ubuntu
User yyy
ForwardAgent yes
ForwardX11Trusted yes
ForwardX11 yes
Activity
kkiesling commentedon Apr 28, 2023
Hi @harrytilston - Sorry for a much delayed response to this issue. Are you still experiencing this problem?
I have also had similar issues. To be completely honest, my current solution is to make a dedicated conda environment for the plotter and launch it from there because I haven't been able to figure out the nuances of Qt when it comes to all this.
EdP-1 commentedon Apr 30, 2023
Harry, I found the following fixed my issue to resolve some package dependencies-
Start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to get more information.
Check what packages it references in the error output (e.g. libxcb-xinerama0)
Use apt-get to install them. The below command worked for me. You could just try this
sudo apt-get install libxcb-xinerama0
alanottrenfusion commentedon Nov 20, 2024
Dear all,
I'm strugling to get it work ! I try the above methods, nothing worked ...
shimwell commentedon Nov 20, 2024
I wonder if this is something that happens on the latest versions of ubuntu which switched wayland display server when older versions of ubuntu used Xorg. Perhaps try switching the display server to xorg
alanottrenfusion commentedon Nov 22, 2024
Thanks Mr Shimwell !
I'm using vs-code, ssh remote & wsl on windows11. It seems that adding those lines in my ssh config on windows:
Host xxx-ubuntu
HostName xxx-ubuntu
User yyy
ForwardAgent yes
ForwardX11Trusted yes
ForwardX11 yes
and
exporting display on linux terminal:
export DISPLAY=:0
Works !
Thanks again !
Alan
yrrepy commentedon Apr 14, 2025
worked for Perry:
sudo apt-get install qt6-wayland
sudo apt-get install -y libxcb-cursor-dev