I am trying to put my app using Python and Django on the web. But when I try to push it using the Ubuntu terminal command "git push Heroku master" (I have this app on master) I get this:
Enumerating objects: 47, done.
Counting objects: 100% (47/47), done.
Delta compression using up to 8 threads
Compressing objects: 100% (40/40), done.
Writing objects: 100% (47/47), 10.61 KiB | 3.54 MiB/s, done.
Total 47 (delta 4), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-22 stack
remote: -----> Determining which buildpack to use for this app
remote: -----> Python app detected
remote: -----> Using Python version specified in runtime.txt
remote: ! Requested runtime 'python-3.8.10' is not available for this stack (heroku-22).
remote: ! For supported versions, see: https://devcenter.heroku.com/articles/python-support
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: !
remote: ! ## Warning - The same version of this code has already been built: a1975dcc374eefb2b041b4dec789c696bfd788c5
remote: !
remote: ! We have detected that you have triggered a build from source code with version a1975dcc374eefb2b041b4dec789c696bfd788c5
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 thawing-thicket-75475.
remote:
To https://git.heroku.com/thawing-thicket-75475.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/thawing-thicket-75475.git'