'Deploying Django on Heroku
I am trying to dploy my django application on heroku and keep getting this error message:
----------------------------------------
ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python
-u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xo9jsddf/psycopg2/setup.py'"'"';
__file__='"'"'/tmp/pip-install-xo9jsddf/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"',
open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__,
'"'"'exec'"'"'))' install --record /tmp/pip-record-xuxym03s/install-record.txt --single-version-externally-managed --compile --install-headers
/app/.heroku/python/include/python3.9/psycopg2
Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed
I have my Procfile and requirements.txt. Any help is appreciated!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
