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)
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 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!
@blackary
I have a similar issue. Running the app on my system works fine. But once I deploy it on the cloud, importing seaborn causes the error. Matplotlib works, inlcuding
in my environment.yml does not solve the problem.
Maybe there is an update since this was first posted?
Thanks for helping! I see your solution is using pip install instead of conda. Only problem is that what Iāve shared here is a quick example, but in my actual project Iām using cartopy, which is a bit of a mess to install using pipā¦ Iāll give it a try but if anyone finds a solution using conda Iāll be happy to hear it!
The page I made (https://isoldeglissenaar-procast-home-m0hdpf.streamlit.app/) looks fine on the homepage because Iām not applying scipy or matplotlib yet. If you click on āarchiveā in the sidebar though it crashes when trying to use matplotlib.
However, it still does not work on streamlit cloud. IMHO the problem is not matplotlib or cartopy, it seems to be the format of the data files in the data folder, read by the xarray library. They are probably in a strange or new HDF5 format variant.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking āAccept allā, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.