Hi guys!
My app https://spikescape.streamlit.app/ worked great on the streamlit cloud, but crashed today.
I didn’t change anything in the app, and when I tried to reboot an app it throws the following error:
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/elements/arrow_altair.py", line 27, in <module>
from altair.vegalite.v4.api import Chart
ModuleNotFoundError: No module named 'altair.vegalite.v4'
[15:07:15] Streamlit server consistently failed status checks
Do you know what could be the reason and how could I fix it?
Altair version 5.0.0 was released on 9. May 2023, probably there are some breaking changes.
If you don’t pin the altair version <5 and then perform a reboot/deploy, this issue will hit you.
This error can also happen if the streamlit package is pinned to an older version. In practice, this has been seen to happen if you pin to streamlit==1.17.0 in streamlit.txt, but works if you unpin or change to streamlit==1.22.0
I am having the same issue with my streamlit app. I added the altair<5 to my requirement file but still I am not able to run my app.
This is my GitHub requirement repository link:
I tried changing the streamlit version too but got the same result. Please, help. Thanks
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/elements/arrow_altair.py", line 36, in <module>
from altair.vegalite.v4.api import Chart
ModuleNotFoundError: No module named 'altair.vegalite.v4'
This is my error and I used PIckle5 to read my prediction model.
I wanted to give you an update on the app—it’s running smoothly! I actually realized my mistake. Instead of simply refreshing the app, I needed to reboot the entire thing. It turns out I was confusing those two actions.
I really appreciate your quick response. It’s amazing how supportive the streamlit community is—I’m absolutely loving it!
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.