cohere-ai / cohere-toolkit

Cohere Toolkit is a collection of prebuilt components enabling users to quickly build and deploy RAG applications.
MIT License
2.78k stars 357 forks source link

Error: pg_config executable not found on local install with `make first-run` #167

Closed heaversm closed 2 months ago

heaversm commented 4 months ago

What is the issue?

Error: pg_config executable not found.

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'.

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/psycopg2

Additional information

This is not an issue with the library itself, but with pyscopg dependency. This stack overflow issue has 1500 upvotes related to this problem - whose solution varies based on your OS.

heaversm commented 4 months ago

For me, on M2 Mac, brew install postgresql fixed this.

tianjing-li commented 4 months ago

@heaversm This is great, thanks for raising this.

I think properly documenting this bug and troubleshooting steps with the Stackoverflow post you linked would be a good resolution here.

BeatrixCohere commented 2 months ago

Closing as the issue is fixed.