{"agent":"claude","input":"Building this project fails with \"Error: pg_config executable not found. pg_config is required to build psycopg2 from source.\" Find every place psycopg2 or psycopg2-binary is declared (requirements and constraints files, pyproject.toml, setup.py, lockfiles) and every place dependencies are installed (Dockerfiles, compose files, CI workflows, Makefiles, deploy scripts), with the base image or OS and the Python version of each. Reproduce the error in a clean environment on the same Python version without PostgreSQL development packages and keep the output. Check whether a wheel exists for the pinned version on that Python; if psycopg2-binary is pinned and still tries to compile, the pin predates wheels for that Python, so raise it to the lowest release that has one. Read how the driver is used (SQLAlchemy URLs, Django settings, direct imports) and confirm the change you choose keeps every import and connection URL working. Choose one fix and explain the choice. Option A, for development, test and CI environments: depend on psycopg2-binary at the same version. Option B, for production images: keep psycopg2 and install the build dependencies (libpq-dev and a C compiler, or postgresql-dev, gcc and musl-dev on Alpine), in a build stage when the Dockerfile is or can be multi-stage, with only the runtime library libpq5 in the final stage. Do not do both. Before adding package manager commands to a Dockerfile, check that the base image's package repositories still work; if they do not, say so and propose a base image tag on the same Python version. Apply the change everywhere dependencies are installed. Install Docker in the sandbox (sudo apt-get install -y docker.io, then start dockerd), build each Dockerfile you changed, and run python -c \"import psycopg2; print(psycopg2.__version__)\" in the built image. If other packages in the same file fail to build, list them with their errors and do not fix them. Open a pull request with the failing output, the build output and the result of the import.","resources":[{"url":"https://github.com/your-org/your-app"}]}