简体   繁体   English

为什么我的 Python 应用程序与 Heroku 的 Python buildpack 不兼容

[英]Why is my Python app not compatible with Heroku's Python buildpack

I know this has been asked multiple times before but none of the answers seem to work for my particular case.我知道这之前已被多次询问,但似乎没有一个答案适用于我的特定情况。 I created a new Github repository and uploaded the following files to it via the Github desktop client (I tried uploading from the website as well):我创建了一个新的 Github 存储库并通过 Github 桌面客户端将以下文件上传到它(我也尝试从网站上传):

  • Counter.py计数器.py
  • Procfile配置文件
  • requirments.txt要求.txt

The app itself works when I test it locally.当我在本地测试时,该应用程序本身可以工作。 This is the Procfile:这是Procfile:

worker: python Counter.py

requirments.txt:要求.txt:

git+https://github.com/Rapptz/discord.py
dnspython==1.16.0
PyNaCl==1.3.0
async-timeout==3.0.1

I receive the following error every time I try to deploy it from my Github repository:每次尝试从 Github 存储库部署它时,都会收到以下错误:

-----> App not compatible with buildpack: https://buildpack- 
registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
   More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
!     Push failed

I just don't understand why it isn't compatible with the buildpack but every other app I made is.我只是不明白为什么它与 buildpack 不兼容,但我制作的所有其他应用程序都是。 I tried deploying other apps from other repositories and it worked just fine.我尝试从其他存储库部署其他应用程序,效果很好。 Thanks for reading.谢谢阅读。

你写requirments.txt而不是两次requirements.txt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python heroku -app与buildpack不兼容 - Python heroku -app not compatible with buildpack 应用程序与 buildpack 不兼容 - Heroku/python - App not compatible with buildpack - Heroku/python Heroku 应用程序与 Python Buildpack 不兼容 - Heroku App Not Compatible with Python Buildpack Python Heroku应用程序部署“应用程序与buildpack不兼容”错误 - Python Heroku app deployment “App not compatible with buildpack” error 应用与 buildpack 不兼容 - Heroku - App not compatible with buildpack - Heroku Heroku:应用程序与buildpack不兼容: - Heroku: App not compatible with buildpack: Heroku - 上传 Django-App 时应用程序与 buildpack https://github.com/heroku/heroku-buildpack-python.git 不兼容 - Heroku - App not compatible with buildpack https://github.com/heroku/heroku-buildpack-python.git when uploading a Django-App 部署 Python 应用程序时出错,“应用程序与 buildpack 不兼容” - Error in deploying Python app, “app not compatible with buildpack” 应用程序与 buildpack、django Heroku 不兼容 - App not compatible with buildpack, django Heroku 将 discord 机器人(python)上传到 Heroku:应用程序与 buildpack 错误不兼容(我知道它被问了很多) - Uploading a discord bot (python) onto Heroku : App not compatible with buildpack error (I know its been asked a lot)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM