2017-08-24 301 views
0

我需要一些帮助来解决这个问题。我在另一个heroku帐户中有其他网站,但我没有进入我的空帐户。我正在使用python3.5.0(但我试图改变python版本没有成功)和Django 1.10。我在我的git repositore,runtime.txt,procfile.txt,但我有这样的问题:(终端)推送失败heroku

Counting objects: 105, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (97/97), done. 
Writing objects: 100% (105/105), 2.22 MiB | 113.00 KiB/s, done. 
Total 105 (delta 34), reused 0 (delta 0) 
remote: Compressing source files... done. 
remote: Building source: 
remote: 
remote: -----> Python app detected 
remote: -----> Installing python-3.5.0 
remote: !  Requested runtime (python-3.5.0) 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 confiam2. 
remote: 
To https://git.heroku.com/confiam2.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to 'https://git.heroku.com/ 

我该如何解决这个问题?我试图更新heroku版本,并更改​​python版本。没有成功。非常感谢谁能帮助我。

+0

“我试图......改变python版本。”你是怎么做的? – Chris

+0

更改runtime.txt,但我认为我更改为另一个不支持的版本。 – victorcd

回答

2

错误代码是这样的 -

Requested runtime (python-3.5.0) is not available for this stack (heroku-16). 

如果您访问support page建议,你会看到的Python 3.6.2和2.7.13是只有支持的运行时间。你为什么期望3.5.0能够工作?更改您的runtime.txt文件,以包含python-3.6.2(或尝试另一个版本,如python-3.5.2,也许它会工作。谁知道,它不支持),并且该应用程序应该被接受由Heroku(只要没有其他非相关问题)。