[英]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 桌面客户端将以下文件上传到它(我也尝试从网站上传):
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.