python - Heroku:应用程序与 buildpack 不兼容:

标签 python git heroku

Enumerating objects: 88, done.
Counting objects: 100% (88/88), done.
Delta compression using up to 8 threads.
Compressing objects: 100% (40/40), done.
Writing objects: 100% (88/88), 24.46 KiB | 6.12 MiB/s, done.
Total 88 (delta 42), reused 88 (delta 42)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://buildpack-    registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to block-monitor.
remote:
To https://git.heroku.com/block-monitor.git
 ! [remote rejected] master -> master (pre-receive hook declined)

目录:

10/17/2018  09:58 PM    <DIR>          .
10/17/2018  09:58 PM    <DIR>          ..
10/05/2018  08:30 PM                93 .gitignore
10/05/2018  08:30 PM            10,283 bbot.py
10/05/2018  08:30 PM            35,966 LICENSE
10/17/2018  09:58 PM                18 Procfile
08/21/2018  06:22 PM                97 README.md
10/17/2018  09:56 PM               962 requirements.txt
10/17/2018  09:53 PM                12 runtime.txt
08/21/2018  06:22 PM                15 tokenfile.example
10/17/2018  10:02 PM                59 tokenfile.txt
10/05/2018  08:30 PM               131 tox.ini
              10 File(s)         47,636 bytes
               2 Dir(s)  128,269,000,704 bytes free

运行时.txt: python-3.7.0

需求.txt:

alabaster==0.7.11
astroid==2.0.1
async-timeout==3.0.0
atomicwrites==1.1.5
attrs==18.1.0
Babel==2.6.0
beautifulsoup4==4.6.3
certifi==2018.4.16
cffi==1.11.5
...

过程文件: 工作人员:py bbot.py

抱歉,如果格式错误! 我已经添加了所有内容,我不知道为什么它不起作用。 任何想法?我有Procfile、requirements.txt 和runtime.txt,所有这些都遵循所需的大小写和内容。

最佳答案

在我的 Git Repo 的根文件夹中添加requirements.txt和runtime.txt后,它对我有用。 请确保您已添加这些文件。

关于python - Heroku:应用程序与 buildpack 不兼容:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52867403/

相关文章:

ruby-on-rails - 未初始化的常量 Sass::Plugin

python - 如何将许多列汇总为独特的组合

git - 如何向 git pull 提供 --prune-tags ?

git - Gulp-git clone 在特定的文件夹位置。克隆到 'undefined' 文件夹

c# - 从 Git 存储库部署到 Azure 时如何处理 DLL

java - jhipster 应用程序部署到 Heroku 时出错

css - 我的 html.erb View 页面中的内联 css 样式的背景图像仅在开发阶段显示,但在 heroku 上不显示在生产阶段

python - 第三方应用程序的 Django 翻译

python - 将 python 依赖项添加到 Docker 容器的好方法是什么?

python - 如何在 python 中删除错误类型的行?