sozykinsa / GUI4dft

GUI4dft - first free SIESTA oriented GUI
MIT License
21 stars 6 forks source link

<< Could not load the Qt platform plugin "xcb" in "" even though it was found >> #5

Open icamps opened 2 years ago

icamps commented 2 years ago

Hi @Sergey,

I update my Ubuntu box to lates version 21.10. Now, when running GUI4dft I'm getting the message:

python /home/icamps/bin/GUI4dft/src/gui4dft.py

module 'sisl' is installed
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.

Aborted (core dumped)

Using export QT_DEBUG_PLUGINS=1 the output is:


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/icamps/anaconda3/bin/platforms" ...
Cannot load library /home/icamps/anaconda3/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so: (/home/icamps/anaconda3/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5: undefined symbol: _ZTI23QPlatformVulkanInstance, version Qt_5_PRIVATE_API)
QLibraryPrivate::loadPlugin failed on "/home/icamps/anaconda3/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/icamps/anaconda3/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so: (/home/icamps/anaconda3/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5: undefined symbol: _ZTI23QPlatformVulkanInstance, version Qt_5_PRIVATE_API)"
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.

Do you have any idea how my update mess up with GUI4dft?

Regards,

Camps

sozykinsa commented 2 years ago

Thank you for information. I haven't updated ubuntu yet. I installed it in a virtual machine. The error was related to the wayland. I fixed it. Check the functionality of the program on your computer.

icamps commented 2 years ago

Should I install something in my box? I downloaded the zip and got the same message ;(

sozykinsa commented 2 years ago

I noticed that you are using anaconda and set it up. I am getting really weird errors using anaconda. Apparently the problem is in python. Try to use the Python 3.9 preinstalled in ubuntu21.10.

On the newly installed ubuntu, I ran this command "pip3 install pyqt5 numpy scipy pyopengl matplotlib scikit-image". The program GUI4dft works.

If you manage to run the program with anaconda, please let me know.

icamps commented 2 years ago

Thanks a lot!

Preinstalled Python worked without any issues.

Using