Could not load the Qt platform plugin "xcb" in "" even though it was found

1,074 views
Skip to first unread message

Alexandre Flageul

unread,
Apr 20, 2023, 3:55:44 AM4/20/23
to eteto...@googlegroups.com

Hi.

I have installed ete3 with conda and it runs well on my personnal laptop (ubuntu 22.04). Thank you very much.

I cloned the conda environnement onto my professionnal computers (ubuntu 18.04 AND also WSL with ubuntu 22.04), and it does not running anymore.

I get the following message:

"""

QFactoryLoader::QFactoryLoader() checking directory path "/home/alexandreflageul/mambaforge/envs/ete3/bin/platforms" ...
Cannot load library /home/alexandreflageul/mambaforge/envs/ete3/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/home/alexandreflageul/mambaforge/envs/ete3/plugins/platforms/libqxcb.so" : "Cannot load library /home/alexandreflageul/mambaforge/envs/ete3/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: cannot open shared object file: No such file or directory)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

"""

This problem pops regularly, I tried to reinstall, I tried differents option from stackoverflow and others, nothing!

Any help please?

regards

--
Dr Alexandre FLAGEUL
PhD, Ingénieur de recherche

4 rue Théodore Botrel
BP 351 - 22603 LOUDEAC Cedex
Tél.: 33 (0)2 96 28 63 43
www.labofarm.com
www.genindexe.com

ziqi deng

unread,
Apr 20, 2023, 4:48:25 AM4/20/23
to eteto...@googlegroups.com
Hello! 
I see, this error often happens could be because during deploy software, it doesn't deploy the libqxcb.so library which under the Qt plugin platform or lack of dependencies for libqxcb.so. using the following method could be one solution to solve
1) go to the platforms folder, in this case is /home/alexandreflageul/mambaforge/envs/ete3/plugins/platforms/. 
2) Then execute `ldd libqxcb.so`,  ldd to show shared library dependencies. It will show list of dependencies situation such as:
......
linux-vdso.so.1 (0x00007ffcbc9aa000)
libQt5XcbQpa.so.5 => /root/anaconda3/plugins/platforms/./../../lib/libQt5XcbQpa.so.5 (0x00007fe8eac1c000)
libQt5DBus.so.5 => /root/anaconda3/plugins/platforms/./../../lib/libQt5DBus.so.5 (0x00007fe8eabbc000)
libgthread-2.0.so.0 => /root/anaconda3/plugins/platforms/./../../lib/libgthread-2.0.so.0 (0x00007fe8eabb7000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe8eaba5000)
libglib-2.0.so.0 => /root/anaconda3/plugins/platforms/./../../lib/libglib-2.0.so.0 (0x00007fe8eaa70000)
libfontconfig.so.1 => /root/anaconda3/plugins/platforms/./../../lib/libfontconfig.so.1 (0x00007fe8eaa28000)
libfreetype.so.6 => /root/anaconda3/plugins/platforms/./../../lib/libfreetype.so.6 (0x00007fe8ea973000)
libQt5Gui.so.5 => /root/anaconda3/plugins/platforms/./../../lib/libQt5Gui.so.5 (0x00007fe8ea5a7000)
libQt5Core.so.5 => /root/anaconda3/plugins/platforms/./../../lib/libQt5Core.so.5 (0x00007fe8ea190000)
libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007fe8ea108000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe8ea0e5000)
libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007fe8ea0de000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007fe8e9fa1000)
libXi.so.6 => not found
......
3) grep those line which have "not found", means they are lack. Once you found them, you find if they exist in your computer library(/usr/lib/x86_64-linux-gnu/), if so, you can create a softlink to the your envs/ete3/plugins/platforms/. If cannot be found even in the /usr/lib/x86_64-linux-gnu/, you may have to install them individually.

4)check again with `ldd libqxcb.so` to see if there is still `not found` situation. It should be ok. 

Best,
Ziqi


Alexandre Flageul <a.fl...@labofarm.com> 于2023年4月20日周四 09:55写道:
--
You received this message because you are subscribed to the Google Groups "The ETE toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to etetoolkit+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/etetoolkit/801e58d3-211a-9afb-15b6-5661880ab57f%40labofarm.com.
Reply all
Reply to author
Forward
0 new messages