Skip to content
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

"no Qt platform plugin could be initialised" - Can't run openmc-plotter #111

Open
harrytilston opened this issue Feb 22, 2023 · 5 comments

Comments

@harrytilston
Copy link

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.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb."

Any help would be much appreciated, I'm pretty lost.

Cheers.

@kkiesling
Copy link
Contributor

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
Copy link

EdP-1 commented 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
Copy link

Dear all,
I'm strugling to get it work ! I try the above methods, nothing worked ...

@shimwell
Copy link
Member

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants