title: How to install discord.py-rewrite dependency on Heroku for Discord bot hosting?
body: <p>I'm trying to deploy my discord.py bot on Heroku using my GitHub master branch, but have been unable to do because of a git error: <code>Could not find a tag or branch 'rewrite', assuming commit</code>. What do I need to do to successfully install the 'rewrite' dependency?</p>
  
  <p>I am currently using the files "requirements.txt", "runtime.txt", "Procfile" and "Aptfile". I've tried several combinations of dependencies in my requirements.txt file, including:</p>
  
  <ul>
  <li>git+<a href="https://github.com/Rapptz/discord.py@rewrite" rel="nofollow noreferrer">https://github.com/Rapptz/discord.py@rewrite</a></li>
  <li>git+<a href="https://github.com/Rapptz/discord.py@rewrite#egg=discord.py" rel="nofollow noreferrer">https://github.com/Rapptz/discord.py@rewrite#egg=discord.py</a></li>
  <li>discord.py</li>
  <li>dnspython==1.16.0</li>
  <li>PyNaCl==1.3.0</li>
  </ul>
  
  <p>These are the contents of my files needed for Heroku:</p>
  
  <p>requirements.txt: <code>git+https://github.com/Rapptz/discord.py@rewrite</code></p>
  
  <p>runtime.txt: <code>python-3.6.8</code></p>
  
  <p>Procfile: <code>worker: python bot.py</code></p>
  
  <p>Aptfile: <code>git</code></p>
  
  <p>When using anything <em>but</em> <code>git+https://github.com/Rapptz/discord.py@rewrite</code> in attempts to get the bot deployed, <code>heroku logs --tail</code> will display the error:</p>
  
  <pre><code>self.custom_red = discord.Colour.from_rgb(255, 0, 0)  # ff0000
  AttributeError: type object 'Colour' has no attribute 'from_rgb' 
  </code></pre>
  
  <p>The important thing I want to emphasize is that PyCharm <em>does not</em> throw this error locally, even having tested that part of the code. This is how I came to the conclusion that that I am having issues with installing the 'rewrite' dependency on Heroku.</p>
  
  <p>This here is the full error log on Heroku:</p>
  
  <pre><code>-----&gt; Uninstalling stale dependencies
         Uninstalling discord.py-0.16.12:
           Successfully uninstalled discord.py-0.16.12
  -----&gt; Installing requirements with pip
         Collecting git+https://github.com/Rapptz/discord.py@rewrite (from -r /tmp/build_9642c6bfbfd8e0f0ea526230740f0bd1/requirements.txt (line 1))
           Cloning https://github.com/Rapptz/discord.py (to rewrite) to /tmp/pip-41cdp1qz-build
           Could not find a tag or branch 'rewrite', assuming commit.
         error: pathspec 'rewrite' did not match any file(s) known to git.
         Command "git checkout -q rewrite" failed with error code 1 in /tmp/pip-41cdp1qz-build
   !     Push rejected, failed to compile Python app.
   !     Push failed 
  </code></pre>
  
  <p>That being said, are there any suggestions to help me get past this error by successfully installing the "rewrite" dependency and thus, have my bot functional on Heroku? </p>
  
  <p>Please let me know if I can provide any additional information. Any help is much appreciated.</p>