-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
Psycopg2 2.9.1 Python Binary no longer installs #1325
Comments
have you updated pip? |
Deleted comment
Dupe of #1286 |
Hi @dvarrazzo The linked #1286 is referencing M1/ARM architecture - I'm using an Intel Mac - is the root cause one and the same? Also, fyi the comment you deleted wasn't from me :) |
@CoburnJoe, sorry, will address the comment attribution. As for why pip doesn't install the package for you: download the package you think it should install from PyPI and try to install it. What is the error message? |
@dvarrazzo This is the error message when installing from PyPi:
|
No, that's not the error you get from PyPI. That's the error you get from psycopg's setup.py because PyPI has decided that it doesn't want to install the binary package that is supposedly compatible with your machine. So you should look at why pip won't install that. In this list of files: https://pypi.org/project/psycopg2-binary/#files what is the package that PyPI should install?
|
I have the same error in my Jenkins CI pipeline, that has been happening for the last few weeks, with installs working fine before then (nothing major in the CI configuration has changed). It is a CentOS based docker image and the base image has not changed in several months Requirements.txt specifies installing "psycopg2-binary"
|
@ Both of you: what version of pip are you using? |
@dvarrazzo I can confirm that I'm using Pip version 19.2.3. |
And why you didn't do it as I asked 5 days ago? Or as written on top of the install docs page? Out of curiosity... |
It's not that simple:
May I suggest an issue template pointed to an FAQ could help avoid erroneous issues like this? |
Also worth noting that upgrading pip worked for me, but the now deleted comment refers to issues with the latest version of pip 21.1.3:
|
Because that's an issue with a mac M1, which you confirmed you don't have. |
And yes, I had a never merged branch to add an issue template. It's proving worth to finish it. |
Hi, I'm using
psycopg2-binary
in Python, and it is not a working build.Reverting to 2.8.6 still works. Installing in Docker with Python 3.8 presents this error:
Note the If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead. This states this even when attempting to install the binary package.
I've attempted to compile from source by installing various postgres tools such as
postgresql-libs
,postgresql-devel
libpq
, andlibpq-devel
, but the fact remains, I have to install from source, and cannot use the binary.I'm using a custom RHEL image:https://hub.docker.com/r/scholarpack/python
I'm not sure if there are some new OS dependencies now, or is this is related to the new build process for Mac and Linux (2.9 release):
The text was updated successfully, but these errors were encountered: