Re: [gtk-osx-users] Permission denied: '/Library/Python/2.7/site-packages/typing-3.6.2.dist-info/DESCRIPTION.rst'

On Jul 29, 2019, at 1:04 PM, Pascal <p p14 orange fr> wrote:

Le 28 juil. 2019 à 20:22,  Ralls <jralls ceridwen us> a écrit :

On Jul 28, 2019, at 9:20 AM, Pascal <p p14 orange fr> wrote:

Le 28 juil. 2019 à 15:47, John Ralls <jralls ceridwen us> a écrit :

On Jul 28, 2019, at 1:10 AM, Pascal <p p14 orange fr> wrote:

I've the following error when running

$ sh 
Successfully installed enum34 pipenv virtualenv-clone
You are using pip version 19.0.3, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python 
as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 
Uninstalling typing-3.6.2:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/_internal/cli/", line 179, in main
status =, args)
File "/Library/Python/2.7/site-packages/pip/_internal/commands/", line 75, in run
auto_confirm=options.yes, verbose=self.verbosity > 0,
File "/Library/Python/2.7/site-packages/pip/_internal/req/", line 817, in uninstall
uninstalled_pathset.remove(auto_confirm, verbose)
File "/Library/Python/2.7/site-packages/pip/_internal/req/", line 360, in remove
File "/Library/Python/2.7/site-packages/pip/_internal/req/", line 257, in stash
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip/_internal/utils/", line 303, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 300, in 
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 252, in 
onerror(os.remove, fullname, sys.exc_info())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 250, in 
OSError: [Errno 13] Permission denied: 

Should we run with sudo?


Something is wrong with your setup, it's trying to use the Apple-provided Python2.7 instead of the 
Virtenv Python3.6. IIRC you want to run gtk-osx from removable media, is that the case here?

Yes John,
I've set:
$ xnadasrc=`pwd`
$ export DEVROOT=$xnadasrc
$ export PIP_CONFIG_DIR=$xnadasrc/.config/pip
$ export XDG_CONFIG_HOME=$xnadasrc/.config
$ sh ~/Desktop/

Try changing line 101 to `pip uninstall --user -y typing`.

Hello John,

I've got:
 pip uninstall [options] <package> ...
 pip uninstall [options] -r <requirements file> ...
no such option: --user


I managed to reproduce this in a clean environment, except in my case the error was with enum34 instead of 

The problem is that on MacOS 10.15 a sufficiently up-to-date enum34 is included in /System/Library so pip 
doesn't install it and later on when told to uninstall enum34 it tries to uninstall the one in 
/System/Library. That's not a good idea. I've pushed a commit that checks to make sure that a package is 
actually installed in our $PYTHONUSERBASE before trying to uninstall it. Give that a go.

John Ralls

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]