I want to resolve the error that occurs when I run "Deploy Branch" on Heroku

Asked 2 years ago, Updated 2 years ago, 390 views

I would like to permanently run the Discord Bot I created using Heroku.
I'm working with GitHub now, but I don't know if the method is right.
I just created a repository on GitHub and moved the program I made with VScode and other files to the file I made and GitPush at the terminal of VScode.
I'm sorry if the method is wrong at this point.

Error Code Received When Running "Deploy Branch"

Python app detected
 !     Requested runtime (Python-3.9.1) is not available for this stack (heroku-18).
 !     Aborting.More info: https://devcenter.heroku.com/articles/python-support
 !     Push rejected, failed to compile Python app.
 !     Push failed

python github heroku discord

2022-09-30 21:51

2 Answers

According to the link,

If you receive the error qRequested runtime is not available for this stack と using any of the above versions, make sure that the app is using the latest version of Python build pack.

That's right.
As the link says,

heroku buildpacks:clear
heroku buildpacks —add heroku/python
heroku buildpacks

Let's run the command in the


2022-09-30 21:51

There is a file called runtime.txt in the root directory of the bot.Try changing Python-3.9.1 to python-3.9.1.


2022-09-30 21:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.