Skip to content

pg_config executable not found #37

@firmianay

Description

@firmianay
#0 39.46 Collecting psycopg2-binary==2.8.4
#0 39.60   Downloading psycopg2-binary-2.8.4.tar.gz (378 kB)
#0 40.40      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 378.7/378.7 kB 471.7 kB/s eta 0:00:00
#0 40.42   Preparing metadata (setup.py): started
#0 40.52   Preparing metadata (setup.py): finished with status 'error'
#0 40.53   error: subprocess-exited-with-error
#0 40.53   
#0 40.53   × python setup.py egg_info did not run successfully.
#0 40.53   │ exit code: 1
#0 40.53   ╰─> [23 lines of output]
#0 40.53       running egg_info
#0 40.53       creating /tmp/pip-pip-egg-info-wtffupsx/psycopg2_binary.egg-info
#0 40.53       writing /tmp/pip-pip-egg-info-wtffupsx/psycopg2_binary.egg-info/PKG-INFO
#0 40.53       writing dependency_links to /tmp/pip-pip-egg-info-wtffupsx/psycopg2_binary.egg-info/dependency_links.txt
#0 40.53       writing top-level names to /tmp/pip-pip-egg-info-wtffupsx/psycopg2_binary.egg-info/top_level.txt
#0 40.53       writing manifest file '/tmp/pip-pip-egg-info-wtffupsx/psycopg2_binary.egg-info/SOURCES.txt'
#0 40.53       
#0 40.53       Error: pg_config executable not found.
#0 40.53       
#0 40.53       pg_config is required to build psycopg2 from source.  Please add the directory
#0 40.53       containing pg_config to the $PATH or specify the full executable path with the
#0 40.53       option:
#0 40.53       
#0 40.53           python setup.py build_ext --pg-config /path/to/pg_config build ...
#0 40.53       
#0 40.53       or with the pg_config option in 'setup.cfg'.
#0 40.53       
#0 40.53       If you prefer to avoid building psycopg2 from source, please install the PyPI
#0 40.53       'psycopg2-binary' package instead.
#0 40.53       
#0 40.53       For further information please check the 'doc/src/install.rst' file (also at
#0 40.53       <http://initd.org/psycopg/docs/install.html>).
#0 40.53       
#0 40.53       [end of output]
#0 40.53   
#0 40.53   note: This error originates from a subprocess, and is likely not a problem with pip.
#0 40.53 error: metadata-generation-failed
#0 40.53 
#0 40.53 × Encountered error while generating package metadata.
#0 40.53 ╰─> See above for output.
#0 40.53 
#0 40.53 note: This is an issue with the package mentioned above, not pip.
#0 40.53 hint: See above for details.
------
failed to solve: process "/bin/sh -c python3 -m pip install /opencve/" did not complete successfully: exit code: 1

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