ModuleNotFoundError: No module named 'joblib'
2024-03-03 18:49:39.235 503 GET /script-health-check (10.12.88.91) 106.95ms
2024-03-03 18:49:44.123 Uncaught app exception
Traceback (most recent call last):
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.__dict__)
File "/mount/src/nlp-sentiment-analysis/Dashboard.py", line 4, in <module>
import joblib
ModuleNotFoundError: No module named 'joblib'
2024-03-03 18:49:44.240 503 GET /script-health-check (10.12.88.91) 118.84ms
Hello this is problem that I got. Although it works in my local, and I recreated a few times my model, I am still getting this problem.
Thanks for the help. Now, I got an different error. I have upgraded pip, but still same mistake ```
Invalid requirement: 'abseil-cpp=20211102.0=hd77b12b_0' (from line 4 of /mount/src/nlp-sentiment-analysis/requirements.txt)
Hint: = is not a valid operator. Did you mean == ?
WARNING: You are using pip version 22.0.3; however, version 24.0 is available.
You should consider upgrading via the '/home/adminuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed
@Nevzat_Taha Could you share whats you are mentioning in line 4 of requirements.txt for better understanding of your error.
Without seeing your actual github repo, we are poking around in the dark.
This file may be used to create an environment using:
$ conda create --name --file
platform: win-64
abseil-cpp=20211102.0=hd77b12b_0
altair=5.0.1=py312haa95532_0
arrow-cpp=14.0.2=ha81ea56_1
asttokens=2.0.5=pyhd3eb1b0_0
attrs=23.1.0=py312haa95532_0
aws-c-auth=0.6.19=h2bbff1b_0
aws-c-cal=0.5.20=h2bbff1b_0
aws-c-common=0.8.5=h2bbff1b_0
aws-c-compression=0.2.16=h2bbff1b_0
aws-c-event-stream=0.2.15=hd77b12b_0
aws-c-http=0.6.25=h2bbff1b_0
aws-c-io=0.13.10=h2bbff1b_0
aws-c-mqtt=0.7.13=h2bbff1b_0
aws-c-s3=0.1.51=h2bbff1b_0
aws-c-sdkutils=0.1.6=h2bbff1b_0
aws-checksums=0.1.13=h2bbff1b_0
aws-crt-cpp=0.18.16=hd77b12b_0
aws-sdk-cpp=1.10.55=hd77b12b_0
beautifulsoup4=4.12.2=py312haa95532_0
it basically goes on
I have created requirements through cmd rather than anaconda prompt, and it is solved
This requirements file will still not work, it is crammed with unnecessary and uninstallable libraries.
I have just updated and solved this mistake, but there are still mistake although it works in my local. Can you check it?
Remove all external libraries except those you actually import in your Streamlit application