F
F
From Prog2021-06-15 16:14:09
git
From Prog, 2021-06-15 16:14:09

Error when trying to git push heroku master?

I'm trying to upload a python bot to the Heroku server, I did everything according to the instructions , and when I ran git push heroku master, I got an error:

git push heroku master
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpack: heroku/python
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote:  !     Push failed
remote:  !
remote:  ! ## Warning - The same version of this code has already been built: 1f3b4fbb06d3120dc679a281efbf2ce0b55fbab5
remote:  !
remote:  ! We have detected that you have triggered a build from source code with version 1f3b4fbb06d3120dc679a281efbf2ce0b55fbab5
remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote:  !
remote:  ! If you are developing on a branch and deploying via git you must run:
remote:  !
remote:  !     git push heroku <branchname>:main
remote:  !
remote:  ! This article goes into details on the behavior:
remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
remote:
remote: Verifying deploy...
remote:
remote: !       Push rejected to my-first-python-telegram-bot.
remote:
To https://git.heroku.com/my-first-python-telegram-bot.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/my-first-python-telegram-bot.git'


Please help, I've been trying to solve this problem for several hours.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2021-06-15
@FromProg

requirements.txt is present in the project root?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question