jina-ai / discoart

🪩 Create Disco Diffusion artworks in one line
Other
3.84k stars 249 forks source link

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" #59

Closed dblunk88 closed 2 years ago

dblunk88 commented 2 years ago

When running on Ubuntu 20.04: 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)

This happens after the run, assuming it is when it tries to open up the image. Primarily connect to the machine via RDP if it makes a difference.

hanxiao commented 2 years ago

um... based on the limited information you provided, i tried to figure out your env.

my best guess is you are not using DiscoArt in notebook and you still let it display/print the image on the screen, which is not possible in general, regardless if it is DiscoArt or other software.

my guess is you are using DiscoArt as a integration library or start it from command line, which has no GUI, in this case please set env var before starting DiscoArt: DISCOART_DISABLE_IPYTHON=1.

If not sure how to set env var, please google