adamerose / PandasGUI

A GUI for Pandas DataFrames
MIT No Attribution
3.18k stars 232 forks source link

Running with Xserver on WSL2 #83

Open jaclynsaunders opened 3 years ago

jaclynsaunders commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

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 commented 3 years ago

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