This is my first time using streamlit and Iβm facing an issue with deploying my Streamlit app. Here are the details of the problem:
App Link: anprapp.streamlit.app
GitHub Repository: Tirth2742/ANPR-Streamlit-app
Error Message:
[09:41:40]
Provisioning machineβ¦
[09:41:40]
Preparing systemβ¦
[09:41:40]
Spinning up manager processβ¦
[09:41:38]
Starting up repository: βanpr-streamlit-appβ, branch: βmainβ, main module: βappstream.pyβ
[09:41:38]
Cloning repositoryβ¦
[09:41:39]
Cloning into β/mount/src/anpr-streamlit-appββ¦
[09:41:39]
Cloned repository!
[09:41:39]
Pulling code changes from Githubβ¦
[09:41:40]
Processing dependenciesβ¦
ββββββββββββββββββββββββββββββββββββββββ uv βββββββββββββββββββββββββββββββββββββββββββ
Using uv pip install.
Resolved 87 packages in 401ms
error: Failed to download distributions
Caused by: Failed to fetch wheel: numpy==1.25.0
Caused by: Failed to build: numpy==1.25.0
Caused by: Build backend failed to determine extra requires with build_wheel() with exit status: 1
β stdout:
β stderr:
Traceback (most recent call last):
File ββ, line 8, in
File β/home/adminuser/.cache/uv/.tmp4vnMBE/.venv/lib/python3.12/site-packages/setuptools/init.pyβ, line 10, in
import distutils.core
ModuleNotFoundError: No module named βdistutilsβ
β¦
Checking if Streamlit is installed
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[09:42:13]
installer returned a non-zero exit code
[09:42:13]
Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[09:43:48]
Streamlit server consistently failed status checks
[09:43:48]
Please fix the errors, push an update to the git repo, or reboot the app.
Streamlit Version: 1.23.1
Python Version: 3.12
Issue Description: The deployment fails with a ModuleNotFoundError for distutils, which seems to be affecting the installation of numpy==1.25.0. It appears that the build environment may be missing necessary components, particularly distutils.
I would appreciate any guidance or suggestions to resolve this issue. Thank you!