Plotly – Can’t generate images with Kaleido. Locale warning?

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.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<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.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật