Skip to content

Can't export Plotly images with kaleido... locale_file_path.empty() for locale, Received signal 6? #192

Closed
@DustinCai

Description

@DustinCai

I'm having trouble getting plotly to generate a map image. I'm getting the following error about the core file not generating and something about the locale_file_path. I have no idea how to resolve this. Any ideas?

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]: #0 0x563bde58ed79 base::debug::CollectStackTrace()
gunicorn[1368648]: #1 0x563bde50c633 base::debug::StackTrace::StackTrace()
gunicorn[1368648]: #2 0x563bde58e95b base::debug::(anonymous namespace)::StackDumpSignalHandler()
gunicorn[1368648]: #3 0x7fa462a61cf0 (/usr/lib64/libpthread-2.28.so+0x12cef)
gunicorn[1368648]: #4 0x7fa46155aacf __GI_raise
gunicorn[1368648]: #5 0x7fa46152dea5 __GI_abort
gunicorn[1368648]: #6 0x563bde53a30a base::internal::OnNoMemoryInternal()

...
gunicorn[1368648]: [end of stack trace]
gunicorn[1368648]: Calling _exit(1). Core file will not be generated.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions