I’m having trouble getting plotly to generate a map image. I’m getting the following error about the core fill not generating and something about the locale_file_path. I have no idea how to resolve this. Any ideas?
Replaced some info with … for privacy reasons.
<code>gunicorn[1368648]: File "/.../scatter_map.py", line 196, in generate_usa_map
gunicorn[1368648]: fig.write_image(IMG_FOLDER + '/scatter_map.svg')
gunicorn[1368648]: File "/.../venv/lib64/python3.9/site-packages/plotly/basedatatypes.py", line 3841, in write_image
gunicorn[1368648]: return pio.write_image(self, *args, **kwargs)
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/plotly/io/_kaleido.py", line 266, in write_image
gunicorn[1368648]: img_data = to_image(
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/plotly/io/_kaleido.py", line 143, in to_image
gunicorn[1368648]: img_bytes = scope.transform(
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/kaleido/scopes/plotly.py", line 153, in transform
gunicorn[1368648]: response = self._perform_transform(
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/kaleido/scopes/base.py", line 293, in _perform_transform
gunicorn[1368648]: self._ensure_kaleido()
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/kaleido/scopes/base.py", line 198, in _ensure_kaleido
...
gunicorn[1368648]: ValueError: Failed to start Kaleido subprocess. Error stream:
gunicorn[1368648]: [0711/120639.490003:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
gunicorn[1368648]: [0711/120639.503893:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
gunicorn[1368648]: [0711/120639.504160:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
gunicorn[1368648]: Received signal 6
...
gunicorn[1368648]: [end of stack trace]
gunicorn[1368648]: Calling _exit(1). Core file will not be generated.
</code>
<code>gunicorn[1368648]: File "/.../scatter_map.py", line 196, in generate_usa_map
gunicorn[1368648]: fig.write_image(IMG_FOLDER + '/scatter_map.svg')
gunicorn[1368648]: File "/.../venv/lib64/python3.9/site-packages/plotly/basedatatypes.py", line 3841, in write_image
gunicorn[1368648]: return pio.write_image(self, *args, **kwargs)
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/plotly/io/_kaleido.py", line 266, in write_image
gunicorn[1368648]: img_data = to_image(
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/plotly/io/_kaleido.py", line 143, in to_image
gunicorn[1368648]: img_bytes = scope.transform(
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/kaleido/scopes/plotly.py", line 153, in transform
gunicorn[1368648]: response = self._perform_transform(
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/kaleido/scopes/base.py", line 293, in _perform_transform
gunicorn[1368648]: self._ensure_kaleido()
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/kaleido/scopes/base.py", line 198, in _ensure_kaleido
...
gunicorn[1368648]: ValueError: Failed to start Kaleido subprocess. Error stream:
gunicorn[1368648]: [0711/120639.490003:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
gunicorn[1368648]: [0711/120639.503893:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
gunicorn[1368648]: [0711/120639.504160:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
gunicorn[1368648]: Received signal 6
...
gunicorn[1368648]: [end of stack trace]
gunicorn[1368648]: Calling _exit(1). Core file will not be generated.
</code>
gunicorn[1368648]: File "/.../scatter_map.py", line 196, in generate_usa_map
gunicorn[1368648]: fig.write_image(IMG_FOLDER + '/scatter_map.svg')
gunicorn[1368648]: File "/.../venv/lib64/python3.9/site-packages/plotly/basedatatypes.py", line 3841, in write_image
gunicorn[1368648]: return pio.write_image(self, *args, **kwargs)
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/plotly/io/_kaleido.py", line 266, in write_image
gunicorn[1368648]: img_data = to_image(
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/plotly/io/_kaleido.py", line 143, in to_image
gunicorn[1368648]: img_bytes = scope.transform(
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/kaleido/scopes/plotly.py", line 153, in transform
gunicorn[1368648]: response = self._perform_transform(
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/kaleido/scopes/base.py", line 293, in _perform_transform
gunicorn[1368648]: self._ensure_kaleido()
gunicorn[1368648]: File ".../venv/lib64/python3.9/site-packages/kaleido/scopes/base.py", line 198, in _ensure_kaleido
...
gunicorn[1368648]: ValueError: Failed to start Kaleido subprocess. Error stream:
gunicorn[1368648]: [0711/120639.490003:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
gunicorn[1368648]: [0711/120639.503893:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
gunicorn[1368648]: [0711/120639.504160:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
gunicorn[1368648]: Received signal 6
...
gunicorn[1368648]: [end of stack trace]
gunicorn[1368648]: Calling _exit(1). Core file will not be generated.