Hi, folks! I need help as well
I’m still getting [ModuleNotFoundError: No module named ‘plotly’] errors although I’ve already included it in the requirements.txt file!
Here’s a link to my repository: https://github.com/
It’s where I followed the step-by-step guide of this great tutorial from Youtube https://youtu.be/3egaMfE9388
It works just fine on the local site but when I try to deploy it via streamlit cloud, here’s what it comes out from the log:
[11:14:56] 🐍 Python dependencies were installed from /app/myapp124/requirements.txt using pip.
[11:14:56] 📦 Processed dependencies!
Stopping...
Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.
[11:14:59] 🔄 Updated app!
[11:33:28] 🐙 Pulling code changes from Github...
[11:33:29] 📦 Processing dependencies...
[11:33:29] 📦 Processed dependencies!
[11:33:31] 🔄 Updated app!
[12:41:32] 🐙 Pulling code changes from Github...
2023-01-24 12:41:33.306 Uncaught app exception
Traceback (most recent call last):
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/myapp124/main.py", line 3, in <module>
import plotly.graph_objects as go
ModuleNotFoundError: No module named 'plotly'
[12:41:43] 🐙 Pulling code changes from Github...
[12:41:54] 🐙 Pulling code changes from Github...
[12:42:05] 🐙 Pulling code changes from Github...
2023-01-24 12:42:09.225 Uncaught app exception
Traceback (most recent call last):
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/myapp124/main.py", line 3, in <module>
import plotly.graph_objects as go
ModuleNotFoundError: No module named 'plotly'
[12:42:16] 🐙 Pulling code changes from Github...
[12:42:27] ❗️ Updating the app files has failed: git pull, cmd: sudo -u appuser GIT_SSH_COMMAND='ssh -i /home/appuser/.ssh/id_github -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o "LogLevel ERROR"' git fetch origin && sudo -u appuser git reset --hard origin/main: error: exit status 128: error: unable to create file .streamlit/config.toml: Permission denied
fatal: Could not reset index file to revision 'origin/main'.
[12:43:29] 🐙 Pulling code changes from Github...
2023-01-24 12:43:38.284 Uncaught app exception
Traceback (most recent call last):
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/myapp124/main.py", line 3, in <module>
import plotly.graph_objects as go
ModuleNotFoundError: No module named 'plotly'
2023-01-24 12:43:40.870 Uncaught app exception
Traceback (most recent call last):
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/myapp124/main.py", line 3, in <module>
import plotly.graph_objects as go
ModuleNotFoundError: No module named 'plotly'
It seems to have repeated several times before it crashed!