Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 2211  / 3 Years ago, wed, may 19, 2021, 2:24:15

I am very new to Linux and
I am using Windows 11


installed ubuntu bash from MS store and installed Spyder using this command


sudo apt-get install spyder

But when I call Spyder


I get this error


user1@DELLG3:~$ spyder
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, xcb.

Aborted

I tried to uninstall and reinstall Spyder


but same error


any idea how to fix this?


More From » bash

 Answers
6

By default WSL doesn't have X-server, so you need to provide one. There are different X-servers available for Windows. Recently I read, on Windows 11 is available native application called WSLg.


Currently I'm on Windows 10 and really do like the third party app available on the Store called GWSL.


Jus install the application and launch it. Then click on its icon on the task bar, browse the list of Linux Apps and find your program - it should be Spider3.


enter image description here


Note on Windows 10 you must enable WSL2 if it's not enabled yet, I think it should be enabled by default on Windows 11.




In addition you could install a native X-server and entire desktop environment under WSL itself, then setup RDP service and use the Windows Remote Desktop application to log-in into the Ubuntu's desktop environment.


In my opinion, in most cases we do not need this far complicated solution. However here is a nice video tutorial how to do that, provided by David Bombal on YouTube: WSL2 Ubuntu GUI


[#798] Wednesday, May 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ippalogu

Total Points: 215
Total Questions: 127
Total Answers: 146

Location: Denmark
Member since Tue, Jul 19, 2022
2 Years ago
ippalogu questions
Tue, Jan 4, 22, 21:49, 2 Years ago
Tue, Sep 21, 21, 09:12, 3 Years ago
Mon, Dec 27, 21, 01:44, 2 Years ago
Sat, Jul 3, 21, 00:10, 3 Years ago
;