The app works fine on my localhost before deploying. The machine model works perfectly and gives the necessary output, but I haven’t been able to deploy since last night
I tried to clone your repo and look at the errors, and saw that it had an issue with a particular version of numpy:
× Failed to download and build `scikit-learn==1.4.2`
├─▶ Failed to resolve requirements from `build-system.requires`
├─▶ No solution found when resolving: `setuptools`, `wheel`,
│ `cython>=3.0.8`, `numpy==2.0.0rc1`, `scipy>=1.6.0`
╰─▶ Because there is no version of numpy==2.0.0rc1 and you require
numpy==2.0.0rc1, we can conclude that your requirements are
unsatisfiable.
It sounds like you’ve already done a lot of work fixing the conflicts and making sure your app runs locally, so the deployment issue might be linked to the environment setup or dependencies. Double-check your requirements.txt file for any packages that might not be supported in the deployment environment.
In my work with https://www.aftermathinvestigations.com/, I’ve seen similar cases where a small dependency version mismatch caused major deployment failures. Cleaning up unnecessary packages and specifying exact versions often solves it. You might want to try that approach here as well.
Thanks for your input. I actually realized this. I tried doing so and nothing changed and then it clicked. “What if I changed the python version that better supports the dependencies?” So on my app I persisted on using python 3.11 and it fixed my problems.