Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: could not determine PostgreSQL version from "10.4"

Complete output from command python setup.py egg_info: running egg_info creating pip-egg-info/psycopg2.egg-info writing pip-egg-info/psycopg2.egg-info/PKG-INFO writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt' Error: could not determine PostgreSQL version from '10.4'

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-lR9u0X/psycopg2/

Does anyone know what's the issue? Trying to run pgadmin in virtualenv and can't figure out because of this error.

like image 547
rislah Avatar asked Jun 30 '18 21:06

rislah


1 Answers

A higher version of psycopg2 fixed the issue for me, update your requirements.txt to:

...
psycopg2==2.7.5
...
like image 175
Patrik Beck Avatar answered Oct 13 '22 17:10

Patrik Beck