-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Comments
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. |
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.
i get the same error with 10.1 |
This worked https://oshanebailey.jamaicandevelopers.com/python/error-could-not-determine-postgresql-version-10-0/ I changed it to |
This version does not work with Postgres 10. As per psycopg/psycopg2#594
Installing psycopg2 failes on circle due to postgres 10.0 version installed there. ``` Downloading psycopg2-2.6.2.tar.gz (376kB) ... Error: could not determine PostgreSQL version from '10.0' ``` Bug Details: psycopg/psycopg2#594 We had this issue with iMADS already: Duke-GCB/iMADS#137
Versions below 2.7 no longer work on recent version of Ubuntu. See psycopg/psycopg2#594.
See psycopg/psycopg2#594. The previous version did not support PG 10.5
* 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
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 . ```
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 . ```
Why: * Seems this was causing troubles with Travis CI psycopg/psycopg2#594
psycopg2<2.7 looks for the a postgres version like x.xx which unfortunately crashes trying to match 10.xx see psycopg/psycopg2#594
Yes upgrading psycopg2 helped. |
this worked for me you have to specify the version beaucause 2.6.2 of psycopg2 only supports version 9.5 of postgresql. |
This is because of this: psycopg/psycopg2#594. On 18.04 libpq-dev installs a pg_config which reports 10.10 which psycopg2 version 2.4.5 (good lord, how old?!) can't cope with and fails to install. There may be a way of resolving this by installing some other version of libpq-dev but I haven't found it yet, and I think this is the simplest solution anyway.
PostgreSQL with version number without beta seems to be succeed. |
The error Error: could not determine PostgreSQL version from '10.1' Fixed by psycopg/psycopg2#594
pip install psycopg2==2.6.1
pip install psycopg2
success and installed version 2.7.3.1but I want version 2.6.1
The text was updated successfully, but these errors were encountered: