DEV Community

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

Vicente G. Reyes on May 21, 2019

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 a...
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