> Le 30 juil. 2019 à 23:58, John Ralls <jra...@ceridwen.us> a écrit : > > > >> On Jul 29, 2019, at 1:04 PM, Pascal <p....@orange.fr> wrote: >> >>> >>> Le 28 juil. 2019 à 20:22, Ralls <jra...@ceridwen.us> a écrit : >>> >>>> On Jul 28, 2019, at 9:20 AM, Pascal <p....@orange.fr> wrote: >>>> >>>>> >>>>> Le 28 juil. 2019 à 15:47, John Ralls <jra...@ceridwen.us> a écrit : >>>>> >>>>>> On Jul 28, 2019, at 1:10 AM, Pascal <p....@orange.fr> wrote: >>>>>> >>>>>> Hello, >>>>>> I've the following error when running gtk-osx-setup.sh: >>>>>> >>>>>> $ sh gtk-osx-setup.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 2.7. >>>>>> Uninstalling typing-3.6.2: >>>>>> Exception: >>>>>> Traceback (most recent call last): >>>>>> File >>>>>> "/Library/Python/2.7/site-packages/pip/_internal/cli/base_command.py", >>>>>> line 179, in main >>>>>> status = self.run(options, args) >>>>>> File >>>>>> "/Library/Python/2.7/site-packages/pip/_internal/commands/uninstall.py", >>>>>> line 75, in run >>>>>> auto_confirm=options.yes, verbose=self.verbosity > 0, >>>>>> File >>>>>> "/Library/Python/2.7/site-packages/pip/_internal/req/req_install.py", >>>>>> line 817, in uninstall >>>>>> uninstalled_pathset.remove(auto_confirm, verbose) >>>>>> File >>>>>> "/Library/Python/2.7/site-packages/pip/_internal/req/req_uninstall.py", >>>>>> line 360, in remove >>>>>> moved.stash(path) >>>>>> File >>>>>> "/Library/Python/2.7/site-packages/pip/_internal/req/req_uninstall.py", >>>>>> line 257, in stash >>>>>> renames(path, new_path) >>>>>> File "/Library/Python/2.7/site-packages/pip/_internal/utils/misc.py", >>>>>> line 303, in renames >>>>>> shutil.move(old, new) >>>>>> File >>>>>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", >>>>>> line 300, in move >>>>>> rmtree(src) >>>>>> File >>>>>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", >>>>>> line 252, in rmtree >>>>>> onerror(os.remove, fullname, sys.exc_info()) >>>>>> File >>>>>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", >>>>>> line 250, in rmtree >>>>>> os.remove(fullname) >>>>>> OSError: [Errno 13] Permission denied: >>>>>> '/Library/Python/2.7/site-packages/typing-3.6.2.dist-info/DESCRIPTION.rst' >>>>>> >>>>>> Should we run gtk-osx-setup.sh with sudo? >>>>> >>>>> No. >>>>> >>>>> 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/gtk-osx-setup.sh >>> >>> Try changing line 101 to `pip uninstall --user -y typing`. >> >> Hello John, >> >> I've got: >> Usage: >> pip uninstall [options] <package> ... >> pip uninstall [options] -r <requirements file> ... >> no such option: --user >> > > Right. > > I managed to reproduce this in a clean environment, except in my case the > error was with enum34 instead of typing. > > 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.
Hello John, It's ok like that, no message about typing just enum: Uninstalling enum34-1.1.6: Successfully uninstalled enum34-1.1.6 Thanks, Pascal. http://blady.pagesperso-orange.fr _______________________________________________ gtk-osx-users-list mailing list gtk-osx-users-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list