Skip to content

Issue installing due to error with psycopg2 #14

@blackary

Description

@blackary

I tried to install in a new venv (with python 3.13 on a mac), and got errors related to psycopg2

Resolved 297 packages in 205ms
error: Failed to prepare distributions
  Caused by: Failed to fetch wheel: psycopg2-binary==2.9.9
  Caused by: Build backend failed to build wheel through `build_wheel()` (exit status: 1)
--- stdout:
running bdist_wheel
running build
running build_py
copying lib/_json.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
copying lib/extras.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
copying lib/errorcodes.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
copying lib/tz.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
copying lib/_range.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
copying lib/_ipaddress.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
copying lib/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
copying lib/extensions.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
copying lib/errors.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
copying lib/sql.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
copying lib/pool.py -> build/lib.macosx-11.0-arm64-cpython-313/psycopg2
running build_ext
building 'psycopg2._psycopg' extension

<...LOT OF MESSAGES...>

      |            ^
psycopg/utils.c:397:12: note: did you mean 'PyInterpreterState_Get'?
/Users/zblackwood/.local/share/uv/python/cpython-3.13.5-macos-aarch64-none/include/python3.13/pystate.h:26:34: note: 'PyInterpreterState_Get' declared here
   26 | PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_Get(void);
      |                                  ^
psycopg/utils.c:397:38: warning: comparison between pointer and integer ('int' and 'PyInterpreterState *' (aka 'struct _is *')) [-Wpointer-integer-compare]
  397 |     return _PyInterpreterState_Get() == PyInterpreterState_Main();
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
error: command '/usr/bin/cc' failed with exit code 1
---

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions