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!