Streamlit deploy problem ImportError of common python packages

When deploying on Streamlit Cloud it failed with the following ImportError. This occurs when import common python packages such as matplotlib, seaborn, scipy, etc. In my local Windows (with Anaconda installations) it runs without issues. Does anyone know how to fix this? Thanks!

  File "/home/appuser/.conda/lib/python3.7/site-packages/matplotlib/transforms.py", line 46, in <module>
    from matplotlib._path import (
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/appuser/.conda/lib/python3.7/site-packages/matplotlib/_path.cpython-37m-x86_64-linux-gnu.so)

Link to source code https://github.com/luan-th-nguyen/spatial_kriging

Can you try adding a packages.txt file with this line and see if that resolves the issue?

libstdc++6

Did not resolve the issue for me. I wonder if it’s something on your end. I suppose I can switch to pip in requirements.txt, but I’d rather stick with conda. Thanks.

@blackary
Hello there sir i am facing issues while deployment of my application, the error is that error while installing requirements.

Kindly sir help me out

@blackary: thanks for the suggestion but it doesn’t solve the problem yet.

@LuanNguyen We’ve been able to deploy the app here without issues: https://carolinedlu-spatial-kriging-streamlit-app-qmv85d.streamlit.app/

Could you try deleting and redeploying with python 3.9?

@blackary I do not mean to take attention away from @LuanNguyen , but I am chiming in because I am experiencing the same problem. I tried redeploying with 3.9 even before I changed packages.txt, but to no avail. My code is at https://github.com/akurlovs/DiSiR_app . Thanks!

The app is here https://disir-scrna.streamlit.app/