plotly / Kaleido

Fast static image export for web-based visualization libraries with zero dependencies
Other
349 stars 33 forks source link

Static image export does not complete #112

Open dakenblack opened 2 years ago

dakenblack commented 2 years ago

Hi,

As the title says static image export does not complete for ~10 minutes, I kill it at that point.

Here is my conda environment:

name: pytest
channels:
  - anaconda
  - defaults
dependencies:
  - brotlipy=0.7.0=py39h2bbff1b_1003
  - ca-certificates=2020.10.14=0
  - certifi=2021.5.30=py39haa95532_0
  - cffi=1.14.6=py39h2bbff1b_0
  - cryptography=3.4.7=py39h71e12ea_0
  - idna=2.10=py_0
  - openssl=1.1.1k=h2bbff1b_0
  - pip=21.2.2=py39haa95532_0
  - pycparser=2.20=py_2
  - pyopenssl=19.1.0=py_1
  - pysocks=1.7.1=py39haa95532_0
  - python=3.9.0=h6244533_2
  - setuptools=52.0.0=py39haa95532_0
  - six=1.15.0=py_0
  - sqlite=3.36.0=h2bbff1b_0
  - tzdata=2021a=h52ac0ba_0
  - urllib3=1.25.11=py_0
  - vc=14.2=h21ff451_1
  - vs2015_runtime=14.27.29016=h5e58377_2
  - wheel=0.36.2=pyhd3eb1b0_0
  - win_inet_pton=1.1.0=py39haa95532_0
  - wincertstore=0.2=py39h2bbff1b_0
  - pip:
    - kaleido==0.2.1
    - plotly==5.1.0
    - tenacity==8.0.1

I'm trying this on windows 10, let me know if there is any other environment details you would need.

Here is a reproducible example (just the plotly example with a write_image call)

import plotly.graph_objects as go
from datetime import datetime

fig = go.Figure()
fig.add_trace(go.Scatter(y=[2, 1, 4, 3]))
fig.update_layout(title = 'Hello Figure')

print('Trying to export at', datetime.now())

fig.write_image('chart.png')

print('Finished export at', datetime.now())

Not sure if this is relevant, but I have installed plotly and kaleido using pip because conda would return conflict errors when I tried to install plotly.

Thanks for your help.

roydagan commented 2 years ago

Also happened to me, waiting for an answer as well, thanks!

jonmmease commented 2 years ago

Are you able to reproduce the issue from a python/ipython repl? If so, the instructions in this issue might yield some extra info that would be helpful (https://github.com/plotly/Kaleido/issues/36#issuecomment-756676527).

dakenblack commented 2 years ago

Hi @jonmmease, Thanks for your response. I have read through the related issue and I have not made any progress. Disabling mathjax did not solve my problem, I am also unable to interrupt the repl when I've run the "write_image" call so I can't get the output through. I have tried inside Jupyter and inside the base python interface.

PS: disabling the internet does not fix it either.