openmc-dev / plotter

Native plotting GUI for model design and verification
MIT License
46 stars 18 forks source link

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

Open harrytilston opened 1 year ago

harrytilston commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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