I am trying in vain to deploy my Streamlit app (it runs locally with no problems). However, I cannot get scipy.optimize to work.
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/appuser/venv/lib/python3.9/site-packages/scipy/optimize/_highs/_highs_wrapper.cpython-39-x86_64-linux-gnu.so)
Shouldn’t this `GLIBCXX_3.4.29’ file be installed with the dependencies of scipy?
This is the Github Repo.
This is what my environment.yml file looks like:
I see you tried out a requirements.txt file in place of the environment.yml file you mentioned here since your post. Did you have any luck with that? If not, did you try rebooting your app after a change in how you’ve defined your requirements?
Also, I found a thread on StackOverflow that may be related. Can you scroll through your terminal logs in Streamlit Cloud to see if there is any mention of how it got installed, especially the idea mentioned re: the variations like usr/lib/ vs usr/local/lib/.
Hoewever, packages will be istalled by pip in that case while i use conda in my local environment.
I think there is no way in the terminal logs to see if and which version of a package has been successfully installed which makes debugging very cumbersome.
It would be a great addition if Streamlit could print a list of installed packages (including the version number) after deploying the app in the terminal.
If you need to check your resultant environment, you can always write lines at the top of your main app such as st.write(streamlit.__version__) to get versions of imported packages.
Also, if you look at the terminal, you can see what it installed since it says explicitly “downloading --…”
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.