I've created an app for emotion detection which was working fine locally. All the requirements are given in requirements.txt but while deploying the app on streamlit it is saying error while installing requirements

This is a debugging post, please consider this issue. Required information is added below.

  1. Public github Repo link: Prabhat-2101/Emotion_Detection_Using_DeepLearning (github.com)

[ UTC ] Logs for moodscannerai.streamlit.app/


────────────────────────────────────────────────────────────────────────────────────────


[10:37:59] :desktop_computer: Provisioning machine…


[10:37:59] :control_knobs: Preparing system…


[10:37:59] :chains: Spinning up manager process…


[10:38:00] :rocket: Starting up repository: ‘emotion_detection_using_deeplearning’, branch: ‘master’, main module: ‘app.py’


[10:38:00] :octopus: Cloning repository…


[10:38:07] :octopus: Cloning into ‘/mount/src/emotion_detection_using_deeplearning’…
Warning: Permanently added the ED25519 host key for IP address ‘140.82.116.4’ to the list of known hosts.
Filtering content: 100% (2/2), 210.57 MiB | 37.54 MiB/s, done.


[10:38:07] :octopus: Cloned repository!


[10:38:07] :octopus: Pulling code changes from Github…


[10:38:13] :package: Processing dependencies…



──────────────────────────────────────── uv ───────────────────────────────────────────



Using uv pip install.


× No solution found when resolving dependencies:


╰─▶ Because there are no versions of pil and you require pil, we can


  conclude that the requirements are unsatisfiable.

Checking if Streamlit is installed



────────────────────────────────────────────────────────────────────────────────────────




──────────────────────────────────────── pip ───────────────────────────────────────────



Using standard pip install.


Collecting tensorflow==2.15.0 (from -r /mount/src/emotion_detection_using_deeplearning/requirements.txt (line 1))


Downloading tensorflow-2.15.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.4 kB)


Collecting streamlit==1.35.0 (from -r /mount/src/emotion_detection_using_deeplearning/requirements.txt (line 2))


Downloading streamlit-1.35.0-py2.py3-none-any.whl.metadata (8.5 kB)


ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5


ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)


ERROR: No matching distribution found for PIL


Checking if Streamlit is installed



────────────────────────────────────────────────────────────────────────────────────────



[10:38:16] :exclamation: installer returned a non-zero exit code


[10:38:16] :exclamation: Error during processing dependencies! Please fix the error and push an update, or try restarting the app.


[10:39:50] :exclamation: Streamlit server consistently failed status checks


[10:39:50] :exclamation: Please fix the errors, push an update to the git repo, or reboot the app.

4. Streamlit and python version are added below.
Name: streamlit
Version: 1.35.0
Name: python
version: 3.11.4

Is this the package you want to install?

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