Skip to content

Build error with uv #2109

Open
Open
@demidenm

Description

@demidenm

Unsure what this bug(?) classifies under, but adding here in the event it is helpful for someone else. I have been using uv environment management for python. My workflow worked fine 3-4 weeks ago. Today, I would get the error:

Using CPython 3.13.2
Creating virtual environment at: .venv
...
× Failed to build pyzmq==27.0.0
  ├─▶ The build backend returned an error
  ╰─▶ Call to scikit_build_core.build.build_wheel failed (exit status: 1)
...
/tmp/tmp476q9wkj/build/_src/_zmq.c:15:6: error: #error Cython requires Python 3.8+.
         15 |     #error Cython requires Python 3.8+.
            |      ^~~~~
      ninja: build stopped: subcommand failed.

      [stderr]

Forcing uv to use python 3.12 didnt resolve the issue. Tried several other things to no avail. Updating my pyproject.toml file by reverting to v.26.4.0 worked:
dependencies = [
"pyzmq==26.4.0", # avoids build error with 27.0.0
....
]

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