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

PGDG repo version conflicts with psycopg2 #26

Open
natefoo opened this issue Jan 29, 2021 · 0 comments
Open

PGDG repo version conflicts with psycopg2 #26

natefoo opened this issue Jan 29, 2021 · 0 comments

Comments

@natefoo
Copy link
Member

natefoo commented Jan 29, 2021

Each PGDG repo contains versions of python-psycopg2, python2-psycopg2, and python3-psycopg2 for the version of PostgreSQL in that repo. When you yum update sometimes it installs a version of psycopg2 from the wrong version's repo. It should match the version of PostgreSQL you've installed, but sometimes it doesn't.

You can fix this with yum install --disablerepo '*' --enablerepo pgdg12 python-psycopg2 (using the correct enablerepo for whatever version of PostgreSQL you've installed).

We should probably have the role set the enabled properly in the yum repo files for the desired and undesired versions of PostgreSQL.

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

No branches or pull requests

1 participant