python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

psycopg2 recipe build fail

Open RobertFlatt opened this issue 2 years ago • 2 comments

Logs

[1m[INFO][0m:    [36m-> directory context /home/bobf/ex/regression/.buildozer/android/platform/build-arm64-v8a/build/other_builds/psycopg2/arm64-v8a__ndk_target_21/psycopg2[39m
[1m[90m[DEBUG][39m[0m:   [90m->[0m running python3 setup.py build_ext --static-libpq[0m
[1m[90m[DEBUG][39m[0m:   	running build_ext
[1m[90m[DEBUG][39m[0m:   	
[1m[90m[DEBUG][39m[0m:   	Error: pg_config executable not found.
[1m[90m[DEBUG][39m[0m:   	
[1m[90m[DEBUG][39m[0m:   	pg_config is required to build psycopg2 from source.  Please add the directory
[1m[90m[DEBUG][39m[0m:   	containing pg_config to the $PATH or specify the full executable path with the
[1m[90m[DEBUG][39m[0m:   	option:
[1m[90m[DEBUG][39m[0m:   	
[1m[90m[DEBUG][39m[0m:   	    python setup.py build_ext --pg-config /path/to/pg_config build ...
[1m[90m[DEBUG][39m[0m:   	
[1m[90m[DEBUG][39m[0m:   	or with the pg_config option in 'setup.cfg'.
[1m[90m[DEBUG][39m[0m:   	
[1m[90m[DEBUG][39m[0m:   	If you prefer to avoid building psycopg2 from source, please install the PyPI
[1m[90m[DEBUG][39m[0m:   	'psycopg2-binary' package instead.
[1m[90m[DEBUG][39m[0m:   	
[1m[90m[DEBUG][39m[0m:   	For further information please check the 'doc/src/install.rst' file (also at
[1m[90m[DEBUG][39m[0m:   	<https://www.psycopg.org/docs/install.html>).

RobertFlatt avatar May 30 '23 01:05 RobertFlatt

have you managed to solve this bug?

DevHarsue avatar Aug 18 '24 15:08 DevHarsue

Not something I ever plan to look, at but I expect it is just missing documentation. Try https://www.google.com/search?q=pg_config See the StackOverflow post (the second result for me).

RobertFlatt avatar Aug 18 '24 17:08 RobertFlatt