Skip to content

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

Description

@sajadamouei

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions