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

"oc new-app" build failure on postgresql-client (psycopg2) - Deploying Applications From Source/Topic 6 - Deploying Using the Command Line #7

Open
based3 opened this issue Apr 20, 2021 · 2 comments

Comments

@based3
Copy link

based3 commented Apr 20, 2021

With oc new-app python:latest~https://github.com/openshift-katacoda/blog-django-py
or
oc new-app --strategy=source https://github.com/openshift-katacoda/blog-django-py --name blog-from-source-auto

oc build fails with the error:
psycopg/psycopgmodule.c:685:18: error: dereferencing pointer to incomplete type ‘PyInterpreterState’ {aka ‘struct _is’}
while (interp->next)
^~
error: command 'gcc' failed with exit status 1

Pre-build psycopg2 package exists: https://pypi.org/project/psycopg2-binary/

ref: psycopg/psycopg2#854

@based3
Copy link
Author

based3 commented Apr 20, 2021

the real fix working is psycopg2-binary==2.8.6

@based3 based3 reopened this Apr 20, 2021
@based3
Copy link
Author

based3 commented Apr 20, 2021

you can use:

git clone https://github.com/based3/blog-django-py

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