Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I was trying to deploy a website to an online server . I tried heroku for trial but when i try to push the app at last i get an error..


The error is following



Enumerating objects: 15, done.
Counting objects: 100% (15/15), done.
Delta compression using up to 4 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (15/15), 2.07 KiB | 57.00 KiB/s, done.
Total 15 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! Requested runtime (python-3.7) is not available for this stack (heroku-18).
remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to markmanson.
remote:
To https://git.heroku.com/markmanson.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/markmanson.git'

What I have tried:

I tried to find solutions on sites like stack overflow but i was not happy by their solution as that doesn,nt work ..
Posted
Updated 10-Jan-19 2:11am

1 solution

Quote:
remote: -----> Python app detected
remote: ! Requested runtime (python-3.7) is not available for this stack (heroku-18).
remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support
The messages explain it all; the version of Python you requested (3.7) is not available where you are deploying the app.

Your options:
- Check with the host to see what versions they will support.
- Alter your application so it will work with your host.
- Change hosts to someone who will support what you need/

You may not like the answer, but it is still valid. I presume that the answers you got on Stack Overflow are similar.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900