Debuggging Issue

Hello [Support Team/Forum Moderators],
below is my github app.py " Fully-FIFA-World-Cup-2022-App/FIFA2022Quatar.py at main · Jackson-Mu/Fully-FIFA-World-Cup-2022-App · GitHub "
I hope this message finds you well. I’m encountering persistent issues while trying to install dependencies for my Streamlit application, and I’m seeking your expert assistance to resolve them.

Issue Description:

I am currently attempting to deploy my Streamlit application, which utilizes various Python libraries specified in my requirements.txt file. However, during the installation process on the deployment platform, below is how my requirements.txt look like "streamlit~=1.30.0
pandas==1.4.2
Pillow~=9.1.1
matplotlib==3.5.1
seaborn==0.11.2
numpy==1.22.0
plotly==5.6.0
shapash>=2.4.0
scikit-learn~=1.5.0
tensorflow~=2.8.4
codecarbon==1.1.1
mlflow~=2.2.1
" I consistently encounter the following errors: " Error installing requirements.

Click “Manage App” and consult the terminal for more details.

If you still have questions, leave a message in our forums and we will get back to you ASAP." " ```
[ UTC ] Logs for fifa2022quatarpy-g3bnh9vufmby4psmpfyyjy.streamlit.app/


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


[14:54:53] :desktop_computer: Provisioning machine…


[14:54:58] :control_knobs: Preparing system…


[14:55:03] :chains: Spinning up manager process…


[14:55:08] :balloon: Inflating balloons…


[14:55:14] :open_book: Unpacking Comic Sans RAR files…


[14:54:58] :rocket: Starting up repository: ‘fully-fifa-world-cup-2022-app’, branch: ‘main’, main module: ‘FIFA2022Quatar.py’


[14:54:58] :octopus: Cloning repository…


[14:55:02] :octopus: Cloning into ‘/mount/src/fully-fifa-world-cup-2022-app’…
Warning: Permanently added the ED25519 host key for IP address ‘140.82.116.3’ to the list of known hosts.


[14:55:02] :octopus: Cloned repository!


[14:55:02] :octopus: Pulling code changes from Github…


[14:55:04] :package: Processing dependencies…



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



Using uv pip install.


× No solution found when resolving dependencies:[2024-07-09 14:55:04.559625]


╰─▶ Because there is no version of codecarbon==1.1.1 and you require


  codecarbon==1.1.1, we can conclude that the requirements are

  unsatisfiable.[2024-07-09 14:55:04.560273] 

Checking if Streamlit is installed



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




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



Using standard pip install.


Collecting streamlit~=1.30.0 (from -r /mount/src/fully-fifa-world-cup-2022-app/requirements.txt (line 1))


Downloading streamlit-1.30.0-py2.py3-none-any.whl.metadata (8.2 kB)


Collecting pandas==1.4.2 (from -r /mount/src/fully-fifa-world-cup-2022-app/requirements.txt (line 2))


Downloading pandas-1.4.2.tar.gz (4.9 MB)


 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 84.2 MB/s eta 0:00:00[2024-07-09 14:55:07.394342] 

Installing build dependencies: started


Installing build dependencies: finished with status ‘done’


Getting requirements to build wheel: started


Getting requirements to build wheel: still running…


Getting requirements to build wheel: finished with status ‘done’


Preparing metadata (pyproject.toml): started


Preparing metadata (pyproject.toml): finished with status ‘done’


Collecting Pillow~=9.1.1 (from -r /mount/src/fully-fifa-world-cup-2022-app/requirements.txt (line 3))


Downloading Pillow-9.1.1.tar.gz (49.8 MB)


 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.8/49.8 MB 122.8 MB/s eta 0:00:00[2024-07-09 14:56:36.007778] 

Preparing metadata (setup.py): started


Preparing metadata (setup.py): finished with status ‘done’


Collecting matplotlib==3.5.1 (from -r /mount/src/fully-fifa-world-cup-2022-app/requirements.txt (line 4))


Downloading matplotlib-3.5.1.tar.gz (35.3 MB)


 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 35.3/35.3 MB 109.2 MB/s eta 0:00:00[2024-07-09 14:56:38.054368] 

Preparing metadata (setup.py): started


Preparing metadata (setup.py): finished with status ‘done’


Collecting seaborn==0.11.2 (from -r /mount/src/fully-fifa-world-cup-2022-app/requirements.txt (line 5))


Downloading seaborn-0.11.2-py3-none-any.whl.metadata (2.3 kB)


Collecting numpy==1.22.0 (from -r /mount/src/fully-fifa-world-cup-2022-app/requirements.txt (line 6))


Downloading numpy-1.22.0.zip (11.3 MB)


 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.3/11.3 MB 221.4 MB/s eta 0:00:00[2024-07-09 14:56:46.380334] 

Installing build dependencies: started


Installing build dependencies: finished with status ‘done’


Getting requirements to build wheel: started


Getting requirements to build wheel: finished with status ‘done’


Preparing metadata (pyproject.toml): started


Preparing metadata (pyproject.toml): finished with status ‘done’


Collecting plotly==5.6.0 (from -r /mount/src/fully-fifa-world-cup-2022-app/requirements.txt (line 7))


Downloading plotly-5.6.0-py2.py3-none-any.whl.metadata (7.1 kB)


Collecting shapash>=2.4.0 (from -r /mount/src/fully-fifa-world-cup-2022-app/requirements.txt (line 8))


Downloading shapash-2.6.0-py2.py3-none-any.whl.metadata (24 kB)


Collecting scikit-learn~=1.5.0 (from -r /mount/src/fully-fifa-world-cup-2022-app/requirements.txt (line 9))


Downloading scikit_learn-1.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (12 kB)


ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5; 1.0 Requires-Python >3.5, < 3.8; 1.0.1 Requires-Python >3.5, < 3.8; 1.1.0 Requires-Python >3.5, < 3.9; 1.2.0 Requires-Python >3.5, < 3.9; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 1.3.1 Requires-Python >3.5, < 3.9; 1.3.2 Requires-Python >3.5, < 3.9; 1.4.0 Requires-Python >3.5, <=3.9; 1.4.1 Requires-Python >3.5, <=3.9; 1.4.2 Requires-Python >3.5, <3.10; 1.4.4 Requires-Python >3.5, <3.10; 1.5.0 Requires-Python >3.5, <3.10; 1.6.0 Requires-Python >3.5, <3.10; 1.6.1 Requires-Python >3.5, <3.10; 1.7.1 Requires-Python >3.5, <3.10; 2.0.0 Requires-Python >3.5, <3.10; 2.0.1 Requires-Python >3.5, <3.10; 2.0.2 Requires-Python >3.5, <3.10; 2.1.0 Requires-Python >3.6, <3.11; 2.1.1 Requires-Python >3.6, <3.11; 2.2.0 Requires-Python >3.6, <3.11; 2.2.1 Requires-Python >3.6, <3.11; 2.2.2 Requires-Python >3.6, <3.11; 2.3.0 Requires-Python >3.7, <3.11; 2.3.2 Requires-Python >3.7, <3.11; 2.3.3 Requires-Python >3.7, <3.11; 2.3.4 Requires-Python >3.7, <3.11; 2.3.5 Requires-Python >3.7, <3.11; 2.3.6 Requires-Python >3.7, <3.11; 2.3.7 Requires-Python >3.7, <3.11


ERROR: Could not find a version that satisfies the requirement tensorflow~=2.8.4 (from versions: 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.0.post1, 2.15.1, 2.16.0rc0, 2.16.1, 2.16.2, 2.17.0rc0, 2.17.0rc1)


ERROR: No matching distribution found for tensorflow~=2.8.4



[notice] A new release of pip is available: 24.0 → 24.1.2


[notice] To update, run: pip install --upgrade pip


Checking if Streamlit is installed



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



[14:56:53] :exclamation: installer returned a non-zero exit code


[14:56:53] :exclamation: Error during processing dependencies! Please fix the error and push an update, or try restarting the app.


[14:58:28] :exclamation: Streamlit server consistently failed status checks


[14:58:28] :exclamation: Please fix the errors, push an update to the git repo, or reboot the app.


TensorFlow Version: Unable to find a matching distribution for TensorFlow version 2.8.4. Attempted to upgrade to 2.15.0 as per recommendations, but still encountering compatibility issues.

Scikit-learn: Ignored versions that require a different Python version, affecting compatibility with other dependencies.

Codecarbon: No version 1.1.1 found, making it impossible to satisfy the requirement specified in requirements.txt.

Requested Assistance:

Recommendation for TensorFlow Version: Given the unavailability of TensorFlow 2.8.4, which version should I use that is compatible with my other dependencies (streamlit, scikit-learn, etc.)?

Resolution for Python Version Compatibility: How can I ensure that scikit-learn version 1.5.1 works seamlessly with the specified Python version?

Alternative for Codecarbon: Since version 1.1.1 is not available, what alternative version or library can I use to fulfill the same functionality requirements?

I have reviewed the terminal logs and attempted several adjustments to requirements.txt without success. Your guidance on resolving these issues would be greatly appreciated as I aim to deploy my application successfully.

Thank you for your prompt attention to this matter. Please let me know if any additional information is needed from my side to assist in troubleshooting.

Best regards,
Jackson