Unable to determine set buildpack when it was installed only for Python?

I am trying to push a django web application to a hero to no avail due to the following error:

(venv) douglaswong@Douglas-MacBook-Pro ~/testing (testing)$ git push heroku master Counting objects: 53, done. Delta compression using up to 4 threads. Compressing objects: 100% (35/35), done. Writing objects: 100% (53/53), 41.11 KiB | 0 bytes/s, done. Total 53 (delta 12), reused 48 (delta 11) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Fetching set buildpack git://github.com/heroku/heroku-buildpack-python.git... done remote: remote: ! Push rejected, failed to detect set buildpack git://github.com/heroku/heroku-buildpack-python.git remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure remote: remote: Verifying deploy... remote: remote: ! Push rejected to sleepy-spire-9508. remote: To https://git.heroku.com/sleepy-spire-9508.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/sleepy-spire-9508.git' 

It says that it failed to detect set buildpack. However, I installed it using

 (venv) douglaswong@Douglas-MacBook-Pro ~/testing (testing)$ heroku create --buildpack git://github.com/heroku/heroku-buildpack-python.git Creating fierce-waters-9228... done, stack is cedar-14 Buildpack set. Next release on fierce-waters-9228 will use git://github.com/heroku/heroku-buildpack-python.git. https://fierce-waters-9228.herokuapp.com/ | https://git.heroku.com/fierce-waters-9228.git 

What are the possible reasons for this? I currently have these files in the root directory, if that matters:

 Procfile angellistJob venv README.md requirements.txt 

Any tips are welcome, thanks!

+7
heroku
source share
3 answers

I had a similar problem. For me, the problem was that I forgot to make changes to the local repo.

Also, make sure you are tied to the same branch that you click on.

Hope this helps!

+7
source share

Just bring to the attention of anyone who has the same problem. Even I had the same problem, and I led the exact branch I was aiming for. However, since I did not have a requirements.txt file, push was rejected.
So, make sure you have a Procfile and requirements file .txt before clicking on the hero.

+5
source share

I found out that this problem can occur for two reasons:

  • There is no requirements.txt file in the current directory.
  • You push another branch.

On the other hand, you can install buildpacks at the time of application creation.

heroku create myapp --buildpack heroku/python

+2
source share

All Articles