Opened 8 years ago

Closed 7 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:

Description

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/setup.py -q bdist_egg --dist-dir /tmp/easy_install-w443A9/setuptools-34.1.1/egg-dist-tmp-9naPm6
Traceback (most recent call last):
  File "setup.py", line 142, in <module>                                                                 
    "Topic :: Internet :: WWW/HTTP :: Dynamic Content"                                                    
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup                  
    dist.run_commands()                                        
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd) 
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command                               
    cmd_obj.run()                                              
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/develop.py", line 36, in run self.install_for_development()
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/develop.py", 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/easy_install.py", line 757, in process_distribution self.easy_install(dist.as_requirement())
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/easy_install.py", 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/easy_install.py", line 700, in install_item
    dists = self.install_eggs(spec, download, tmpdir)                                                     
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/easy_install.py", 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/easy_install.py", 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/easy_install.py", line 1106, in run_setup
    run_setup(setup_script, args)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 258, in run_setup
    raise
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 169, in save_modules
    saved_exc.resume()
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 144, in resume
    six.reraise(type, exc, self._tb)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 157, in save_modules
    yield saved
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 255, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 285, in run
    return func()
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in runner
    _execfile(setup_script, ns)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 47, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-w443A9/setuptools-34.1.1/setup.py", line 191, in <module>

  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/dist.py", line 320, in __init__
    _Distribution.__init__(self, attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/dist.py", line 387, in finalize_options
    ep.load()(self, ep.name, value)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/dist.py", 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 8 years ago.
output of ./bin/pip freeze

Download all attachments as: .zip

Change History (5)

comment:1 by Jorge, 8 years ago

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

./bin/python setup.py develop --upgrade

comment:2 by Boris Bobrov, 8 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, 8 years ago

Attachment: freeze.txt added

output of ./bin/pip freeze

comment:3 by Aramir, 8 years ago

Still hapenning to this day. Log error : https://pastebin.com/iQw5PnnD
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 : https://pastebin.com/0CH7C4dR

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

Version 2, edited 8 years ago by Aramir (previous) (next) (diff)

comment:4 by ayleph, 7 years ago

Resolution: worksforme
Status: newclosed

Cannot reproduce. Closing for inactivity.

Note: See TracTickets for help on using tickets.