首页 > 解决方案 > 当我尝试提交我的机器人时,为什么会出现错误?

问题描述

我正在使用 heroku,我正在尝试部署我的文件,但我不断收到此错误:

$ git push heroku master
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 16 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (13/13), 1.75 KiB | 893.00 KiB/s, done.
Total 13 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
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 botver2554.
remote:
To https://git.heroku.com/botver2554.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/botver2554.git'

我可以帮忙吗?这与建议的问题不同,因为我遇到了 buildpack 错误,而且我不知道它是什么。

标签: herokudiscord.py

解决方案


It was the stupidest thing. I watched an outdated tutorial that said put no extension after requirements then I looked that you needed a requirements.txt file to continue.


推荐阅读