Skip to content
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

Closed
rudyvogt opened this issue Nov 10, 2016 · 7 comments
Closed

ImportError: 'module' object has no attribute 'check_specifier' #4104

rudyvogt opened this issue Nov 10, 2016 · 7 comments
Labels
auto-locked Outdated issues that have been locked by automation project: setuptools Related to setuptools

Comments

@rudyvogt
Copy link

rudyvogt commented Nov 10, 2016

  • Pip version: 9.0.1
  • Python version: 2.7.10
  • Operating System: Win 7 SP1

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

@killthrush
Copy link

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)

@wadey
Copy link

wadey commented Dec 5, 2016

I also had to downgrade away from setuptools 30.2.0 to fix the issue

@igor-kupczynski
Copy link

I also had to downgrade. 30.1.0 worked for me. I do not see any obvious commit that might've cause it.

RadekBiba added a commit to RedHatQE/rhui3-automation that referenced this issue Dec 7, 2016
njgraham pushed a commit to njgraham/i2p-transform that referenced this issue Dec 14, 2016
My attempt to capture a screenshot of simulated parellel transform tasks lead me to find the breakage (possibly related to pypa/pip#4104).
@dstufft
Copy link
Member

dstufft commented Mar 30, 2017

This appears to be an issue with setuptools and not with pip. If you're still having this issue I suggest reopening there.

@dstufft dstufft closed this as completed Mar 30, 2017
@xavfernandez xavfernandez added the project: setuptools Related to setuptools label Mar 30, 2017
@zhangningxin
Copy link

upgrade setuptools from 36.2.7 to 39.0.1 can also fix the issue

openstack-gerrit pushed a commit to redhat-openstack/packstack that referenced this issue Oct 16, 2018
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
@abhiSakhuja
Copy link

Upgrading setuptools worked:
sudo pip install setuptools --upgrade

@lock
Copy link

lock bot commented May 28, 2019

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.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation project: setuptools Related to setuptools
Projects
None yet
Development

No branches or pull requests

8 participants