-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: 'module' object has no attribute 'check_specifier' #4104
Comments
FWIW, I ran into this same error after upgrading to 9.0.1 with setuptools 30.2.0 and python 2.7.6. I version-locked my system to use pip 9.0.1 and setuptools 30.1.0 to fix the problem. Not sure exactly what the problem was, but pretty sure it was setuptools and not pip (downgrading to pip 8.1.2 had no effect) |
I also had to downgrade away from setuptools 30.2.0 to fix the issue |
I also had to downgrade. 30.1.0 worked for me. I do not see any obvious commit that might've cause it. |
My attempt to capture a screenshot of simulated parellel transform tasks lead me to find the breakage (possibly related to pypa/pip#4104).
This appears to be an issue with setuptools and not with pip. If you're still having this issue I suggest reopening there. |
upgrade setuptools from 36.2.7 to 39.0.1 can also fix the issue |
pycparser version 2.19 has trouble with older versions of setuptools, see [1]. This is only an issue in queens and older releases. [1] - pypa/pip#4104 Change-Id: I2a2b707996e86651aa0289636c187208b4b46b33
Upgrading setuptools worked: |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I have upgraded from 8.1.2 to 9.0.1, and has the following import error on install. But the same upgrade work on our ArcGIS10.3 python which is version 2.7.8.
using the following:
SET F_PIP=pip-9.0.1.tar.gz
set pythonpath="C:\Program Files (x86)\Python27\ArcGIS10.4\python.exe"
%pythonpath% -m pip install -U pip tarball%F_PIP%
Processing m:\production\applicationsupport\utility\python\tarball\pip-9.0.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "c:\users\adm-ru~1\appdata\local\temp\pip-eczcfe-build\setup.py", line 92, in
cmdclass={'test': PyTest},
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\distutils\core.py", line 111, in setup
setup_distribution = dist = klass(attrs)
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\site-packages\setuptools\dist.py", line 272, in init
Distribution.init(self,attrs)
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\distutils\dist.py", line 287, in init
self.finalize_options()
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\site-packages\setuptools\dist.py", line 327, in finalize_options
ep.load()(self, ep.name, value)
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\site-packages\pkg_resources_init.py", line 2345, in load
return self.resolve()
File "C:\Program Files (x86)\Python27\ArcGIS10.4\lib\site-packages\pkg_resources_init.py", line 2355, in resolve
raise ImportError(str(exc))
ImportError: 'module' object has no attribute 'check_specifier'
but the whl works
Tested Ignoring indexes: https://pypi.python.org/simple
Processing m:\production\applicationsupport\utility\python\tarball\pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Successfully installed pip-9.0.1
The text was updated successfully, but these errors were encountered: