My app works on local, but not Deploying it

Currently using python 3.12.9 with this requeriments.txt :
altair==5.5.0
blinker==1.9.0
cachetools==5.5.2
click==8.1.8
gitdb==4.0.12
GitPython==3.1.44
joblib==1.4.2
narwhals==1.31.0
numpy==2.2.4
pandas==2.2.3
pillow==11.1.0
protobuf==5.29.4
pyarrow==19.0.1
pydeck==0.9.1
pytz==2025.1
scikit-learn==1.6.1
scipy==1.15.2
smmap==5.0.2
streamlit==1.43.2
tenacity==9.0.0
threadpoolctl==3.6.0
toml==0.10.2
tzdata==2025.1
watchdog==6.0.0
Im not able to deploy the app, that is working in local.
I simplified the repository at its maximum :
https://github.com/JosBerGon34/27streamlit
The deploy error is the next one:
Traceback (most recent call last):
File “/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py”, line 121, in exec_func_with_error_handling
result = func()
^^^^^^
File “/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 593, in code_to_exec
exec(code, module.dict)
File “/mount/src/27streamlit/DiabSav.py”, line 2, in
import joblib
ModuleNotFoundError: No module named ‘joblib’
2025-03-23 12:06:24.810 503 GET /script-health-check (127.0.0.1) 102.56ms
Seems like the virtual machine from streamlit has some issues to find joblib library or maybe there is some error in my code.

1 Like

The requirements file should be requirements.txt.

1 Like

SO much thanks dude! I was like figurint it out 6 hours and it was that fucking call of the config file, my english is bad and i also tiped wrong the req.txt. Thanks you so much