Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 736
Samuel Avatar asked Jun 19 '19 23:06

Samuel


1 Answers

Try this in your app.json. Although it a temporary solution

"buildpacks": [
    {
      "url": "https://github.com/heroku/heroku-buildpack-python.git#remove- 
              sqlite"
    },
like image 165
shardy Avatar answered Oct 25 '22 05:10

shardy