Unable to Deploy App (guessing issue with package installation)

Hi everyone,
I am trying to deploy an app on streamlit via GitHub. I’m fairly new to web apps and not too well versed with Git. I believe the issue is with packages. Ive used joblib and I think that is causing the issue. The packages used were done locally. Requirements file and app.py file present in repo

link to my app - https://sentim8.streamlit.app
link to git repo - GitHub - karan-88/EduXel
error - I was initially getting the following error:
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘/home/ktietz/src/ci/alabaster_1611921544520/work’

which I looked up in the streamlit forum and added the following line to my requirements file (thinking it would fix the issue):
git+https://github.com/joblib

Unfortunately my app is still failing but with a different error this time:
Collecting git+https://github.com/joblib (from -r /mount/src/eduxel/requirements.txt (line 1))

Running command git clone --filter=blob:none --quiet joblib · GitHub /tmp/pip-req-build-fcan1isk
remote: Not Found
fatal: repository ‘github dot com joblib/’ not found
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet joblib · GitHub /tmp/pip-req-build-fcan1isk did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet joblib · GitHub /tmp/pip-req-build-fcan1isk did not run successfully.
│ exit code: 128
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
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

Running Python 3.10.9
Streamlit, version 1.31.1

Thanks!

Hi @karan-88 . Give a try by mentioning only joblib.

Hi @Guna_Sekhar_Venkata, thank you for replying. Unfortunately that did not work(if I am following you correctly). I get the following error now

ERROR: Invalid requirement: ‘git+joblib’ (from line 1 of /mount/src/eduxel/requirements.txt)
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

Delete the first line (git+joblib) from your requirements file.

  • delete the requirements file, it is crammed with unnecessary and un-installable packages.
  • this is probably all you need :arrow_down:
  • do a reboot of the app

requirements.txt

streamlit
joblib
scikit-learn
nltk
1 Like

hello @Franky1 @Goyo, thank you for responding.
I cleaned up my requirements.txt and that pretty much fixed the issue.

Earlier I had extracted the req.txt file using the following command

pip freeze > requirements.txt

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.