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.
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/
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?
I put up a minimal example here.
Please let me know if this is sufficient.
Thanks @Amina! I’ll take a look.
@Amina It seems to be working for me https://sfc-gh-zblackwood-st-app-home-r84x0f.streamlit.app/ – are you experiencing something different from what that is showing?
@blackary I made the repo public. Thanks.
I get errors when trying to use scipy or matplotlib
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found
I could still do with some help! Should I start a new thread?
See my pull request on github, should work now.
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!
It should be possible with
conda as well as with
pip. If you provide me with a real project on github, I can help.
This is the real project:
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.
Tried to fix your issues, see my github fork:
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.
@blackary @Isolde @Amina
I switched from conda to pip (requirements.txt) and the problem solved itself.
So, this is definitely a conda-related issue. Also, this means that if you find a way to get away from conda for your app, you likely won’t experience this problem.