簡體   English   中英

將機器人部署到 heroku,無法將機器人推送到 heroku

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

我在使用 heroku 將我使用 discord.py 制作的機器人部署到 discord 時遇到問題。 我遵循了許多指南,並研究了其他來源以及為什么會發生這種情況,但似乎沒有任何效果。 這就是我得到的......

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'

有誰知道為什么會這樣? 這是通過命令提示符順便說一句!

您已將https://github.com/tony1bally/education-helper聲明為requirements.txt中的依賴項,但存儲庫為空,無法與pip一起安裝為 ZA7F5F35426B927411FCZ2315 模塊。

requirements.txt中刪除它,添加、提交並再次推送。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM