Then, when I tried to save the figure using:
fig.write_image(āfig1.pngā)
I met this error:
ValueError: Transform failed with error code 525: Mapbox error.
Can anyone help me solve this problem?
Thanks a lot.
Curiously I donāt get the error when I use fig.write_html(ātest.htmlā). Here is the full error I get:
self.case.maps.isystem().write_image('test3.jpg')
Traceback (most recent call last):
File "C:\Users\908367\.conda\envs\wm\lib\site-packages\IPython\core\interactiveshell.py", line 3437, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-13-31575a24df1a>", line 1, in <module>
self.case.maps.isystem().write_image('test3.jpg')
File "C:\Users\908367\.conda\envs\wm\lib\site-packages\plotly\basedatatypes.py", line 3806, in write_image
return pio.write_image(self, *args, **kwargs)
File "C:\Users\908367\.conda\envs\wm\lib\site-packages\plotly\io\_kaleido.py", line 245, in write_image
img_data = to_image(
File "C:\Users\908367\.conda\envs\wm\lib\site-packages\plotly\io\_kaleido.py", line 131, in to_image
img_bytes = scope.transform(
File "C:\Users\908367\.conda\envs\wm\lib\site-packages\kaleido\scopes\plotly.py", line 111, in transform
raise ValueError(
ValueError: Transform failed with error code 525: Mapbox error.
I use plotly version 4.14.3, Kaleido version 0.1.0
Did you ever figure out what the problem was, or does anyone else know what this error really means? because I donāt have the slightest clue where to start with fixing this.