Opened 2 months ago

Last modified 8 weeks ago

#5495 new defect

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

Reported by: jorg 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

Subtickets (add)

Attachments (1)

freeze.txt (2.4 KB) - added by jorg 6 weeks ago.
output of ./bin/pip freeze

Download all attachments as: .zip

Change History (3)

comment:1 Changed 2 months ago by jorg

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

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

comment:2 Changed 8 weeks ago by breton

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

Changed 6 weeks ago by jorg

output of ./bin/pip freeze

Note: See TracTickets for help on using tickets.