pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Cache issues with UV installation

Open ShaharBand opened this issue 9 months ago • 3 comments

Checks

  • [x] I have checked that this issue has not already been reported.

  • [x] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

 pixi clean cache --pypi
  removed /homes/shaharba/.cache/rattler/cache/uv-cache          
pixi install                                                                                                                                                                   
Error:   × Failed to update PyPI packages for environment 'default'
  ├─▶ error locking installation directory
  ╰─▶ failed to open file `/tmp/uv-b9565ec841d85410.lock`: Permission denied (os error 13)

A working env suddenly cached something and i couldnt install either

pixi install
pixi install --locked

i tried

pixi clean
pixi clean cache
pixi clean cache pip
rm -rf ./.pixi/ 

:(

Issue description

 pixi clean cache --pypi
  removed /homes/shaharba/.cache/rattler/cache/uv-cache          
pixi install                                                                                                                                                                   
Error:   × Failed to update PyPI packages for environment 'default'
  ├─▶ error locking installation directory
  ╰─▶ failed to open file `/tmp/uv-b9565ec841d85410.lock`: Permission denied (os error 13)

Expected behavior

Install with no cache like that

ShaharBand avatar Apr 02 '25 14:04 ShaharBand

Does this /tmp/uv-b9565ec841d85410.lock file still exist, and can you remove it?

Did you use sudo at some point?

wolfv avatar Apr 02 '25 15:04 wolfv

It still exists, and I don't have sudo privileges, so I can't remove it.

ShaharBand avatar Apr 03 '25 14:04 ShaharBand

Sorry for the late response @ShaharBand. If you still face this problem, could you please run ls -l on that directory to check the owner and permission of that file and post it here?

Hofer-Julian avatar Apr 14 '25 08:04 Hofer-Julian