[openstack-dev] [all] Testtools 1.7.0 may error if you installed it before reading this email
Ian Wienand
iwienand at redhat.com
Wed Mar 11 23:37:53 UTC 2015
On 03/11/2015 08:10 AM, Robert Collins wrote:
> The wheel has been removed from PyPI and anyone installing testtools
> 1.7.0 now will install from source which works fine.
I noticed the centos7 job failed with the source version.
The failing job was [1] where the back-trace looks like ~45 songs on
Python's greatest-hits album (pasted below). The next run [2] it got
the 1.7.1 wheel and "just worked".
Maybe this jumps out at someone as a known issue ...
-i
[1] http://logs.openstack.org/49/163249/1/check/check-tempest-dsvm-centos7/8dceac8/logs/devstacklog.txt.gz
[2] http://logs.openstack.org/49/163249/1/check/check-tempest-dsvm-centos7/f3b86d5/logs/devstacklog.txt.gz
---
Colecting testtools>=0.9.22 (from fixtures>=0.3.14->oslo.concurrency>=1.4.1->keystone==2015.1.dev395)
Downloading http://pypi.IAD.openstack.org/packages/source/t/testtools/testtools-1.7.0.tar.gz (202kB)
Installed /tmp/easy_install-mV2rSm/unittest2-1.0.0/.eggs/traceback2-1.4.0-py2.7.egg
Installed /tmp/easy_install-mV2rSm/unittest2-1.0.0/.eggs/linecache2-1.0.0-py2.7.egg
/usr/lib/python2.7/site-packages/setuptools/dist.py:291: UserWarning: The version specified (<__main__.late_version instance at 0x34654d0>) is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % self.metadata.version
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-aGC1zC/testtools/setup.py", line 92, in <module>
setup_requires=deps,
File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 310, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 799, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1049, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1061, in obtain
return installer(requirement)
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 377, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 620, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 650, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 835, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1063, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1049, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 240, in run_setup
raise
File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 193, in setup_context
yield
File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 164, in save_modules
saved_exc.resume()
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 139, in resume
compat.reraise(type, exc, self._tb)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 152, in save_modules
yield saved
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 193, in setup_context
yield
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 237, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 267, in run
return func()
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 236, in runner
_execfile(setup_script, ns)
File "/usr/lib/python2.7/site-packages/setuptools/sandbox.py", line 46, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-mV2rSm/unittest2-1.0.0/setup.py", line 87, in <module>
'testtools.tests.matchers',
File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.7/distutils/dist.py", line 971, in run_command
cmd_obj.ensure_finalized()
File "/usr/lib64/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/usr/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 88, in finalize_options
ei_cmd = self.ei_cmd = self.get_finalized_command("egg_info")
File "/usr/lib64/python2.7/distutils/cmd.py", line 312, in get_finalized_command
cmd_obj.ensure_finalized()
File "/usr/lib64/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/usr/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 75, in finalize_options
self.egg_version = self.tagged_version()
File "/usr/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 165, in tagged_version
return safe_version(version + self.vtags)
File "/tmp/easy_install-mV2rSm/unittest2-1.0.0/setup.py", line 18, in __add__
if sys.version_info >= (3,) and module == '_compat2x':
File "/tmp/easy_install-mV2rSm/unittest2-1.0.0/setup.py", line 15, in __str__
File "/tmp/easy_install-mV2rSm/unittest2-1.0.0/unittest2/__init__.py", line 40, in <module>
File "/tmp/easy_install-mV2rSm/unittest2-1.0.0/unittest2/collector.py", line 3, in <module>
File "/tmp/easy_install-mV2rSm/unittest2-1.0.0/unittest2/loader.py", line 13, in <module>
File "/tmp/easy_install-mV2rSm/unittest2-1.0.0/unittest2/case.py", line 16, in <module>
ImportError: cannot import name range
Complete output from command python setup.py egg_info:
---
More information about the OpenStack-dev
mailing list