Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install 2.6.1 failed #594

Closed
hankuksui opened this issue Sep 21, 2017 · 9 comments

Comments

Projects
None yet
6 participants
@hankuksui
Copy link

commented Sep 21, 2017

pip install psycopg2==2.6.1

Collecting psycopg2==2.6.1
Using cached psycopg2-2.6.1.tar.gz
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 '10beta4'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_0gGZg/psycopg2/

pip install psycopg2 success and installed version 2.7.3.1
but I want version 2.6.1

@dvarrazzo

This comment has been minimized.

Copy link
Member

commented Sep 21, 2017

The problem was fixed in #489 released in psycopg 2.7. We don't have plans to backport the fix to 2.6.

Use a pg_config from a production version of Postgres not from 10 beta 4.

@dvarrazzo dvarrazzo closed this Sep 21, 2017

ruiztulio added a commit to vauxoo-dev/docker-odoo-image that referenced this issue Oct 11, 2017

[FIX] Install dev packages for postgres to avoid the exception.
We need to install postgresql-server-dev so the pg_config commands shows the proper version, at the moment it shows 10.0 even when only the 9.6 is installed. This issue was fixed in pycopg 2.7, but not in the previous versions: psycopg/psycopg2#594

This patch only apply for the images that uses older pycopg versions, that is 8.0 and 9.0 because 10 and 11 use 2.7.

raylu added a commit to raylu/openstudyroom that referenced this issue Oct 30, 2017

raylu added a commit to raylu/openstudyroom that referenced this issue Oct 30, 2017

mybits added a commit to womenhackfornonprofits/ocdaction that referenced this issue Nov 3, 2017

joe4dev added a commit to probr/probr-core that referenced this issue Nov 9, 2017

@jsj14

This comment has been minimized.

Copy link

commented Nov 22, 2017

i get the same error with 10.1
Error: could not determine PostgreSQL version from '10.1'

@jsj14

This comment has been minimized.

Copy link

commented Nov 23, 2017

This worked https://oshanebailey.jamaicandevelopers.com/python/error-could-not-determine-postgresql-version-10-0/

I changed it to psycopg2==2.7.1

ryankanno added a commit to CodeforHawaii/uipa_org that referenced this issue Nov 24, 2017

chimo added a commit to chimo/woodwind that referenced this issue Nov 24, 2017

Upgrade psycopg2
Compat. with postgres 10.1:
psycopg/psycopg2#594

mohamed-aziz added a commit to gothinkster/flask-realworld-example-app that referenced this issue Nov 28, 2017

Updating psycopg2 to support Postgres 10
This version does not work with Postgres 10.
As per psycopg/psycopg2#594

noahpresler added a commit to noahpresler/semesterly that referenced this issue Sep 6, 2018

