Skip to content

[Bug]: uv sync fails with "maturin failed" #263

@piotrgrubicki

Description

@piotrgrubicki

Description

  1. Follow the steps from README to start backend.
  2. cd application/backend && uv sync

The command fails with the error listed below. I cleared the whole uv-cache folder and tried anew. The same result.

user@localhost:/mnt/geti/physical-ai-studio-main/application/backend$ uv sync
Resolved 230 packages in 20ms
      Built getiaction @ file:///mnt/geti/physical-ai-studio-main/library
    Updated https://github.com/ArendJanKramer/FrameSource.git (4d51da9bc2f8f9353562e1641ddbf87d3045baf6)
    Updated https://github.com/ArendJanKramer/OmniCamera.git (776a1fb9ba6357f18c4159d43babf795153ac483)
      Built feetech-servo-sdk==1.0.0
      Built docopt==0.6.2
      Built evdev==1.9.2
      Built framesource @ git+https://github.com/ArendJanKramer/FrameSource.git@4d51da9bc2f8f9353562e1641ddbf87d3045baf6                                                                             × Failed to build `omni-camera @ git+https://github.com/ArendJanKramer/OmniCamera.git@776a1fb9ba6357f18c4159d43babf795153ac483`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `maturin.build_wheel` failed (exit status: 1)

      [stdout]
      Running `maturin pep517 build-wheel -i /mnt/geti/uv/uv-cache/builds-v0/.tmpTCDPfA/bin/python --compatibility off`

      [stderr]
      error: failed to parse lock file at: /mnt/geti/uv/uv-cache/git-v0/checkouts/bb89ff87e340bda1/776a1fb/Cargo.lock

      Caused by:
        lock file version 4 requires `-Znext-lockfile-bump`
      💥 maturin failed
        Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
        Caused by: `cargo metadata` exited with an error:
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/mnt/geti/uv/uv-cache/builds-v0/.tmpTCDPfA/bin/python', '--compatibility', 'off'] returned non-zero exit status 1

      hint: This usually indicates a problem with the package or the build environment.
  help: `omni-camera` was included because `geti-action` (v1.0.0) depends on `framesource` (v0.2.2) which depends on `omni-camera`

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions