dexplo / dataframe_image

A python package for embedding pandas DataFrames as images into pdf and markdown documents
https://dexplo.org/dataframe_image
MIT License
282 stars 41 forks source link

Problems with Google Chrome 99.0.4844.82 on Ubuntu 20.04 #38

Closed Arian96669 closed 1 year ago

Arian96669 commented 2 years ago

Running dfi.export(df_styled, "output_file.png") on Ubuntu 20.04 with latest Google Chrome (version 99) creates the following warnings and errors.

[0324/143535.290253:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable. [0324/143538.178682:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. [0324/143538.267157:INFO:headless_shell.cc(659)] Written to file /tmp/tmpb2ua5voz/temp.png.

The problem is related to: _screenshot.py

97 with open(temp_img, "wb") as f:
98 args = [ 99 "--enable-logging", 100 "--disable-gpu", 101 "--headless" 102 ]

Google Chrome version 99 seem to have a problem with "--disable-gpu" and "--headless" settings.
Running google-chrome --disable-gpu in Terminal causes: [34249:34249:0324/144348.025377:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. and google-chrome --headless [0324/144437.931618:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.

When I disable these two options inside _screenshot.py the *.html file is displayed onscreen and a png file is not created, so I am not sure how to fix this problem.

Can someone help?

bobHealy commented 2 years ago

any news here?

Lowrida commented 2 years ago

Same problem..

PaleNeutron commented 2 years ago

@Lowrida , can you provide your error log and enviroment?

g-simmons commented 2 years ago

Same here on Ubuntu 22.04

PaleNeutron commented 1 year ago

All tests passed in Ubuntu22.04 in CI.