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
Dependency on psycopg2-binary #165
Comments
It's also possible instead to just add |
It is probably better if sqlalchemy-redshift would depend on |
http://initd.org/psycopg/docs/install.html#binary-install-from-pypi
|
The workaround of staying on As @mattyb linked, though, explicitly depending on If we had a callout in the README and built documentation about the problem, would that have been helpful in figuring this out, @jacopofar? If someone can provide a sample pip install configuration that gets this project working with |
Yes given that the problem with psycopg2 wheels seems far to be solved I think an edit to the README is the easiest option. What I did in my project was to put this in requirements.txt:
as for solving the problem in this project I don't think there's an easy way, either one pins |
An idea to solve that issue
Something like I did ClearcodeHQ/pytest-postgresql#190 |
Thank you. Adding the following to the top of my Dockerfile worked for me.
|
As stated in #168 (comment), I've come to agree with basically with @fizyk's approach. I'm open to a PR that removes psycopg2 as a dependency and adds relevant documentation. |
Related to #144 I guess, since today the installation of the backage is broken on our build because it tries to compile the psycopg2 package and needs additional system dependencies.
To reproduce in a Dockerfile:
Will fail with the error
pg_config executable not found
.I resolved by adding
apt-get install -y build-essential libpq-dev python3-dev
to the build.Is there any plan to move to
psycopg2-binary
as a dependency, or maybe to create a parallel package that uses that?The text was updated successfully, but these errors were encountered: