Ошибка при использовании $ git push heroku master, хотя runtime.txt верный - PullRequest
0 голосов
/ 12 июня 2018

Я пытаюсь использовать $ git push heroku master, но получаю эту ошибку:

$ git push heroku master
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (6/6), 534 bytes | 534.00 KiB/s, done.
Total 6 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote:  !     The latest version of Python 3 is python-3.6.5 (you are using , which is unsupported).
remote:  !     We recommend upgrading by specifying the latest version (python-3.6.5).
remote:        Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing
remote:  !     Requested runtime () is not available for this stack (heroku-16).
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 securibot.
remote:
To https://git.heroku.com/securibot.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/securibot.git'

Мой файл runtime.txt читает следующее:

python-3.6.5

Любая идея, почему яполучаю эту ошибку?

1 Ответ

0 голосов
/ 13 июня 2018

Читали ли вы ссылочный URL, который был опубликован?

Если вы посмотрите https://devcenter.heroku.com/articles/python-runtimes,, вы увидите, что "Недавно созданные приложения Python по умолчанию имеют среду выполнения Python 3.6.4".

Вы можете указать свое собственное время выполнения в вашем Pipfile или создать файл runtime.txt со следующим:

python-3.6.5
...