Python install fails while building psycopg2
Error recorded 1 times in PanelAlpha Engine deploys on Python. The deploy log below is the recorded failure output.
TypeErrorAn error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.
Seen1 times
WherePython
StatusObservedOur team will look into this soon, verify the cause and try to fix it in an upcoming release.
Why it happens
The deployment installs psycopg2==2.9.9 from source because no compatible wheel was selected. Building it requires PostgreSQL's pg_config, which is missing from the Python build environment. The license warning is informational; the missing pg_config causes the failure.
What the log looks like
Deploy log
Collecting psycopg2==2.9.9Downloading psycopg2-2.9.9.tar.gzGetting requirements to build wheel: finished with status 'error'error: subprocess-exited-with-errorError: pg_config executable not found.pg_config is required to build psycopg2 from source.