ValueError Traceback (most recent call last)
Cell In[23], line 15
2 fig_overall_tps = px.bar(
3 statistics['provider_ranking'],
4 x='provider',
(...)
11 template='plotly_white'
12 )
13 # fig_overall_tps.show()
---> 15 img_bytes = pio.to_image(fig_overall_tps, format='png')
16 Image(img_bytes)
File c:\docs\python.venv\lib\site-packages\plotly\io_kaleido.py:132, in to_image(fig, format, width, height, scale, validate, engine)
130 # Raise informative error message if Kaleido is not installed
131 if scope is None:
--> 132 raise ValueError(
133 """
134 Image export using the "kaleido" engine requires the kaleido package,
135 which can be installed using pip:
136 $ pip install -U kaleido
137 """
138 )
140 # Validate figure
141 # ---------------
142 fig_dict = validate_coerce_fig_to_dict(fig, validate)
ValueError:
Image export using the "kaleido" engine requires the kaleido package,
which can be installed using pip:
$ pip install -U kaleido
Но модуль kaleido уже стоит и всё равно ругается на него
PS C:\docs\python> pip list
Package Version
asttokens 3.0.0
colorama 0.4.6
comm 0.2.2
debugpy 1.8.13
decorator 5.2.1
exceptiongroup 1.2.2
executing 2.2.0
ipykernel 6.29.5
ipython 8.35.0
jedi 0.19.2
jupyter_client 8.6.3
jupyter_core 5.7.2
kaleido 0.2.1
matplotlib-inline 0.1.7
narwhals 1.34.0
nest-asyncio 1.6.0
numpy 2.2.4
packaging 24.2
pandas 2.2.3
parso 0.8.4
pip 25.0.1
platformdirs 4.3.7
plotly 6.0.1
prompt_toolkit 3.0.50
psutil 7.0.0
pure_eval 0.2.3
Pygments 2.19.1
python-dateutil 2.9.0.post0
pytz 2025.2
pywin32 310
pyzmq 26.4.0
setuptools 65.5.0
six 1.17.0
stack-data 0.6.3
tornado 6.4.2
traitlets 5.14.3
typing_extensions 4.13.1
tzdata 2025.2
wcwidth 0.2.13
PS C:\docs\python>
ValueError Traceback (most recent call last)
Cell In[23], line 15
2 fig_overall_tps = px.bar(
3 statistics['provider_ranking'],
4 x='provider',
(...)
11 template='plotly_white'
12 )
13 # fig_overall_tps.show()
---> 15 img_bytes = pio.to_image(fig_overall_tps, format='png')
16 Image(img_bytes)
File c:\docs\python.venv\lib\site-packages\plotly\io_kaleido.py:132, in to_image(fig, format, width, height, scale, validate, engine)
130 # Raise informative error message if Kaleido is not installed
131 if scope is None:
--> 132 raise ValueError(
133 """
134 Image export using the "kaleido" engine requires the kaleido package,
135 which can be installed using pip:
136 $ pip install -U kaleido
137 """
138 )
140 # Validate figure
141 # ---------------
142 fig_dict = validate_coerce_fig_to_dict(fig, validate)
ValueError:
Image export using the "kaleido" engine requires the kaleido package,
which can be installed using pip:
$ pip install -U kaleido
Но модуль kaleido уже стоит и всё равно ругается на него
PS C:\docs\python> pip list
Package Version
asttokens 3.0.0
colorama 0.4.6
comm 0.2.2
debugpy 1.8.13
decorator 5.2.1
exceptiongroup 1.2.2
executing 2.2.0
ipykernel 6.29.5
ipython 8.35.0
jedi 0.19.2
jupyter_client 8.6.3
jupyter_core 5.7.2
kaleido 0.2.1
matplotlib-inline 0.1.7
narwhals 1.34.0
nest-asyncio 1.6.0
numpy 2.2.4
packaging 24.2
pandas 2.2.3
parso 0.8.4
pip 25.0.1
platformdirs 4.3.7
plotly 6.0.1
prompt_toolkit 3.0.50
psutil 7.0.0
pure_eval 0.2.3
Pygments 2.19.1
python-dateutil 2.9.0.post0
pytz 2025.2
pywin32 310
pyzmq 26.4.0
setuptools 65.5.0
six 1.17.0
stack-data 0.6.3
tornado 6.4.2
traitlets 5.14.3
typing_extensions 4.13.1
tzdata 2025.2
wcwidth 0.2.13
PS C:\docs\python>