Streamlit App works on localhost but does not on Cloud

My app works fine on localhost, but when I upload on cloud the app throws some errors.
Here is the repo where I included a requirement file for used modules. What do you think is the reason ?

I think it is an incompatibility between some of the packages.
Any specific reason why you chose such an ancient version of streamlit?
If not, either use the latest versions in your requirements.txt file or just leave them away:


That worked, thanks @Franky1

I used an old version because there was a conflict between click and Streamlit packages…

That was a temporary glitch in one of the streamlit versions about a year ago, but has been fixed long ago.

1 Like

I am able to deploy the app on localhost but getting error out while deploying on streamlit cloud
I tried downgrading the version as well but its not working
Here is the error
ModuleNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).


File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 565, in _run_script
    exec(code, module.__dict__)File "/app/streamlit_project/", line 4, in <module>
    from streamlit_lottie import st_lottie

Hi @Aditya_Singh, this seems unrelated to the original post, but most like the issue is that you haven’t put streamlit-lottie in a requirements.txt file. Look through App dependencies - Streamlit Docs for more details.

Hi @blackary Yeah I resolved that issue. Inserted requirements.txt with streamlit-lottie and requests.
It works just fine

1 Like