fix build (#1084)
* fix build

* amend

* Bump psycopg2 version

Bug (psycopg/psycopg2#594) which fixed in
2.7.1

* use python image instead of node image

* don't use --user inside virtualenv

* fix javascript linting

* fix js tests

* silence messages for testing

* fix exams test

* fix travis config

* move babel preset to prod dependencies

* fix docs build

* added registrar flag fixing validation error when parsing schools

* updated user settings modal test

* fixed sis btn continually firing

* temp rerunning test snapshots

* removed temp re snapshotting

* Revert "updated user settings modal test"

This reverts commit 5ae71ab.

* manually updated user settings modal test snapshot

timsnow added a commit to SasView/sasmodel-marketplace that referenced this issue Sep 8, 2018

Chenged the version of psycopg2 in requirements.txt
The combination of the current version of postgresql and was causing the build to fail, updating this to 2.7 should fix this bug (as highlighted here: psycopg/psycopg2#594).

berkerpeksag added a commit to berkerpeksag/pythondotorg that referenced this issue Sep 12, 2018

berkerpeksag added a commit to berkerpeksag/pythondotorg that referenced this issue Sep 12, 2018

sargunv added a commit to PokeAPI/pokeapi that referenced this issue Sep 16, 2018

Update version of psycopg2
Versions below 2.7 no longer work on recent version of Ubuntu.
See psycopg/psycopg2#594.

sargunv added a commit to PokeAPI/pokeapi that referenced this issue Sep 16, 2018

Update version of psycopg2
Versions below 2.7 no longer work on recent version of Ubuntu.
See psycopg/psycopg2#594.

perlun added a commit to hiboxsystems/trac-to-gitlab that referenced this issue Sep 18, 2018

Update psycopg2
See psycopg/psycopg2#594. The previous version did not support PG 10.5

kristinyim added a commit to noahpresler/semesterly that referenced this issue Oct 7, 2018

Add account deletion (#1086)
* fix build

* amend

* Bump psycopg2 version

Bug (psycopg/psycopg2#594) which fixed in
2.7.1

* use python image instead of node image

* don't use --user inside virtualenv

* fix javascript linting

* fix js tests

* silence messages for testing

* fix exams test

* fix travis config

* move babel preset to prod dependencies

* fix docs build

* add delete student endpoint

danielhers added a commit to danielhers/UCCA-App that referenced this issue Oct 21, 2018

danielhers added a commit to danielhers/UCCA-App that referenced this issue Oct 22, 2018

davidxia added a commit to davidxia/courtlistener that referenced this issue Oct 23, 2018

Upgrade psycopg2 in requirements.txt from 2.6 to 2.7
to fix this error on travis-ci.com that occurred when pip installing reqs.
See psycopg/psycopg2#594 (comment).

```
Collecting psycopg2==2.6.1 (from -r requirements.txt (line 58))
  Downloading https://files.pythonhosted.org/packages/86/fd/cc8315be63a41fe000cce20482a917e874cdc1151e62cb0141f5e55f711e/psycopg2-2.6.1.tar.gz (371kB)
    100% |████████████████████████████████| 378kB 3.6MB/s
    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.1'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-NRfbIi/psycopg2/
The command "pip install -U -r requirements.txt" failed and exited with 1 during .
```

davidxia added a commit to davidxia/courtlistener that referenced this issue Oct 23, 2018

Upgrade psycopg2 in requirements.txt from 2.6 to 2.7
to fix this error on travis-ci.com that occurred when pip installing reqs.
See psycopg/psycopg2#594 (comment).

```
Collecting psycopg2==2.6.1 (from -r requirements.txt (line 58))
  Downloading https://files.pythonhosted.org/packages/86/fd/cc8315be63a41fe000cce20482a917e874cdc1151e62cb0141f5e55f711e/psycopg2-2.6.1.tar.gz (371kB)
    100% |████████████████████████████████| 378kB 3.6MB/s
    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.1'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-NRfbIi/psycopg2/
The command "pip install -U -r requirements.txt" failed and exited with 1 during .
```

davidxia added a commit to davidxia/courtlistener that referenced this issue Oct 24, 2018

Upgrade psycopg2 in requirements.txt from 2.6 to 2.7
to fix this error on travis-ci.com that occurred when pip installing reqs.
See psycopg/psycopg2#594 (comment).

```
Collecting psycopg2==2.6.1 (from -r requirements.txt (line 58))
  Downloading https://files.pythonhosted.org/packages/86/fd/cc8315be63a41fe000cce20482a917e874cdc1151e62cb0141f5e55f711e/psycopg2-2.6.1.tar.gz (371kB)
    100% |████████████████████████████████| 378kB 3.6MB/s
    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.1'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-NRfbIi/psycopg2/
The command "pip install -U -r requirements.txt" failed and exited with 1 during .
```

davidxia added a commit to davidxia/courtlistener that referenced this issue Oct 24, 2018

Upgrade psycopg2 in requirements.txt from 2.6 to 2.7
to fix this error on travis-ci.com that occurred when pip installing reqs.
See psycopg/psycopg2#594 (comment).

```
Collecting psycopg2==2.6.1 (from -r requirements.txt (line 58))
  Downloading https://files.pythonhosted.org/packages/86/fd/cc8315be63a41fe000cce20482a917e874cdc1151e62cb0141f5e55f711e/psycopg2-2.6.1.tar.gz (371kB)
    100% |████████████████████████████████| 378kB 3.6MB/s
    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.1'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-NRfbIi/psycopg2/
The command "pip install -U -r requirements.txt" failed and exited with 1 during .
```

internetmosquito added a commit to internetmosquito/flask-jwt that referenced this issue Dec 21, 2018

Updated psycopg to 2.7.1
Why:

* Seems this was causing troubles with Travis CI psycopg/psycopg2#594

tyhoff added a commit to tyhoff/pyembedpg that referenced this issue Dec 26, 2018

AlexRiina added a commit to AlexRiina/django-fernet-fields that referenced this issue Jan 18, 2019

upgrade psycopg2 to >=2.7 to handle postgres >=10
psycopg2<2.7 looks for the a postgres version like x.xx which
unfortunately crashes trying to match 10.xx see
psycopg/psycopg2#594
@volartem

This comment has been minimized.

Copy link

commented Feb 2, 2019

Yes upgrading psycopg2 helped.
Guys i had same problem in venv that was created on python 3.7.
I had psycopg2 version 2.6.2, so resolve this issue with upgrding psycopg2 to 2.7.2 and upgrading pip.

Excellent1212 pushed a commit to Excellent1212/Angular-Flask-Python-3-framework that referenced this issue May 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.