Help error when uploading my project django a heroku

0

Hello everyone I have searched a thousand tutorials, read the official documentation, but I have found many errors, and this is the last one that has thrown me just when it is uploading my application.

Collecting setuptools
  Using cached setuptools-38.4.0-py2.py3-none-any.whl
Installing collected packages: setuptools
  Found existing installation: setuptools 35.0.2
    Uninstalling setuptools-35.0.2:
      Successfully uninstalled setuptools-35.0.2
Successfully installed setuptools-38.4.0

(venv) C:\Users\Daniel\Desktop\curriculum>git push heroku master
Counting objects: 52, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (42/42), done.
Writing objects: 100% (52/52), 4.80 MiB | 304.00 KiB/s, done.
Total 52 (delta 5), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-3.6.4
remote: -----> Installing pip
remote: -----> Installing requirements with pip
remote:        Collecting dj-database-url==0.4.2 (from -r /tmp/build_68663a578d47190d4464e28e3da2d0bc/requirements.txt (line 1))
remote:          Downloading dj_database_url-0.4.2-py2.py3-none-any.whl
remote:        Collecting gunicorn==19.7.1 (from -r /tmp/build_68663a578d47190d4464e28e3da2d0bc/requirements.txt (line 2))
remote:          Downloading gunicorn-19.7.1-py2.py3-none-any.whl (111kB)
remote:        Collecting whitenoise==3.3.1 (from -r /tmp/build_68663a578d47190d4464e28e3da2d0bc/requirements.txt (line 3))
remote:          Downloading whitenoise-3.3.1-py2.py3-none-any.whl
remote:        Collecting psycopg2==2.6.2 (from -r /tmp/build_68663a578d47190d4464e28e3da2d0bc/requirements.txt (line 4))
remote:          Downloading psycopg2-2.6.2.tar.gz (376kB)
remote:            Complete output from command python setup.py egg_info:
remote:            running egg_info
remote:            creating pip-egg-info/psycopg2.egg-info
remote:            writing pip-egg-info/psycopg2.egg-info/PKG-INFO
remote:            writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
remote:            writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
remote:            writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
remote:            Error: could not determine PostgreSQL version from '10.1'
remote:
remote:            ----------------------------------------
remote:        Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fi31chu0/psycopg2/
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
    
asked by Daniel Treviño 19.01.2018 в 22:57
source

1 answer

1

It seems that you are using a very old version of psycopg2 that does not have support for PostgreSQL 10.X. Try installing the newest version of psycopg2 (you may have to edit your requirements file).

    
answered by 22.01.2018 / 14:39
source