简体   繁体   English

将机器人部署到 heroku,无法将机器人推送到 heroku

[英]deploying bot to heroku, can't push bot to heroku

I'm having issues deploying my bot i made using discord.py into discord using heroku.我在使用 heroku 将我使用 discord.py 制作的机器人部署到 discord 时遇到问题。 I've followed many guides and looked into mane other sources as well to why it is happening and nothing seems to be working.我遵循了许多指南,并研究了其他来源以及为什么会发生这种情况,但似乎没有任何效果。 This is what i get....这就是我得到的......

remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-3.6.10
remote: -----> Installing pip
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        Collecting git+https://github.com/tony1bally/education-helper (from -r /tmp/build_e8b937d57bb9efdeafd512bb63149ee1/requirements.txt (line 1))
remote:          Cloning https://github.com/tony1bally/education-helper to /tmp/pip-req-build-7hfbm1vc
remote:          Running command git clone -q https://github.com/tony1bally/education-helper /tmp/pip-req-build-7hfbm1vc
remote:            ERROR: Command errored out with exit status 1:
remote:             command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-7hfbm1vc/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-7hfbm1vc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-7hfbm1vc/pip-egg-info
remote:                 cwd: /tmp/pip-req-build-7hfbm1vc/
remote:            Complete output (5 lines):
remote:            Traceback (most recent call last):
remote:              File "<string>", line 1, in <module>
remote:              File "/app/.heroku/python/lib/python3.6/tokenize.py", line 452, in open
remote:                buffer = _builtin_open(filename, 'rb')
remote:            FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-7hfbm1vc/setup.py'
remote:            ----------------------------------------
remote:        ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to education-helper.
remote:
To https://git.heroku.com/education-helper.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/education-helper.git'

Does anyone know why this is happening?有谁知道为什么会这样? This is through the command prompt btw!这是通过命令提示符顺便说一句!

You've declared https://github.com/tony1bally/education-helper as a dependency in requirements.txt but the repository is empty and cannot be installed with pip as a Python module.您已将https://github.com/tony1bally/education-helper声明为requirements.txt中的依赖项,但存储库为空,无法与pip一起安装为 ZA7F5F35426B927411FCZ2315 模块。

Remove it from requirements.txt , add, commit and push again.requirements.txt中删除它,添加、提交并再次推送。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM