powerful-scooter-95162
12/09/2025, 10:48 PMThere was 1 error downloading required artifacts:
1. psycopg2 2.9.11 from <https://files.pythonhosted.org/packages/89/8d/9d12bc8677c24dad342ec777529bce705b3e785fa05d85122b5502b9ab55/psycopg2-2.9.11.tar.gz>
pip: ERROR: python setup.py egg_info exited with 1
Nobody else seems to be getting this error so I'm a bit confusedpowerful-scooter-95162
12/09/2025, 10:57 PMError: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.curved-manchester-66006
12/10/2025, 2:15 PMcommand line surgeryCould you elaborate on what else you had to add beyond
--pex-verbosity?powerful-scooter-95162
12/10/2025, 2:45 PMpowerful-scooter-95162
12/10/2025, 5:06 PMbrief-scientist-13682
12/14/2025, 6:59 PM--pex-verbosity can be defaulted differently (IIRC level 3 or greater trigger Pip logs being shown). The problem you'll find is the Pip logs for a successful run are chatty - maybe ~1MB of logs. For an error you'll get a few KB more with the golden nugget info you want. To date, Pex makes no attempt to distill logs for error info and so does 0 parsing in that regard. It sounds like you want it to do this - try to parse Pip logs for relevant error output info. That would certainly be a new feature I could add if someone wanted to sponsor the work.powerful-scooter-95162
12/14/2025, 7:06 PMbrief-scientist-13682
12/14/2025, 7:33 PM--pip-log this-file.log (to Pex directly), and then look at the log. That would be the basis for a simpler Pex feature. Basically always capture the full pip log and only dump it to stderr on error. You still get 1MB unhelpful + a few kb helpful dumped to stderr, but only on errors.