title: remote: -----> App not compatible with buildpack: heroku error while hosting a discord bot
body: <p>i wanted to host my discord bot on heroku</p>
  <p><a href="https://www.youtube.com/watch?v=BPvg9bndP1U" rel="nofollow noreferrer">i have followed and youtube video till here</a></p>
  <p>but i don't know what to do to fix this error</p>
  <p>full</p>
  <pre><code>Enumerating objects: 6, done.
  Counting objects: 100% (6/6), done.
  Delta compression using up to 4 threads
  Compressing objects: 100% (4/4), done.
  Writing objects: 100% (6/6), 2.68 KiB | 2.68 MiB/s, done.
  Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
  remote: Compressing source files... done.
  remote: Building source:
  remote: 
  remote: -----&gt; Building on the Heroku-20 stack
  remote: -----&gt; Using buildpack: heroku/python
  remote: -----&gt; 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:  !
  remote:  ! ## Warning - The same version of this code has already been built: 0f11b1acbc6bdb39c6ea1fc83fa514db48551dfe
  remote:  !
  remote:  ! We have detected that you have triggered a build from source code with version 0f11b1acbc6bdb39c6ea1fc83fa514db48551dfe
  remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
  remote:  !
  remote:  ! If you are developing on a branch and deploying via git you must run
  remote:  !
  remote:  !     git push heroku &lt;branchname&gt;:main
  remote:  !
  remote:  ! This article goes into details on the behavior:
  remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
  remote: 
  remote: Verifying deploy...
  remote: 
  remote: !   Push rejected to bruh-bot-7869.
  remote: 
  To https://git.heroku.com/bruh-bot-7869.git
   ! [remote rejected] master -&gt; master (pre-receive hook declined)
  error: failed to push some refs to 'https://git.heroku.com/bruh-bot-7869.git'
  </code></pre>
  <p>i have 2 files in the folder :-</p>
  <p>main.py</p>
  <p>rr.json</p>
  <p>both are important</p>
  <p>and in the Procfile :-</p>
  <pre><code>worker: python main.py
  </code></pre>
  <p>and requirements.txt :-</p>
  <pre><code>git+https://github.com/Rapptz/discord.py@rewrite
  </code></pre>
  <p>i have no idea what to do
  please help!</p>