Hello Friends,
I am just starting to learn about streamlit. Today I tried to replicate a tutorial about generating an Streamlit app and deploy it on the Community Cloud.
I created the python code and app in VSC and run the app on a lost host / broser without any problem. I pushed the files to an Github repository, and created the requirements.txt file, and then I tried to deploy the app in the Streamlit.io community cloud. But I have met with the error message as below:
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 â/mount/src/streamlit_sales_dashboard/salesapp.pyâ, line 4, in
- import plotly.express as px*
```
It seems to show the plotly.express module is not found. But I have both plotly and plotly.express installed in my python packages. I have also include both in the requirements.txt, shown below:
openpyx1
streamlit==1.41.1
pandas==2.2.3
plotly==6.0.0
plotly.express==0.4.1
The versions are the same as shown in the pip listed python packages. I have read earlier posts abouy the module not found error. But I donât know what is the problem with my code?
The site of the app is: https://appsalesdashboard-lchen.streamlit.app/
and the github repo with the data and files are in:
GitHub - lijunchen1965/streamlit_sales_dashboard
I would be appreciate any of your suggestions / advice. Thanks.