astral-sh / uv

An extremely fast Python package installer and resolver, written in Rust.
https://astral.sh/
Apache License 2.0
14.67k stars 416 forks source link

UV editable install fails on databricks shared cluster #4379

Open ion-elgreco opened 2 weeks ago

ion-elgreco commented 2 weeks ago

Try to run: %sh uv pip install -e .

Results in :

%sh uv pip install -e .
error: Failed to download and build: `my_package @ [file:///Workspace/Repos/<user>/<repo>`](file:///Workspace/Repos/<user>/<repo>%60)
  Caused by: Failed to build: `my_package @ [file:///Workspace/Repos/<user>/<repo>`](file:///Workspace/Repos/<user>/<repo>%60)
  Caused by: Build backend failed to determine extra requires with `build_editable()` with exit status: 1
--- stdout:
running egg_info
writing my_package .egg-info/PKG-INFO
--- stderr:
error: [Errno 1] Operation not permitted: '/Workspace/Repos/<user>/<repo>/my_package .egg-info/tmptjepatrp'
---

As simple pip install -e . without UV works.

zanieb commented 2 weeks ago

Do you have write permissions to the directory?

Can you share verbose logs for pip and uv pip?