Failed to execute

asked 2013-03-08 06:56:11 -0600

flwang gravatar image

When execute <nova>/ on Ubuntu 12.10 64bit, I got bolew error:

stacker@stacker-ThinkPad-X230:~/workspace_community/nova$ ./ -N Running python testr --slowest --testr-args='--subunit ' usage: [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: --help [cmd1 cmd2 ...] or: --help-commands or: cmd --help

error: invalid command 'testr'

Ran 0 tests in 0.214s

OK cp: cannot stat `.testrepository/-1': No such file or directory

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2013-03-08 23:54:50 -0600

dims-v gravatar image


please try to remove directories named .venv .tox .testrepository and try again?

-- dims

edit flag offensive delete link more

answered 2013-03-14 12:50:18 -0600

alaski gravatar image

By running ./ with the -N you're asking it to not run in a virtual environment, and that appears to bypass its installation of required libraries. If you're fine running in a virtual environment just drop the -N, or you can install the dependencies needed by running 'pip install -r tools/pip-requires' and 'pip install -r tools/test-requires'. That will install testrepository which is where the testr command comes from.

edit flag offensive delete link more

answered 2013-12-18 06:44:39 -0600

you can running 'pip install -r requirements.txt' and 'pip install -r test-requirements.txt' first, and then running './run_test -N' is OK

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-03-08 06:56:11 -0600

Seen: 120 times

Last updated: Dec 18 '13