App not compatible with buildpack – Heroku/python

Question:

I get this message when trying to push my project to GitHub to connect with Heroku

-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz

       More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
       Push failed

I already put my Requirements.txt and Procfile in the root. My Requirements.txt looks like this:

json5==0.8.5
jsonschema==2.6.0
regex==2018.2.21
requests==2.23.0
schedule==0.6.0
spotipy==2.12.0
tweepy==3.8.0

and my Procfile looks like this:

  worker: python app.py

My GitHub repo is: https://github.com/dahliahadfury/Spotify-recommendation

Asked By: yola

||

Answers:

I already put my Requirements.txt and Procfile in the root

Case is important. The requirements file must be named requirements.txt (all lowercase).

Rename your requirements file, commit, and deploy again:

  • git mv Requirements.txt requirements.txt
  • git commit -m "Fix name of requirements file"
  • git push heroku master
Answered By: Chris

i had the same issue, but just I’ve change Requirements.txt for requirement.txt (all lowercase)

enter image description here

Answered By: David Chay
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.