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

Running with Xserver on WSL2 #83

Open
jaclynsaunders opened this issue Jan 29, 2021 · 3 comments
Open

Running with Xserver on WSL2 #83

jaclynsaunders opened this issue Jan 29, 2021 · 3 comments

Comments

@jaclynsaunders
Copy link

Hi. I've been trying to build pandasgui on WSL2 (Ubuntu 20.04). (I was having some issues with sip imports via the pip install, but the conda package did not have that issue.) I've hit a snag that I'm stuck on and would appreciate any advice. I'm calling pandasgui via a jupyter lab notebook with the Xserver VcXsrv. A window with a black renders when I call show(dataframe), but I'm unable to see the data (but some hovering features come through).

The following is printed to the terminal:

QGLXContext: Failed to create dummy context
QQuickWidget: Failed to make context current
QQuickWidget::resizeEvent() no OpenGL context
QQuickWidget: Failed to make context current
QQuickWidget: Attempted to render scene with no context
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
QQuickWidget: Attempted to render scene with no context
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
...

Any advice would be greatly appreciated. Thanks!

@fdion
Copy link
Contributor

fdion commented Feb 16, 2021

@jaclynsaunders Can confirm it doesn't work with VcXsrv, even with proper firewall permissions etc. Will try a different X server when I get a chance.

@Vulpesdk
Copy link

I can confirm it works okay for me! Don't really know why though. Tried a lot of different things on wsl1 to make it work.
Have the same version of the software as described.
Have you done this:
https://techcommunity.microsoft.com/t5/windows-dev-appconsult/running-wsl-gui-apps-on-windows-10/ba-p/1493242

@talcat
Copy link

talcat commented Aug 6, 2021

So I struggled with this today and got it to work. I believe it has to do with LIBGL_ALWAYS_INDIRECT
Most tutorials for setting up WSL2 mention adding export LIBGL_ALWAYS_INDIRECT=1 in .bashrc.
This makes wsl2 use windows opengl, which is apparently stuck in OpenGL 1.4.

Instead have LIBGL_ALWAYS_INDIRECT=0 in .bashrc and uncheck the OpenGL box when running VcXsrv

Edit: @jaclynsaunders in case you never saw this and still care

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

4 participants