TypeError: dist must be a Distribution instance when installing warlock

Bug #1255128 reported by Peter Portante
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned
tripleo
Fix Released
High
Clint Byrum

Bug Description

TypeError: dist must be a Distribution instance when installing warlock

See: http://logs.openstack.org/97/58397/2/check/check-grenade-devstack-vm/280c76f/console.html

2013-11-26 14:38:19.446 | 2013-11-26 14:38:19 Downloading http://pypi.openstack.org/openstack/warlock/warlock-1.1.0.tar.gz
2013-11-26 14:38:19.447 | 2013-11-26 14:38:19 Processing warlock-1.1.0.tar.gz
2013-11-26 14:38:19.447 | 2013-11-26 14:38:19 Running warlock-1.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rHyEko/warlock-1.1.0/egg-dist-tmp-vzEBK8
2013-11-26 14:38:19.448 | 2013-11-26 14:38:19 /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
2013-11-26 14:38:19.448 | 2013-11-26 14:38:19 warnings.warn(msg)
2013-11-26 14:38:19.449 | 2013-11-26 14:38:19 Traceback (most recent call last):
2013-11-26 14:38:19.449 | 2013-11-26 14:38:19 File "setup.py", line 22, in <module>
2013-11-26 14:38:19.488 | 2013-11-26 14:38:19 pbr=True)
2013-11-26 14:38:19.488 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
2013-11-26 14:38:19.488 | 2013-11-26 14:38:19 dist.run_commands()
2013-11-26 14:38:19.489 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
2013-11-26 14:38:19.489 | 2013-11-26 14:38:19 self.run_command(cmd)
2013-11-26 14:38:19.490 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
2013-11-26 14:38:19.490 | 2013-11-26 14:38:19 cmd_obj.run()
2013-11-26 14:38:19.491 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/command/develop.py", line 27, in run
2013-11-26 14:38:19.494 | 2013-11-26 14:38:19 self.install_for_development()
2013-11-26 14:38:19.498 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/command/develop.py", line 105, in install_for_development
2013-11-26 14:38:19.503 | 2013-11-26 14:38:19 self.process_distribution(None, self.dist, not self.no_deps)
2013-11-26 14:38:19.508 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 692, in process_distribution
2013-11-26 14:38:19.512 | 2013-11-26 14:38:19 [requirement], self.local_index, self.easy_install
2013-11-26 14:38:19.517 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 576, in resolve
2013-11-26 14:38:19.527 | 2013-11-26 14:38:19 dist = best[req.key] = env.best_match(req, self, installer)
2013-11-26 14:38:19.527 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 821, in best_match
2013-11-26 14:38:19.531 | 2013-11-26 14:38:19 return self.obtain(req, installer) # try and download/install
2013-11-26 14:38:19.536 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 833, in obtain
2013-11-26 14:38:19.540 | 2013-11-26 14:38:19 return installer(requirement)
2013-11-26 14:38:19.545 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 608, in easy_install
2013-11-26 14:38:19.549 | 2013-11-26 14:38:19 return self.install_item(spec, dist.location, tmpdir, deps)
2013-11-26 14:38:19.554 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 638, in install_item
2013-11-26 14:38:19.558 | 2013-11-26 14:38:19 dists = self.install_eggs(spec, download, tmpdir)
2013-11-26 14:38:19.563 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 828, in install_eggs
2013-11-26 14:38:19.568 | 2013-11-26 14:38:19 return self.build_and_install(setup_script, setup_base)
2013-11-26 14:38:19.572 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1105, in build_and_install
2013-11-26 14:38:19.577 | 2013-11-26 14:38:19 self.run_setup(setup_script, setup_base, args)
2013-11-26 14:38:19.582 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1094, in run_setup
2013-11-26 14:38:19.587 | 2013-11-26 14:38:19 run_setup(setup_script, args)
2013-11-26 14:38:19.592 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 30, in run_setup
2013-11-26 14:38:19.597 | 2013-11-26 14:38:19 lambda: execfile(
2013-11-26 14:38:19.602 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 72, in run
2013-11-26 14:38:19.607 | 2013-11-26 14:38:19 return func()
2013-11-26 14:38:19.612 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 32, in <lambda>
2013-11-26 14:38:19.621 | 2013-11-26 14:38:19 {'__file__':setup_script, '__name__':'__main__'}
2013-11-26 14:38:19.631 | 2013-11-26 14:38:19 File "setup.py", line 33, in <module>
2013-11-26 14:38:19.632 | 2013-11-26 14:38:19
2013-11-26 14:38:19.636 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
2013-11-26 14:38:19.638 | 2013-11-26 14:38:19 dist.run_commands()
2013-11-26 14:38:19.643 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
2013-11-26 14:38:19.648 | 2013-11-26 14:38:19 self.run_command(cmd)
2013-11-26 14:38:19.653 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/distutils/dist.py", line 970, in run_command
2013-11-26 14:38:19.658 | 2013-11-26 14:38:19 cmd_obj = self.get_command_obj(command)
2013-11-26 14:38:19.663 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/distutils/dist.py", line 846, in get_command_obj
2013-11-26 14:38:19.671 | 2013-11-26 14:38:19 cmd_obj = self.command_obj[command] = klass(self)
2013-11-26 14:38:19.677 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 70, in __init__
2013-11-26 14:38:19.679 | 2013-11-26 14:38:19 _Command.__init__(self,dist)
2013-11-26 14:38:19.685 | 2013-11-26 14:38:19 File "/usr/lib/python2.7/distutils/cmd.py", line 59, in __init__
2013-11-26 14:38:19.690 | 2013-11-26 14:38:19 raise TypeError, "dist must be a Distribution instance"
2013-11-26 14:38:19.695 | 2013-11-26 14:38:19 TypeError: dist must be a Distribution instance

Revision history for this message
Dean Troyer (dtroyer) wrote :

Not an actionable bug report

Changed in devstack:
status: New → Invalid
Revision history for this message
Chris Jones (cmsj) wrote :

Marking as confirmed for tripleo because this is causing (at least) seed image builds to fail.

Changed in devstack:
status: Invalid → Confirmed
status: Confirmed → Invalid
Changed in tripleo:
status: New → Confirmed
importance: Undecided → High
Changed in tripleo:
importance: High → Critical
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Looks like we are using 'setup.py develop' directly instead of letting 'pip install .' do its thing.

Changed in tripleo:
assignee: nobody → Clint Byrum (clint-fewbar)
status: Confirmed → In Progress
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Downgrading to High, this is being exposed only because we are accidentally installing these using the system pip due to bug 1266513.

Changed in tripleo:
importance: Critical → High
Revision history for this message
Robert Collins (lifeless) wrote :

@Clint - so - whats the bug?

Changed in tripleo:
status: In Progress → Confirmed
status: Confirmed → Incomplete
Revision history for this message
Derek Higgins (derekh) wrote :

Closing for tripleo, this may have been happening at some stage but doesn't seem to be the case anymore

Changed in tripleo:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.