Reputation: 21
django (2.0) I am trying to upload my django app to heroku but i couldn't because it says requested runtime(python 3.7.2) is not available.
Counting objects: 100% (1725/1725), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1721/1721), done.
Writing objects: 100% (1725/1725), 9.34 MiB | 21.00 KiB/s, done.
Total 1725 (delta 93), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! Requested runtime (Python 3.7.2) is not available for this stack (heroku-18).
remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to mubashartech.
remote:
To https://git.heroku.com/mubashartech.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/mubashartech.git'
Upvotes: 1
Views: 3415
Reputation: 1
Refer to the supported python versions and align your runtime.txt file make sure it as follows python-3.7.3 with no spacing, if your project is using an extremely lower version of python, you need to align to make sure you aren't using libraries that are not supported as per python-3.7X
Upvotes: 0
Reputation: 1418
in the current herouku stack -20 , even 3.7.3 is not supported. check this link Hence please use 3.7.10 in the runtime.txt file
Upvotes: 1
Reputation: 308839
The Heroku Docs show that the currently supported version of Python 3.7.X is 3.7.3.
Change the value in your runtime.txt
file to python-3.7.3
to use Python 3.7.3.
Upvotes: 3