Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing managed python with different mounts of .local and .cache fails. #6036

Closed
msw-kialo opened this issue Aug 12, 2024 · 1 comment · Fixed by #6043
Closed

Installing managed python with different mounts of .local and .cache fails. #6036

msw-kialo opened this issue Aug 12, 2024 · 1 comment · Fixed by #6043
Assignees
Labels
bug Something isn't working preview Experimental behavior

Comments

@msw-kialo
Copy link

msw-kialo commented Aug 12, 2024

I have dedicated volumes mounted on ~/.cache and ~/.local: so uv fails to move files between them.
I know it is probably a rare setup, but I like having better control about these important directories.

> uv python install 3.12.4 --verbose
DEBUG uv 0.2.35
DEBUG Acquired lock for `~/.local/share/uv/python`
Searching for Python versions matching: Python 3.12.4
DEBUG Using request timeout of 30s
DEBUG Downloading https://github.com/indygreg/python-build-standalone/releases/download/20240726/cpython-3.12.4%2B20240726-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz to temporary location: ~/.cache/uv/.tmpChAkwk
DEBUG Extracting cpython-3.12.4%2B20240726-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
DEBUG Moving ~/.cache/uv/.tmpChAkwk/python to ~/.local/share/uv/python/cpython-3.12.4-linux-x86_64-gnu
error: Failed to install cpython-3.12.4-linux-x86_64-gnu: Failed to copy to: ~/.local/share/uv/python/cpython-3.12.4-linux-x86_64-gnu

The error message of uv lock (in a project that requires installing python) is a bit more detailed:

> uv lock
error: Failed to copy to: ~/.local/share/uv/python/cpython-3.12.4-linux-x86_64-gnu
  Caused by: failed to rename file from ~/.cache/uv/.tmpUQC45r/python to ~/.local/share/uv/python/cpython-3.12.4-linux-x86_64-gnu
  Caused by: Invalid cross-device link (os error 18)
@charliermarsh charliermarsh added bug Something isn't working preview Experimental behavior labels Aug 12, 2024
@charliermarsh charliermarsh self-assigned this Aug 12, 2024
@charliermarsh
Copy link
Member

Thanks for reporting -- we should definitely be robust to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Experimental behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants