justinmayer / virtualfish

Fish shell tool for managing Python virtual environments
MIT License
1.06k stars 100 forks source link

Insufficient access privileges for operation when running virtualfish 2.5.9 on macos sequoia #250

Open chenrui333 opened 1 week ago

chenrui333 commented 1 week ago

error log

==> Testing virtualfish
/opt/homebrew/Library/Homebrew/test.rb (Formulary::FromPathLoader): loading /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/v/virtualfish.rb
==> fish -c '/opt/homebrew/Cellar/virtualfish/2.5.9/bin/vf install'
==> fish -c vf new new_virtualenv

==> fish -c "vf ls"
==> fish -c vf rm new_virtualenv
Removing /private/tmp/virtualfish-test-20240912-43271-hyb28j/.virtualenvs/new_virtualenv
2024-09-12 09:09:47.273 trash[43629:7102823] # Error attempting to move /private/tmp/virtualfish-test-20240912-43271-hyb28j/.virtualenvs/new_virtualenv to the trash folder, Error Domain=NSCocoaErrorDomain Code=513 "“new_virtualenv” couldn’t be moved to the trash because you don’t have permission to access it." UserInfo={NSURL=file:///private/tmp/virtualfish-test-20240912-43271-hyb28j/.virtualenvs/new_virtualenv, NSUserStringVariant=Trash, NSUnderlyingError=0x60000318c7e0 {Error Domain=NSOSStatusErrorDomain Code=-5000 "afpAccessDenied: Insufficient access privileges for operation"}}
/opt/homebrew/Library/Homebrew/ignorable.rb:27:in `block in raise'

Issue

justinmayer commented 1 week ago

Hi Rui. Given that I had no idea that VirtualFish was even available from Homebrew, I think we can safely say that Homebrewed VirtualFish is not supported at this time 😊

Plus, it seems from this comment that the error is likely caused by a Homebrew-related issue and not related to anything in VirtualFish itself.

Nonetheless, it is good to now at least know that a Homebrew formula for VirtualFish is a thing that exists 😁

chenrui333 commented 1 week ago

Plus, it seems from this comment that the error is likely caused by a Homebrew-related issue and not related to anything in VirtualFish itself.

it is not caused by sandbox, I can reproduce it on macos sequoia 15.1 machine.

justinmayer commented 1 week ago

My other point still stands.

justinmayer commented 1 week ago

If the reported problem can be replicated on an official release of MacOS 15.x Sequoia using the standard and supported installation method, then please provide detailed steps to reproduce. Thanks!