Skip to content

Instantly share code, notes, and snippets.

@Zen-CODE
Created November 4, 2013 14:23
Show Gist options
  • Save Zen-CODE/7303176 to your computer and use it in GitHub Desktop.
Save Zen-CODE/7303176 to your computer and use it in GitHub Desktop.
Errors running sudo pip install pyobjc
Camys-MacBook-Pro:clipboard camy$ sudo pip install pyobjc
Downloading/unpacking pyobjc
Running setup.py egg_info for package pyobjc
Downloading/unpacking pyobjc-core==2.5.1 (from pyobjc)
Running setup.py egg_info for package pyobjc-core
warning: no directories found matching 'Scripts'
warning: no directories found matching 'setup-lib'
warning: no directories found matching 'source-deps'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Downloading/unpacking pyobjc-framework-AddressBook==2.5.1 (from pyobjc)
Running setup.py egg_info for package pyobjc-framework-AddressBook
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/tmp/pip-build-root/pyobjc-framework-AddressBook/setup.py", line 34, in <module>
if fn.startswith('_AddressBook')
File "pyobjc_setup.py", line 441, in setup
**k
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 260, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 284, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 569, in resolve
raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (pyobjc-core 2.3.2a0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC), Requirement.parse('pyobjc-core>=2.5.1'))
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/tmp/pip-build-root/pyobjc-framework-AddressBook/setup.py", line 34, in <module>
if fn.startswith('_AddressBook')
File "pyobjc_setup.py", line 441, in setup
**k
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 260, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 284, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 569, in resolve
raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (pyobjc-core 2.3.2a0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC), Requirement.parse('pyobjc-core>=2.5.1'))
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip-build-root/pyobjc-framework-AddressBook
Storing complete log in /Users/camy/Library/Logs/pip.log
Camys-MacBook-Pro:clipboard camy$ sudo pip install pyobjc
Downloading/unpacking pyobjc
Running setup.py egg_info for package pyobjc
Downloading/unpacking pyobjc-core==2.5.1 (from pyobjc)
Running setup.py egg_info for package pyobjc-core
warning: no directories found matching 'Scripts'
warning: no directories found matching 'setup-lib'
warning: no directories found matching 'source-deps'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Downloading/unpacking pyobjc-framework-AddressBook==2.5.1 (from pyobjc)
Running setup.py egg_info for package pyobjc-framework-AddressBook
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/tmp/pip-build-root/pyobjc-framework-AddressBook/setup.py", line 34, in <module>
if fn.startswith('_AddressBook')
File "pyobjc_setup.py", line 441, in setup
**k
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 260, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 284, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 569, in resolve
raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (pyobjc-core 2.3.2a0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC), Requirement.parse('pyobjc-core>=2.5.1'))
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/tmp/pip-build-root/pyobjc-framework-AddressBook/setup.py", line 34, in <module>
if fn.startswith('_AddressBook')
File "pyobjc_setup.py", line 441, in setup
**k
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 260, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 284, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 569, in resolve
raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (pyobjc-core 2.3.2a0 (/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC), Requirement.parse('pyobjc-core>=2.5.1'))
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip-build-root/pyobjc-framework-AddressBook
Storing complete log in /Users/camy/Library/Logs/pip.log
@mchccc
Copy link

mchccc commented Dec 17, 2013

Apparently adding --upgrade makes the installation work again

@Aldarn
Copy link

Aldarn commented Sep 4, 2014

It's a problem with setup tools; run the following:

sudo pip uninstall setuptools
curl https://bootstrap.pypa.io/ez_setup.py | sudo python
sudo pip install pyobjc

@sergiosilvar
Copy link

@Aldarn, this haven't worked for me. See my log:

Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/pyobjc-core
Storing debug log for failure in /Users/sergio/.pip/pip.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment