What does the solve () error caused by the unexpected replace_conflicting keyword argument mean?

When I update some packages in my Python installation using pip, I get

TypeError: resolve() got an unexpected keyword argument 'replace_conflicting'

I get this error for certain packages, not others, and asked about ways to get around it (ideally, continuing to use it pip) in specific cases when I come across this; but the question here is what error means in the first place and what could be the probable cause.

What does this error mean and what can cause it?


Downloading/unpacking xattr
  Downloading xattr-0.7.5.tar.gz
  Running setup.py (path:/private/tmp/pip_build_root/xattr/setup.py) egg_info for package xattr
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/private/tmp/pip_build_root/xattr/setup.py", line 67, in <module>
        cmdclass={'build': cffi_build},
      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 "/Library/Python/2.7/site-packages/setuptools/dist.py", line 239, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 264, in fetch_build_eggs
        replace_conflicting=True
    TypeError: resolve() got an unexpected keyword argument 'replace_conflicting'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/tmp/pip_build_root/xattr/setup.py", line 67, in <module>

    cmdclass={'build': cffi_build},

  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 "/Library/Python/2.7/site-packages/setuptools/dist.py", line 239, in __init__

    self.fetch_build_eggs(attrs.pop('setup_requires'))

  File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 264, in fetch_build_eggs

    replace_conflicting=True

TypeError: resolve() got an unexpected keyword argument 'replace_conflicting'
+1
source share
1 answer

setuptools: /System/Library/Frameworks/Python.framework/Versions/2.7 /Library/Python/2.7/site-packages. -, setuptools.dist.Distribution.fetch_build_eggs pkg_resources.working_set.resolve . replace_conflicting.

OS X :

$ sudo python /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/easy_install.py -U setuptools
$ sudo easy_install -U pip

, easy_install easy_install, pip.

, sys.path , pkg_resources /Library/Python , /System/Library/Frameworks. sys.path PYTHONPATH, . Python.

+1

All Articles