[openstack-dev] [oslo][testing-cabal] Help needed getting oslo.versionedobjects to install in tox venv

Robert Collins robertc at robertcollins.net
Mon Nov 16 04:10:38 UTC 2015


On 16 November 2015 at 15:29, Jay Pipes <jaypipes at gmail.com> wrote:
> Hi all,
>
> Really getting frustrated with a particular problem. I'm trying to build
> oslo.versionedobjects locally (this problem occurs on both my lappie and my
> desktop, running Ubuntu 15.04 and 15.10 respectively.
>
> When running tox -epy34, I'm getting an error about not being able to
> install a dependency called ".[fixtures]":
>
> http://paste.openstack.org/show/478933/
>
> Matt Riedemann thought that it had something to do with me using an old
> version of setuptools, but I've upgraded both my site packages setuptools
> and the one in the tox virtualenv to the latest 18.5 setuptools (see proof
> in paste above) and still getting the same problem.
>
> Any help would be appreciated!

It probably means you're installing with an old pip. The most common
way that happens is using distribution versions of virtualenv, because
of how pip gets installed in tox virtualenvs:

virtualenv makes the environment
virtualenv takes a cached wheel from the environment *that virtualenv
ran from* and unpacks it into the tox environment.

tl;dr: sudo apt-get remove python-pip python-virtualenv; install pip
using get-pip.py; sudo -H pip install virtualenv

More info here:
https://rbtcollins.wordpress.com/2015/07/12/bootstrapping-developer-environments-for-openstack/

-Rob

-- 
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud



More information about the OpenStack-dev mailing list