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:
pandas
streamlit
openpyxl
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.
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).
Traceback:
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)File "/app/streamlit_project/app.py", 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