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

Grapher does not render images #214

Open
mficek opened this issue Oct 19, 2022 · 4 comments
Open

Grapher does not render images #214

mficek opened this issue Oct 19, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@mficek
Copy link

mficek commented Oct 19, 2022

The grapher in pandasgui does not work: the image does not render. Neither empty axes, nor any graphs with data.
image

Environment
OS: Ubuntu 22.04
Python: 3.9.13 (but tested on 3.8.* and 3.10.* too)
IDE: Pycharm (but tested in plain teriminal, either python, or ipython)

Package versions

ipython==8.5.0
pandasgui==0.2.13
plotly==5.10.0
PyQt5==5.15.7
PyQt5-Qt5==5.15.2
PyQt5-sip==12.11.0
PyQtWebEngine==5.15.6
PyQtWebEngine-Qt5==5.15.2
@mficek mficek added the bug Something isn't working label Oct 19, 2022
@jakob1379
Copy link

Doesn't work or me either:

python==3.10.9
pandasgui==0.2.14

OS: Manjaro Linux x86_64
Host: 20NYSD4R05 ThinkPad T490s
Kernel: 5.15.108-1-MANJARO
Uptime: 2 hours, 36 mins
Packages: 2114 (pacman), 12 (flatpak), 3 (snap)
Shell: bash 5.1.16
Resolution: 2560x1440
WM: i3
Theme: Adapta-Eta-Maia [GTK2/3]
Icons: Papirus-Maia [GTK2/3]
Terminal: alacritty
CPU: Intel i7-8665U (8) @ 4.800GHz
GPU: Intel WhiskeyLake-U GT2 [UHD Graphics 620]

@JMVOLLE
Copy link

JMVOLLE commented Apr 25, 2023

Same thing for me. The only graph that works is scatter. All other seem to fail because a list of dataframe columns name is passed as the "x" argument for plots instead of a single string for the column name.

@IgSaf
Copy link

IgSaf commented Aug 27, 2023

I got the same problem. And an exported html worked fine in my browser.
My setup is Ubuntu 22, x11, python3.10, pandasgui==0.2.14, and the rest as in the topic.

So I worked it out like that:

This line

os.environ["QTWEBENGINE_CHROMIUM_FLAGS"] = "--enable-logging --log-level=3"

should become

os.environ["QTWEBENGINE_CHROMIUM_FLAGS"] = "--enable-logging --log-level=3 --no-sandbox"

I edited it locally and tested on https://github.com/adamerose/PandasGUI/blob/master/pandasgui/widgets/grapher.py. The visualization problem has gone away.

@eric222222
Copy link

I do have exactly the same issue, but with a different OS:
System: Windows 10
Python 3.9.2
Code Editor: VSCode
pandas (Version: 2.2.2)
numpy (Version: 1.26.4)
PyQt5 (Version: 5.15.10)
PyQt5-sip (Version: 12.13.0)
PyQtWebEngine (Version: 5.15.6)
plotly (Version: 5.20.0)
wordcloud (Version: 1.9.3)
appdirs (Version: 1.4.4)
pynput (Version: 1.7.6)
IPython (Version: 8.18.1)
pyarrow (Version: 15.0.2)
astor (Version: 0.8.1)
typing-extensions (Version: 4.9.0)
qtstylish (Version: 0.1.5)

do you have any idea how to solve it? I already have done: $env:QTWEBENGINE_CHROMIUM_FLAGS = "--enable-logging --log-level=3 --no-sandbox"
on the terminal but it did not work. I use a virtual env. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants