Skip to content

Error trying to build with uv command "Failed to build pyqt5==5.15.6" #1354

@Armandres30

Description

@Armandres30


When running the uv run --extra cpu demo_toolbox.py command I get the following logs error. Still even though there is no "
[[tool.sip.metadata]" but a "[project]" line presence is in the code, specifically in the pyproject.toml file:

uv run --extra cpu demo_toolbox.py
warning: VIRTUAL_ENV=myenv does not match the project environment path .venv and will be ignored; use --active to target the active environment instead
× Failed to build pyqt5==5.15.6
├─▶ The build backend returned an error
╰─▶ Call to sipbuild.api.build_wheel failed (exit status: 1)

  [stderr]
  pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the
  project metadata is deprecated and will be removed in SIP v7.0.0, use
  '[project]' instead
  Traceback (most recent call last):
    File "<string>", line 11, in <module>
    File
  "/Users/armando/.cache/uv/builds-v0/.tmp4Zlkde/lib/python3.9/site-packages/sipbuild/api.py",
  line 28, in build_wheel
      project = AbstractProject.bootstrap('wheel',
    File
  "/Users/armando/.cache/uv/builds-v0/.tmp4Zlkde/lib/python3.9/site-packages/sipbuild/abstract_project.py",
  line 74, in bootstrap
      project.setup(pyproject, tool, tool_description)
    File
  "/Users/armando/.cache/uv/builds-v0/.tmp4Zlkde/lib/python3.9/site-packages/sipbuild/project.py",
  line 661, in setup
      self.apply_user_defaults(tool)
    File "project.py", line 63, in apply_user_defaults
      super().apply_user_defaults(tool)
    File
  "/Users/armando/.cache/uv/builds-v0/.tmp4Zlkde/lib/python3.9/site-packages/pyqtbuild/project.py",
  line 51, in apply_user_defaults
      super().apply_user_defaults(tool)
    File
  "/Users/armando/.cache/uv/builds-v0/.tmp4Zlkde/lib/python3.9/site-packages/sipbuild/project.py",
  line 248, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
    File
  "/Users/armando/.cache/uv/builds-v0/.tmp4Zlkde/lib/python3.9/site-packages/pyqtbuild/builder.py",
  line 49, in apply_user_defaults
      raise PyProjectOptionException('qmake',
  sipbuild.pyproject.PyProjectOptionException

  hint: This usually indicates a problem with the package or the build
  environment.

help: pyqt5 (v5.15.6) was included because real-time-voice-cloning
(v0.0.0) depends on pyqt5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions