Opened 7 years ago

Closed 6 years ago

#5495 closed defect (cant-reproduce)

AttributeError: 'module' object has no attribute 'specifiers'

Reported by: Jorge Owned by:
Priority: major Milestone:
Component: programming Keywords:
Cc: Parent Tickets:


saw thils for 'make`in the master branch. it was not reproduceable running make again so far.

Writing /tmp/easy_install-w443A9/setuptools-34.1.1/setup.cfg                                                                    
Running setuptools-34.1.1/ -q bdist_egg --dist-dir /tmp/easy_install-w443A9/setuptools-34.1.1/egg-dist-tmp-9naPm6
Traceback (most recent call last):
  File "", line 142, in <module>                                                                 
    "Topic :: Internet :: WWW/HTTP :: Dynamic Content"                                                    
  File "/usr/lib/python2.7/distutils/", line 151, in setup                  
  File "/usr/lib/python2.7/distutils/", line 953, in run_commands
  File "/usr/lib/python2.7/distutils/", line 972, in run_command                                                                        
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/", line 36, in run self.install_for_development()
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/", line 150, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)                                       
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/", line 757, in process_distribution self.easy_install(dist.as_requirement())
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/", line 674, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)                                               
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/", line 700, in install_item
    dists = self.install_eggs(spec, download, tmpdir)                                                     
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/", line 881, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/", line 1120, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/", line 1106, in run_setup
    run_setup(setup_script, args)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 258, in run_setup
  File "/usr/lib/python2.7/", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 198, in setup_context
  File "/usr/lib/python2.7/", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 169, in save_modules
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 144, in resume
    six.reraise(type, exc, self._tb)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 157, in save_modules
    yield saved
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 198, in setup_context
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 255, in run_setup
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 285, in run
    return func()
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 253, in runner
    _execfile(setup_script, ns)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 47, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-w443A9/setuptools-34.1.1/", line 191, in <module>

  File "/usr/lib/python2.7/distutils/", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 320, in __init__
    _Distribution.__init__(self, attrs)
  File "/usr/lib/python2.7/distutils/", line 287, in __init__
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 387, in finalize_options
    ep.load()(self,, value)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/", line 166, in check_specifier
    except packaging.specifiers.InvalidSpecifier as error:
AttributeError: 'module' object has no attribute 'specifiers'
Makefile:123: recipe for target 'bin/python' failed
make: *** [bin/python] Error 1

Attachments (1)

freeze.txt (2.4 KB ) - added by Jorge 7 years ago.
output of ./bin/pip freeze

Download all attachments as: .zip

Change History (5)

comment:1 by Jorge, 7 years ago

It can be triggered by the update which tries and fails to upgrade setuptools

./bin/python develop --upgrade

comment:2 by Boris Bobrov, 7 years ago

I am afraid i cannot reproduce it. What OS are you using? Could you please post output of ./bin/pip freeze?

by Jorge, 7 years ago

Attachment: freeze.txt added

output of ./bin/pip freeze

comment:3 by Aramir, 7 years ago

Still hapenning to this day. Log error :
tried to update setuptools with pip, it updated the setuptools from 33.1.1 to 35.0.2. But the error is still the same (appart from different setuptools version obviously). My ./bin/pip freeze output :

ps : server running on Debian Jessie, trying to install the latest stable mediagoblin (0.9.0), python 2.7.9

EDIT : After rereading the initial it appears to not be the exact same error, thus I'll open a new ticket

Last edited 7 years ago by Aramir (previous) (diff)

comment:4 by ayleph, 6 years ago

Resolution: worksforme
Status: newclosed

Cannot reproduce. Closing for inactivity.

Note: See TracTickets for help on using tickets.