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

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

Open
icamps opened this issue Nov 11, 2021 · 4 comments

Comments

@icamps
Copy link

icamps commented Nov 11, 2021

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

@icamps icamps changed the title << << Could not load the Qt platform plugin "xcb" in "" even though it was found >> Nov 11, 2021
@sozykinsa
Copy link
Owner

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
Copy link
Author

icamps commented Nov 15, 2021

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

@sozykinsa
Copy link
Owner

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
Copy link
Author

icamps commented Nov 15, 2021

Thanks a lot!

Preinstalled Python worked without any issues.

Using

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants