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

G2Snapshot cannot find psycopg2 even though it is installed #79

Closed
jbutcher21 opened this issue Sep 19, 2024 · 1 comment
Closed

G2Snapshot cannot find psycopg2 even though it is installed #79

jbutcher21 opened this issue Sep 19, 2024 · 1 comment
Assignees

Comments

@jbutcher21
Copy link

This means we cannot take a snapshot against a postgres database. Actually G2Snapshot recognizes it can't get to the database and does an api export instead.

To replicate the problem just go into python3 in the container and try to "import psycopg2". It will error and say it cannot be found. Yet the Dockerfile does install it.

After clever debugging from Ant, adding this to the PYTHONPATH fixes it:

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3/dist-packages/IPython/extensions

He suggested that changing the setting of PYTHONPATH in the Dockerfile is overwriting instead of updating. Maybe export PYTHONPATH=$PYTHONPATH:/opt/senzing ... etc will fix it.

@github-actions github-actions bot added the triage Need to triage label Sep 19, 2024
@jamietypovsky jamietypovsky removed the triage Need to triage label Sep 23, 2024
docktermj added a commit that referenced this issue Sep 23, 2024
docktermj added a commit that referenced this issue Sep 23, 2024
@docktermj
Copy link
Contributor

Pull requests:

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

3 participants