DEV Community

Vicente G. Reyes
Vicente G. Reyes

Posted on

Requested runtime (Python 3.7.3) is not available for this stack (heroku-18).

Im deploying a Django 2.2.1 Project in Heroku but I had this error:

-----> Python app detected
! Requested runtime (Python 3.7.3) 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

I tried asking a question on SO but it got closed.

Anyone familiar with this?

Top comments (10)

Collapse
 
rhymes profile image
rhymes •

Have you contacted support? They are not super quick to respond if you're on the free tier.

What does your runtime.txt file contain?

Collapse
 
highcenburg profile image
Vicente G. Reyes • • Edited

I tried but the page doesnt load😂😂

My runtime.txt contains python-3.7.3

Collapse
 
rhymes profile image
rhymes •

is it "python-3.7.3" or "Python-3.7.3"? Heroku says the name is case sensitive: devcenter.heroku.com/articles/pyth...

Thread Thread
 
highcenburg profile image
Vicente G. Reyes •

its python-3.7.3

Thread Thread
 
highcenburg profile image
Vicente G. Reyes •

The maintenance started at 9:00 EDT and will last 2 hours. This started since this morning(in my time. Its 9:11pm already) haha

Collapse
 
hrhazerq profile image
Harbdul_ Rhazerq •

any solution? having the same problem but am using flask

Collapse
 
highcenburg profile image
Vicente G. Reyes •

Do you mind posting your Procfile? If I'm not mistaken, it should be

web: gunicorn app_name:app --log-file -

Don't forget to replace the name of your app on app_name.

Also don't forget to freeze your requirements

pip freeze > requirements.txt

You can check this video. It teaches you 5 ways to deploy a python web app.

Collapse
 
hrhazerq profile image
Harbdul_ Rhazerq •

Thanks for your assistance bro. The problem was the requirements were not complete.

Thread Thread
 
highcenburg profile image
Vicente G. Reyes •

I'm glad you were able to solve this. Cheers!

Thread Thread
 
himanshunikhare profile image
Himanshu Nikhare •

Thnks for this