Error: Deploy Python Heroku - runtime (python-3.4.0) is not available

0

Pesoal, all good.

Can anyone help me solve the following problem:

I'm doing an application in Django and now I'm in the process of doing the upload to the server. I'll send it to Heroku.

I made the following commands:

Creating git repository:

$ git init

Adds and "commiting" to the repository started:

$ git add .

$ git commit -m "first commit"

Soon after:

$ heroku create

$ git push -m master

And the following error happens:

Counting objects: 97, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (85/85), done.
Writing objects: 100% (97/97), 324.35 KiB | 0 bytes/s, done.
Total 97 (delta 15), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Python app detected
remote:  !     Requested runtime (python-3.5.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 polar-reaches-18114.
remote: 
To https://git.heroku.com/polar-reaches-18114.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/polar-reaches-18114.git'
So I'm deploying a video lesson and at the time the teacher was using python 3.4.0, but I'm currently using python 3.5.2, seeing this, it includes in the runtime.txt file: pyhton-3.5. 2. However, as I understand the message the python version is not being recognized, I also tried the same process by changing the description of the runtime.txt file to python-3.4.0, but the same problem occurs.

    
asked by anonymous 18.11.2018 / 21:01

1 answer

1

According to Heroku documentation they only support versions 3.7.1, 3.6.7 and 2.7 .15 of Python. You are trying to use versions that are no longer available, so modify your project to use version 3.7.1 (recommended) or 3.6.7 that will work.

    
19.11.2018 / 13:21