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

Remove direct psycopg2 dependency and let user decide which to use #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vinceatbluelabs
Copy link

@vinceatbluelabs vinceatbluelabs commented Feb 29, 2020

The psycopg2 dependency has gotten complicated due to a compatibility issue resulting in segfaults when using the binary-packaged version in some configurations. They removed the pre-compiled version from the default psycopg2 package, which had the side effect of making more difficult for the average end-user to install without having development libraries and a compiler installed.

There's a full explanation here: psycopg/psycopg2#674

Other dependent packages seem to be removing the transitive dependency and let the users decide which to use - e.g., sqlalchemy-redshift here: https://github.com/fizyk/sqlalchemy-redshift/commit/1781ff8d9dd8642c39ab8aefed61e9b08058e6e1

I have a package here that I'd like to use sqlalchemy-postgres-copy in (https://github.com/bluelabsio/records-mover), and I'd prefer not to vendor it in or add a psycopg2 dependency because of this, so I thought I'd send a PR your way. Let me know if it sounds right to you.

Fixes #12 but not in the same way proposed.

@vinceatbluelabs vinceatbluelabs marked this pull request as ready for review February 29, 2020 16:14
@vinceatbluelabs
Copy link
Author

Hi @jmcarp! Let me know if you have any thoughts on this one.

@jayaddison
Copy link

As a user of the pg8000 driver for PostgreSQL-via-sqlalchemy, this change would help me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider requiring psycopg2-binary instead of psycopg2
2 participants