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

Failed to copy databricks-0.2.dist-info/RECORD #1740

Closed
ion-elgreco opened this issue Feb 20, 2024 · 0 comments · Fixed by #1743
Closed

Failed to copy databricks-0.2.dist-info/RECORD #1740

ion-elgreco opened this issue Feb 20, 2024 · 0 comments · Fixed by #1743
Assignees

Comments

@ion-elgreco
Copy link

It fails installing databricks since it's getting permission denied to copy the RECORD file? Install with pip works fine though

To reproduce:

uv venv
uv pip install databricks
error: Failed to install: databricks-0.2-py2.py3-none-any.whl (databricks==0.2)
  Caused by: failed to copy file from /home/ion/.cache/uv/archive-v0/sHSR-5YnmTL4pBq1yKiee/databricks-0.2.dist-info/RECORD to /home/ion/idp-simba/.venv/lib/python3.10/site-packages/databricks-0.2.dist-info/RECORD
  Caused by: Permission denied (os error 13)
@konstin konstin self-assigned this Feb 20, 2024
konstin added a commit that referenced this issue Feb 20, 2024
A file in a wheel/zip can have 000 permissions on unix. We have to set the permissions to at least read and write.

Fixes #1740.
konstin added a commit that referenced this issue Feb 20, 2024
A file in a zip can set arbitrary unix permissions, but we, like pip,
want to preserve only the executable bit and otherwise use the OS
defaults.

This should be faster for wheels with many files since we now avoid the
blocking fs call to set the permissions in most cases.

Fixes #1740.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants