<#6392 [BUG] The lockfile at `uv.lock` needs to be...
# flyte-github
c
#6392 [BUG] The lockfile at
uv.lock
needs to be updated, but
--locked
was provided. To update the lockfile, run
uv lock
.
Issue created by HansBambel ### Describe the bug My project is using uv and therefore also comes with a
uv.lock
. In another toy repository installing worked fine, but in the actual repo that I want to use flyte for it does not. A possible reason is that I have in my
pyproject.toml
the following in the dependencies: "tensorflow[and-cuda]>=2.18.0; platform_system != 'Darwin'", "tensorflow>=2.18.0; platform_system == 'Darwin'", This is the error that I get: The lockfile at
uv.lock
needs to be updated, but
--locked
was provided. To update the lockfile, run
uv lock
. Things I tried: • Updating with
uv.lock
did not change anything • deleting
uv.lock
and recreating it (resulted in a different one), but still, the same error persists • I tried this with version uv version 0.5.27 and also with 0.6.12. Both result in the same error The version that
flytekit
uses seems to be 0.5.1 (https://github.com/flyteorg/flytekit/blob/master/flytekit/image_spec/default_builder.py#L96). It could be that newer uv versions don't work when new functionalities of uv are being used. I also found this, which could be related. I also tried converting the
uv.lock
to a
requirements.txt
, but then I receive the following error:
Copy code
0.117 Using Python 3.11.11 environment at /opt/micromamba/envs/runtime
0.434   × No solution found when resolving dependencies:
0.434   ╰─▶ Because nvidia-nccl-cu12{sys_platform != 'darwin'}==2.21.5
0.434       has no wheels with a matching platform tag and you require
0.434       nvidia-nccl-cu12{sys_platform != 'darwin'}==2.21.5, we can conclude that
0.434       your requirements are unsatisfiable.
------
ERROR: failed to solve: process "/bin/sh -c uv pip install --requirement requirements_uv.txt" did not complete successfully: exit code: 1
Another thing that I am a bit unsure about a potential issue is that I am on Mac trying to create an ImageSpec for linux: fl.ImageSpec( registry="localhost:30000", name="personalization-ml", platform="linux/arm64", requirements="uv.lock" ) ### Expected behavior Installing the dependencies from the
uv.lock
and creating the docker image. ### Additional context to reproduce No response ### Screenshots No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte