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

created folder permissions issues during upgrade/uninstall #78

Open
Robbie1977 opened this issue Mar 14, 2022 · 2 comments
Open

created folder permissions issues during upgrade/uninstall #78

Robbie1977 opened this issue Mar 14, 2022 · 2 comments

Comments

@Robbie1977
Copy link
Contributor

Consider using the `--user` option or check the permissions.```
@Robbie1977
Copy link
Contributor Author

Robbie1977 commented Mar 14, 2022

 ~ % pip remove VFB_connect
ERROR: unknown command "remove"
robbiecourt@Robbies-MacBook-Pro ~ % pip uninstall VFB_connect
Found existing installation: vfb-connect 1.2.7
Uninstalling vfb-connect-1.2.7:
  Would remove:
    /usr/local/json_schema/VFB_TermInfo_queries.json
    /usr/local/lib/python3.9/site-packages/vfb_connect-1.2.7.dist-info/*
    /usr/local/lib/python3.9/site-packages/vfb_connect/*
Proceed (Y/n)? Y
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/shutil.py", line 814, in move
    os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/usr/local/json_schema/' -> '/private/var/folders/7j/bv0xtj3s4m9dt5zjj_d4j6080000gn/T/pip-uninstall-l_x261qv'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper
    status = run_func(*args)
  File "/usr/local/lib/python3.9/site-packages/pip/_internal/commands/uninstall.py", line 97, in run
    uninstall_pathset = req.uninstall(
  File "/usr/local/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 671, in uninstall
    uninstalled_pathset.remove(auto_confirm, verbose)
  File "/usr/local/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 384, in remove
    moved.stash(path)
  File "/usr/local/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 282, in stash
    renames(path, new_path)
  File "/usr/local/lib/python3.9/site-packages/pip/_internal/utils/misc.py", line 307, in renames
    shutil.move(old, new)
  File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/shutil.py", line 832, in move
    rmtree(src)
  File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/shutil.py", line 730, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/shutil.py", line 728, in rmtree
    os.rmdir(path)
PermissionError: [Errno 13] Permission denied: '/usr/local/json_schema/'

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

No branches or pull requests

1 participant