Skip to content

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

Description

@harrytilston

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.

Activity

  1. kkiesling commented on Apr 28, 2023

    @kkiesling
    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.

  2. EdP-1 commented on Apr 30, 2023

    @EdP-1

    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

  3. alanottrenfusion commented on Nov 20, 2024

    @alanottrenfusion

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

  4. shimwell commented on Nov 20, 2024

    @shimwell
    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

  5. alanottrenfusion commented on Nov 22, 2024

    @alanottrenfusion

    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

  6. yrrepy commented on Apr 14, 2025

    @yrrepy

    worked for Perry:

    sudo apt-get install qt6-wayland
    sudo apt-get install -y libxcb-cursor-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions