App not compatible with buildpack , django heroku - python

Using buildpack: heroku/python but still it says not compatible
Please Help i am a beginner in django
Here is build log :
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed
And here is the project :https://github.com/Shadow-Knight503/Meme_Site

In the root of your project rename requirements to requirements.txt.
This is a necessary to ensure Heroku can recognize a Python application.

Related

Heroku app successfully deploying, but showing application error when loading the site

Below you can find the logs. Am I missing something here?
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> Python app detected
-----> No Python version was specified. Using the same version as the last build: python-3.10.5
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
-----> No change in requirements detected, installing from cache
-----> Using cached install of python-3.10.5
-----> Installing pip 22.1.2, setuptools 60.10.0 and wheel 0.37.1
-----> Installing SQLite3
-----> Installing requirements with pip
Ignoring backports.zoneinfo: markers 'python_version < "3.9"' don't match your environment
-----> $ python manage.py collectstatic --noinput
Found another file with the destination path 'admin/js/cancel.js'. It will be ignored since only the first
encountered file is collected. If this is not what you want, make
sure every static file has a unique path.
Found another file with the destination path 'admin/js/popup_response.js'. It will be ignored since only the
first encountered file is collected. If this is not what you want,
make sure every static file has a unique path.
1451 static files copied to '/tmp/build_9c61124b/static_cdn', 111 unmodified.
-----> Discovering process types
-----> Compressing...
Done: 116.3M
-----> Launching...
Released v13
https://dgrealstate.herokuapp.com/ deployed to Heroku
This app is using the Heroku-20 stack, however a newer stack is available.
To upgrade to Heroku-22, see:
https://devcenter.heroku.com/articles/upgrading-to-the-latest-stack

Heroku fails to deploy Python discord bot

Every time i try to deploy my bot it shows me this error:
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed
I have Procfile, requirments.txt, runtime.txt.
The requirments.txt:
discord
The runtime.txt:
python-3.10.3
What should i do?
I fixed it, because i missed a letter in requirements.txt file name.

Heroku python app failing to build when installing sqlite3

My Python app on Heroku failed to build consistently:
-----> Python app detected
! Python has released a security update! Please consider upgrading to python-3.6.8
Learn More: https://devcenter.heroku.com/articles/python-runtimes
-----> Found python-3.6.4, removing
-----> Installing python-3.6.7
-----> Installing pip
-----> Installing SQLite3
! Push rejected, failed to compile Python app.
! Push failed
It is a Django application that runs fine locally.
python-3.6.7 specified in runtime.txt, and I've tried other versions.
My Procfile contains:
release: python <appname>/manage.py migrate
web: python <appname>/manage.py runserver 0.0.0.0:$PORT
I could probably use gunicorn but that's irrelevant here. The build logs doesn't seem to provide me any information.
requirements.txt
chardet==3.0.4
Django==2.0.2
idna==2.6
pytz==2018.3
requests==2.18.4
urllib3==1.22
dj-database-url==0.5.0
setuptools==1.0.0
Try this in your app.json. Although it a temporary solution
"buildpacks": [
{
"url": "https://github.com/heroku/heroku-buildpack-python.git#remove-
sqlite"
},
See: https://travis-ci.org/heroku/heroku-buildpack-python
Upgrade the the stack from heroku-16 to heroku-18 in app.json.

Error while deploying Flask app on Heroku "Requested runtime not available for this stack"

I'm trying to deploy an app on Heroku. I have included the runtime.txt file and included the latest python version 3.6.3 as suggested, but I'm getting the following error.
-----> Python app detected
! The latest version of Python 3 is python-3.6.3 (you are using python 3.6.3, which is unsupported).
! We recommend upgrading by specifying the latest version (python-3.6.3).
Learn More: https://devcenter.heroku.com/articles/python-runtimes
-----> Installing python 3.6.3
! Requested runtime (python 3.6.3) is not available for this stack (heroku-16).
! Aborting. More info: https://devcenter.heroku.com/articles/python-support
! Push rejected, failed to compile Python app.
! Push failed

heroku can't find pip when I push app to it

When I try to push my django app to heroku it fails right at the beginning:
remote: -----> Python app detected
remote: -----> Installing python-3.5.1
remote: -----> Installing pip
remote: -----> Installing requirements with pip
remote: /app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/
bin/steps/pip-install: line 5: /app/.heroku/python/bin/pip:
No such file or directory
remote: ! Push rejected, failed to compile Python app.
remote:
I apparently do something wrong, but I did the same thing many times before. What's wrong?
I had this exact same problem yesterday and it was really frustrating as I had deployed to Django before under the exact same settings with no problem.
In your runtime.txt file change it from:
python-3.5.1
to
python-3.6.1
Why changing the Python version on Heroku matters beats me but it worked like a charm.

Categories

Resources