I am trying to host my discord bot through heroku. I’m coding with python. But I got the following error when deploying from GitHub:
JavaScript
x
15
15
1
-----> Using buildpack: heroku/python
2
-----> Python app detected
3
-----> No Python version was specified. Using the buildpack default: python-3.9.6
4
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
5
-----> Installing python-3.9.6
6
-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
7
-----> Installing SQLite3
8
-----> Installing requirements with pip
9
Collecting git+https://github.com/Rapptz/discord.py@rewrite (from -r /tmp/build_25682582/requirements.txt (line 1))
10
Cloning https://github.com/Rapptz/discord.py (to revision rewrite) to /tmp/pip-req-build-hv03qzyg
11
WARNING: Did not find branch or tag 'rewrite', assuming revision or ref.
12
ERROR: Command errored out with exit status 1: git checkout -q rewrite Check the logs for full command output.
13
! Push rejected, failed to compile Python app.
14
! Push failed
15
That was the full build log that I saw on heroku. Can anyone help? Thx
Advertisement
Answer
You should change the first line in requirements.txt
to git+https://github.com/Rapptz/discord.py
. Because there is no tag or branch named “rewrite”.