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

How to fix plugin could not be loaded on Linux - PySide6 #588

Open
SteampunkIslande opened this issue Aug 5, 2023 · 3 comments
Open

How to fix plugin could not be loaded on Linux - PySide6 #588

SteampunkIslande opened this issue Aug 5, 2023 · 3 comments
Labels
Important doc in conversation Important information can be found in this thread

Comments

@SteampunkIslande
Copy link
Collaborator

Sometimes, when running a PySide6 module, you may get an error:

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: vnc, xcb, wayland, minimalegl, offscreen, minimal, wayland-egl, eglfs, vkkhrdisplay, linuxfb.

Fatal Python error: Aborted

To fix:

sudo apt install libxcb-xinerama0 libxcb-cursor0
@SteampunkIslande SteampunkIslande added the Important doc in conversation Important information can be found in this thread label Aug 5, 2023
@kkmarkel
Copy link

kkmarkel commented Sep 4, 2023

Doesn't work for me, unfortunately :(
Installed on remote linux server using

conda create -n cutevariant_dev python=3.9
conda activate cutevariant_dev
pip install git+https://github.com/labsquare/cutevariant@devel
python -m cutevariant
$ conda list
# packages in environment at /opt/miniconda3/envs/cutevariant_dev:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
arpeggio                  2.0.2                    pypi_0    pypi
bzip2                     1.0.8                h7f98852_4    conda-forge
ca-certificates           2023.7.22            hbcca054_0    conda-forge
cachetools                5.3.1                    pypi_0    pypi
columnar                  1.1.0                    pypi_0    pypi
cutevariant               0.4.5.dev0               pypi_0    pypi
importlib-metadata        6.8.0                    pypi_0    pypi
jinja2                    3.1.2                    pypi_0    pypi
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 13.1.0               he5830b7_0    conda-forge
libgomp                   13.1.0               he5830b7_0    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libsqlite                 3.43.0               h2797004_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
markdown                  3.4.4                    pypi_0    pypi
markupsafe                2.1.3                    pypi_0    pypi
ncurses                   6.4                  hcb278e6_0    conda-forge
numpy                     1.25.2                   pypi_0    pypi
openssl                   3.1.2                hd590300_0    conda-forge
pip                       23.2.1             pyhd8ed1ab_0    conda-forge
progressbar2              4.2.0                    pypi_0    pypi
pyside6                   6.5.2                    pypi_0    pypi
pyside6-addons            6.5.2                    pypi_0    pypi
pyside6-essentials        6.5.2                    pypi_0    pypi
python                    3.9.18          h0755675_0_cpython    conda-forge
python-utils              3.7.0                    pypi_0    pypi
pyvcf3                    1.0.3                    pypi_0    pypi
pyyaml                    6.0.1                    pypi_0    pypi
readline                  8.2                  h8228510_1    conda-forge
setuptools                68.1.2             pyhd8ed1ab_0    conda-forge
shiboken6                 6.5.2                    pypi_0    pypi
textx                     1.8.0                    pypi_0    pypi
tk                        8.6.12               h27826a3_0    conda-forge
toolz                     0.12.0                   pypi_0    pypi
typing-extensions         4.7.1                    pypi_0    pypi
tzdata                    2023c                h71feb2d_0    conda-forge
wheel                     0.41.2             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
zipp                      3.16.2                   pypi_0    pypi
$ pip list 
Package            Version
------------------ ----------
Arpeggio           2.0.2
cachetools         5.3.1
Columnar           1.1.0
cutevariant        0.4.5.dev0
importlib-metadata 6.8.0
Jinja2             3.1.2
Markdown           3.4.4
MarkupSafe         2.1.3
numpy              1.25.2
pip                23.2.1
progressbar2       4.2.0
PySide6            6.5.2
PySide6-Addons     6.5.2
PySide6-Essentials 6.5.2
python-utils       3.7.0
PyVCF3             1.0.3
PyYAML             6.0.1
setuptools         68.1.2
shiboken6          6.5.2
textX              1.8.0
toolz              0.12.0
typing_extensions  4.7.1
wheel              0.41.2
zipp               3.16.2

@SteampunkIslande
Copy link
Collaborator Author

SteampunkIslande commented Sep 5, 2023

Can you post the exact error you are getting ?
If you are using a remote server, did you call ssh -X (since this is a GUI) ?

@jcarizza
Copy link

Had same issuue and install xcb fixed the problem

sudo apt-get install xcb.

Remember to uninstall and re-install cutevariant again with:

pip uninstall cutevariant
pip install cutevariant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Important doc in conversation Important information can be found in this thread
Projects
None yet
Development

No branches or pull requests

3 participants