[Errno 1] uninstall pyobjc-core-2.5.1

Issue #183 closed
rgc588 created an issue

python2.7 -m pip uninstall pyobjc-core Uninstalling pyobjc-core-2.5.1: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/pyobjc_core-2.5.1-py2.7.egg-info Proceed (y/n)? y Exception: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/uninstall.py", line 76, in run requirement_set.uninstall(auto_confirm=options.yes) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 346, in uninstall req.uninstall(auto_confirm=auto_confirm) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall paths_to_remove.remove(auto_confirm) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove renames(path, new_path) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/init.py", line 267, in renames shutil.move(old, new) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 299, in move copytree(src, real_dst, symlinks=True) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 208, in copytree raise Error, errors Error: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/init.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/init.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/init.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/init.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/init.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/init.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppCategories.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppCategories.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppCategories.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppCategories.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppCategories.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppCategories.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppHelper.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppHelper.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppHelper.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppHelper.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppHelper.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/AppHelper.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Conversion.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Conversion.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Conversion.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Conversion.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Conversion.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Conversion.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Debugging.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Debugging.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Debugging.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Debugging.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Debugging.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Debugging.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/FndCategories.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/FndCategories.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/FndCategories.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/FndCategories.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/FndCategories.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/FndCategories.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/KeyValueCoding.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/KeyValueCoding.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/KeyValueCoding.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/KeyValueCoding.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/KeyValueCoding.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/KeyValueCoding.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/MachSignals.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/MachSignals.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/MachSignals.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/MachSignals.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/MachSignals.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/MachSignals.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/NibClassBuilder.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/NibClassBuilder.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/NibClassBuilder.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/NibClassBuilder.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/NibClassBuilder.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/NibClassBuilder.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Signals.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Signals.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Signals.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Signals.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Signals.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/Signals.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/TestSupport.py', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/TestSupport.py', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/TestSupport.py'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/TestSupport.pyc', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/TestSupport.pyc', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/TestSupport.pyc'"), ('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools', '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools', "[Errno 1] Operation not permitted: '/var/folders/bv/xdhxvlk94_9f1hsc69lnq4m40000gn/T/pip-AHy2q2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools'")]

Comments (5)

  1. Ronald Oussoren repo owner

    You are trying to install an OS component, which fails due to lack of rights. Don't uninstall bits of the OS, that might break other functionality.

  2. rgc588 reporter

    How to update pyobjc then? I am not trying to uninstall this component. But, I encounter the issue when trying to update with "pip install -U pyobjc"

  3. Ronald Oussoren repo owner

    Use virtualenv to create a clean python environment into which you can install software without affecting the system (and without having to update system software to get up-to-date python packages).

    The error you get when using "pip install -U pyobjc" or "pip uninstall pyobjc" is a filesystem rights issue. It is easy enough to work around this, but that is not something I'd do because this might break other software.

  4. rgc588 reporter

    I did not get what you are explaining initially. Now I got it. The Python come with Mac is part of the OS. I will need to install a separate python.

  5. Log in to comment