Kevin Otte
02/06/2023, 7:22 PM#10 3.541 × python setup.py egg_info did not run successfully.
#10 3.541 │ exit code: 1
#10 3.541 ╰─> [23 lines of output]
#10 3.541 running egg_info
#10 3.541 creating /tmp/pip-pip-egg-info-iekbphju/psycopg2.egg-info
#10 3.541 writing /tmp/pip-pip-egg-info-iekbphju/psycopg2.egg-info/PKG-INFO
#10 3.541 writing dependency_links to /tmp/pip-pip-egg-info-iekbphju/psycopg2.egg-info/dependency_links.txt
#10 3.541 writing top-level names to /tmp/pip-pip-egg-info-iekbphju/psycopg2.egg-info/top_level.txt
#10 3.541 writing manifest file '/tmp/pip-pip-egg-info-iekbphju/psycopg2.egg-info/SOURCES.txt'
#10 3.541
#10 3.541 Error: pg_config executable not found.
#10 3.541
#10 3.541 pg_config is required to build psycopg2 from source. Please add the directory
#10 3.541 containing pg_config to the $PATH or specify the full executable path with the
#10 3.541 option:
#10 3.541
#10 3.541 python setup.py build_ext --pg-config /path/to/pg_config build ...
#10 3.541
#10 3.541 or with the pg_config option in 'setup.cfg'.
#10 3.541
#10 3.541 If you prefer to avoid building psycopg2 from source, please install the PyPI
#10 3.541 'psycopg2-binary' package instead.
#10 3.541
#10 3.541 For further information please check the 'doc/src/install.rst' file (also at
#10 3.541 <<https://www.psycopg.org/docs/install.html>>).
#10 3.541
#10 3.541 [end of output]
#10 3.541
#10 3.541 note: This error originates from a subprocess, and is likely not a problem with pip.
#10 3.544 error: metadata-generation-failed
#10 3.544
#10 3.544 × Encountered error while generating package metadata.
#10 3.544 ╰─> See above for output.
#10 3.544
#10 3.544 note: This is an issue with the package mentioned above, not pip.
#10 3.544 hint: See above for details.
any ideas would be greatly appreciated!Zach
02/06/2023, 7:55 PMpsycopg2-binary
instead of psycopg2
?Kevin Otte
02/06/2023, 7:57 PMZach
02/06/2023, 8:03 PMlibpq-dev
? (https://stackoverflow.com/a/12037133/6297800)Kevin Otte
02/06/2023, 8:10 PMZach
02/06/2023, 8:15 PMKevin Otte
02/06/2023, 8:16 PMZach
02/06/2023, 8:18 PMKevin Otte
02/06/2023, 8:19 PMdagit 1.1.14
dagster 1.1.14
dagster-graphql 1.1.14
Zach
02/06/2023, 8:26 PMdagster-postgres
Kevin Otte
02/06/2023, 8:28 PMZach
02/06/2023, 8:35 PMlibpq-dev
isn't installed in the container that's being built. it seems likely that you'll need to provide your own docker image which includes libpq-dev
, or disabling PEX-based deploys and providing a dagster_cloud_pre_install.sh
script to install libpq-dev
psycopg2-binary
should "just work". if you're just using psycopg2 for some basic postgres interactions I don't think you have much to worry about using it, it's very stableKevin Otte
02/06/2023, 9:32 PMZach
02/06/2023, 9:48 PMKevin Otte
02/07/2023, 2:30 AM