oslo.config failes to install in gate job: TypeError: dist must be a Distribution instance

Bug #1224077 reported by Peter Portante
This bug report is a duplicate of:  Bug #1182861: Switch to oslo.config 1.2.0 final. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
New
Undecided
Unassigned

Bug Description

See http://logs.openstack.org/05/46105/2/check/gate-grenade-devstack-vm/054d5a0/console.html

2013-09-11 18:36:37.109 | 2013-09-11 18:33:58 Searching for oslo.config>=1.2.0a3
2013-09-11 18:36:37.113 | 2013-09-11 18:33:58 Best match: oslo.config 1.2.0a3
2013-09-11 18:36:37.113 | 2013-09-11 18:33:58 Downloading http://tarballs.openstack.org/oslo.config/oslo.config-1.2.0a3.tar.gz#egg=oslo.config-1.2.0a3
2013-09-11 18:36:37.114 | 2013-09-11 18:33:58 Processing oslo.config-1.2.0a3.tar.gz
2013-09-11 18:36:37.115 | 2013-09-11 18:33:58 Running oslo.config-1.2.0a3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YEe67j/oslo.config-1.2.0a3/egg-dist-tmp-7iKC6y
2013-09-11 18:36:37.115 | 2013-09-11 18:33:58 /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'd2to1'
2013-09-11 18:36:37.116 | 2013-09-11 18:33:58 warnings.warn(msg)
2013-09-11 18:36:37.116 | 2013-09-11 18:33:58 /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires'
2013-09-11 18:36:37.117 | 2013-09-11 18:33:58 warnings.warn(msg)
2013-09-11 18:36:37.117 | 2013-09-11 18:33:58 /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'namespace_packages'
2013-09-11 18:36:37.117 | 2013-09-11 18:33:58 warnings.warn(msg)
2013-09-11 18:36:37.118 | 2013-09-11 18:33:58 Traceback (most recent call last):
2013-09-11 18:36:37.118 | 2013-09-11 18:33:58 File "setup.py", line 22, in <module>
2013-09-11 18:36:37.118 | 2013-09-11 18:33:58 pbr=True)
2013-09-11 18:36:37.139 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
2013-09-11 18:36:37.139 | 2013-09-11 18:33:58 dist.run_commands()
2013-09-11 18:36:37.140 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
2013-09-11 18:36:37.140 | 2013-09-11 18:33:58 self.run_command(cmd)
2013-09-11 18:36:37.141 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
2013-09-11 18:36:37.141 | 2013-09-11 18:33:58 cmd_obj.run()
2013-09-11 18:36:37.142 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/command/develop.py", line 27, in run
2013-09-11 18:36:37.142 | 2013-09-11 18:33:58 self.install_for_development()
2013-09-11 18:36:37.143 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/command/develop.py", line 105, in install_for_development
2013-09-11 18:36:37.143 | 2013-09-11 18:33:58 self.process_distribution(None, self.dist, not self.no_deps)
2013-09-11 18:36:37.144 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 692, in process_distribution
2013-09-11 18:36:37.144 | 2013-09-11 18:33:58 [requirement], self.local_index, self.easy_install
2013-09-11 18:36:37.145 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 576, in resolve
2013-09-11 18:36:37.146 | 2013-09-11 18:33:58 dist = best[req.key] = env.best_match(req, self, installer)
2013-09-11 18:36:37.146 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 821, in best_match
2013-09-11 18:36:37.147 | 2013-09-11 18:33:58 return self.obtain(req, installer) # try and download/install
2013-09-11 18:36:37.147 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 833, in obtain
2013-09-11 18:36:37.176 | 2013-09-11 18:33:58 return installer(requirement)
2013-09-11 18:36:37.177 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 608, in easy_install
2013-09-11 18:36:37.177 | 2013-09-11 18:33:58 return self.install_item(spec, dist.location, tmpdir, deps)
2013-09-11 18:36:37.178 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 638, in install_item
2013-09-11 18:36:37.178 | 2013-09-11 18:33:58 dists = self.install_eggs(spec, download, tmpdir)
2013-09-11 18:36:37.179 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 828, in install_eggs
2013-09-11 18:36:37.179 | 2013-09-11 18:33:58 return self.build_and_install(setup_script, setup_base)
2013-09-11 18:36:37.180 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1105, in build_and_install
2013-09-11 18:36:37.180 | 2013-09-11 18:33:58 self.run_setup(setup_script, setup_base, args)
2013-09-11 18:36:37.181 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1094, in run_setup
2013-09-11 18:36:37.181 | 2013-09-11 18:33:58 run_setup(setup_script, args)
2013-09-11 18:36:37.181 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 30, in run_setup
2013-09-11 18:36:37.182 | 2013-09-11 18:33:58 lambda: execfile(
2013-09-11 18:36:37.182 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 72, in run
2013-09-11 18:36:37.183 | 2013-09-11 18:33:58 return func()
2013-09-11 18:36:37.183 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 32, in <lambda>
2013-09-11 18:36:37.183 | 2013-09-11 18:33:58 {'__file__':setup_script, '__name__':'__main__'}
2013-09-11 18:36:37.213 | 2013-09-11 18:33:58 File "setup.py", line 23, in <module>
2013-09-11 18:36:37.214 | 2013-09-11 18:33:58
2013-09-11 18:36:37.215 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
2013-09-11 18:36:37.216 | 2013-09-11 18:33:58 dist.run_commands()
2013-09-11 18:36:37.216 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
2013-09-11 18:36:37.217 | 2013-09-11 18:33:58 self.run_command(cmd)
2013-09-11 18:36:37.217 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/distutils/dist.py", line 970, in run_command
2013-09-11 18:36:37.218 | 2013-09-11 18:33:58 cmd_obj = self.get_command_obj(command)
2013-09-11 18:36:37.218 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/distutils/dist.py", line 846, in get_command_obj
2013-09-11 18:36:37.219 | 2013-09-11 18:33:58 cmd_obj = self.command_obj[command] = klass(self)
2013-09-11 18:36:37.219 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 70, in __init__
2013-09-11 18:36:37.220 | 2013-09-11 18:33:58 _Command.__init__(self,dist)
2013-09-11 18:36:37.220 | 2013-09-11 18:33:58 File "/usr/lib/python2.7/distutils/cmd.py", line 59, in __init__
2013-09-11 18:36:37.221 | 2013-09-11 18:33:58 raise TypeError, "dist must be a Distribution instance"
2013-09-11 18:36:37.221 | 2013-09-11 18:33:58 TypeError: dist must be a Distribution instance
2013-09-11 18:36:37.250 | 2013-09-11 18:33:58 ++ failed
2013-09-11 18:36:37.251 | 2013-09-11 18:33:58 ++ local r=1
2013-09-11 18:36:37.251 | 2013-09-11 18:33:58 +++ jobs -p
2013-09-11 18:36:37.252 | 2013-09-11 18:33:58 ++ kill
2013-09-11 18:36:37.252 | 2013-09-11 18:33:58 ++ set +o xtrace
2013-09-11 18:36:37.252 | 2013-09-11 18:33:58 stack.sh failed: full log in /opt/stack/old/devstacklog.txt.2013-09-11-183112
2013-09-11 18:36:37.624 | Build step 'Execute shell' marked build as failure

Revision history for this message
Mark McLoughlin (markmc) wrote :

AFAIK this is fixed by using 1.2.0a4, because a3 uses d2to1 - the issue here is that keystoneclient is using 1.2.0a3

I'm also about to release 1.2.0 proper and keystoneclient should use this

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.