Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue building wheel for psycopg2-binary 2.9.9 on Python 3.13 in virtual environment #126522

Closed
mickfree opened this issue Nov 7, 2024 · 2 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@mickfree
Copy link

mickfree commented Nov 7, 2024

Bug report

Bug description:

Description:

When installing dependencies from requirements.txt in a virtual environment with Python 3.13, the installation fails with a subprocess error during the wheel building process for psycopg2-binary version 2.9.9.

The error message indicates that pg_config is missing, which is required to build psycopg2 from source. It suggests adding the directory containing pg_config to the $PATH or specifying the full path.

Steps to Reproduce:

Install Python 3.13.
Set up a virtual environment and activate it.
Run pip install -r requirements.txt with psycopg2-binary==2.9.9 listed as a dependency.
Expected Behavior:

The dependencies, including psycopg2-binary, should install without any issues.

Actual Behavior:

The installation process fails with an error indicating that pg_config is missing, and the wheel for psycopg2-binary cannot be built.

Environment:

Python version: 3.13
psycopg2-binary version: 2.9.9
Operating System: windows 11

Additional Information:

74f3a0b3-2bb0-426f-885c-4d0132b70719

CPython versions tested on:

3.13

Operating systems tested on:

Windows

@mickfree mickfree added the type-bug An unexpected behavior, bug, or error label Nov 7, 2024
@skirpichev
Copy link
Member

Please open bugreport in appropriate project: https://github.com/psycopg/psycopg2/issues

@skirpichev skirpichev closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2024
@hugovk
Copy link
Member

hugovk commented Nov 7, 2024

Similar to #126521, you'll need to upgrade psycopg2-binary to get precompiled wheels for 3.13:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants