Skip to content

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

@based3

Description

@based3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions