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

qt.qpa.xcb: could not connect to display #17

Open
sajadamouei opened this issue Mar 24, 2022 · 2 comments
Open

qt.qpa.xcb: could not connect to display #17

sajadamouei opened this issue Mar 24, 2022 · 2 comments

Comments

@sajadamouei
Copy link

Hi, Thanks for your amazing job!
I have an error running this code in Google colaboratory, which I think is related to the PyQt5 library. I would be grateful if you could help me fix this error.

I fixed this error in my local machine that has Ubuntu with the help of this Stackoverflow.
But it did not work in google colab.

!python3 /content/peakonly/peakonly.py

Error:

qt.qpa.xcb: could not connect to display 
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.
@Arseha
Copy link
Owner

Arseha commented Apr 13, 2023

Hi! I am not sure that it is possible to run gui program in colab. However there is High-level API available (https://github.com/sorenwacker/ms-peakonly). Could you try to use it?

@sajadamouei
Copy link
Author

Hi! I am not sure that it is possible to run gui program in colab. However there is High-level API available (https://github.com/sorenwacker/ms-peakonly). Could you try to use it?

Thanks! I will try to use it.

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