Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Got an error during installation of Kilo " error in setup command: Error parsing /opt/stack/keystone/setup.cfg: ImportError: No module named testrepository"

following this link for installation: http://blog.phymata.com/2014/04/18/devstack-icehouse-on-the-rackspace-cloud/

Error occurred when I apply the command "./stack.sh"

2015-12-28 13:53:11.766 | Obtaining file:///opt/stack/keystone 2015-12-28 13:53:12.314 | Complete output from command python setup.py egg_info: 2015-12-28 13:53:12.314 | ERROR:root:Error parsing 2015-12-28 13:53:12.314 | Traceback (most recent call last): 2015-12-28 13:53:12.315 | File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 109, in pbr 2015-12-28 13:53:12.315 | attrs = util.cfg_to_args(path) 2015-12-28 13:53:12.315 | File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 261, in cfg_to_args 2015-12-28 13:53:12.315 | wrap_commands(kwargs) 2015-12-28 13:53:12.315 | File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 482, in wrap_commands 2015-12-28 13:53:12.316 | for cmd, _ in dist.get_command_list(): 2015-12-28 13:53:12.316 | File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 446, in get_command_list 2015-12-28 13:53:12.316 | cmdclass = ep.resolve() 2015-12-28 13:53:12.316 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2386, in resolve 2015-12-28 13:53:12.316 | module = __import__(self.module_name, fromlist=['__name__'], level=0) 2015-12-28 13:53:12.316 | File "/usr/local/lib/python2.7/dist-packages/pbr/testr_command.py", line 47, in <module> 2015-12-28 13:53:12.317 | from testrepository import commands 2015-12-28 13:53:12.317 | ImportError: No module named testrepository 2015-12-28 13:53:12.317 | error in setup command: Error parsing /opt/stack/keystone/setup.cfg: ImportError: No module named testrepository 2015-12-28 13:53:12.317 | 2015-12-28 13:53:12.317 | ---------------------------------------- 2015-12-28 13:53:12.317 | Command "python setup.py egg_info" failed with error code 1 in /opt/stack/keystone 2015-12-28 13:53:12.687 | + exit_trap 2015-12-28 13:53:12.688 | + local r=1 2015-12-28 13:53:12.688 | ++ jobs -p 2015-12-28 13:53:12.689 | + jobs= 2015-12-28 13:53:12.689 | + [[ -n '' ]] 2015-12-28 13:53:12.689 | + kill_spinner 2015-12-28 13:53:12.689 | + '[' '!' -z '' ']' 2015-12-28 13:53:12.689 | + [[ 1 -ne 0 ]] 2015-12-28 13:53:12.689 | + echo 'Error on exit' 2015-12-28 13:53:12.689 | Error on exit 2015-12-28 13:53:12.689 | + [[ -z /opt/stack/logs ]] 2015-12-28 13:53:12.690 | + /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs 2015-12-28 13:53:12.739 | + exit 1

Got an error during installation of Kilo " error in setup command: Error parsing /opt/stack/keystone/setup.cfg: ImportError: No module named testrepository"

following this link for installation: http://blog.phymata.com/2014/04/18/devstack-icehouse-on-the-rackspace-cloud/

Error occurred when I apply the command "./stack.sh"

2015-12-28 13:53:11.766 | Obtaining file:///opt/stack/keystone
2015-12-28 13:53:12.314 |     Complete output from command python setup.py egg_info:
2015-12-28 13:53:12.314 |     ERROR:root:Error parsing
2015-12-28 13:53:12.314 |     Traceback (most recent call last):
2015-12-28 13:53:12.315 |       File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 109, in pbr
2015-12-28 13:53:12.315 |         attrs = util.cfg_to_args(path)
2015-12-28 13:53:12.315 |       File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 261, in cfg_to_args
2015-12-28 13:53:12.315 |         wrap_commands(kwargs)
2015-12-28 13:53:12.315 |       File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 482, in wrap_commands
2015-12-28 13:53:12.316 |         for cmd, _ in dist.get_command_list():
2015-12-28 13:53:12.316 |       File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 446, in get_command_list
2015-12-28 13:53:12.316 |         cmdclass = ep.resolve()
2015-12-28 13:53:12.316 |       File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2386, in resolve
2015-12-28 13:53:12.316 |         module = __import__(self.module_name, fromlist=['__name__'], level=0)
2015-12-28 13:53:12.316 |       File "/usr/local/lib/python2.7/dist-packages/pbr/testr_command.py", line 47, in <module>
2015-12-28 13:53:12.317 |         from testrepository import commands
2015-12-28 13:53:12.317 |     ImportError: No module named testrepository
2015-12-28 13:53:12.317 |     error in setup command: Error parsing /opt/stack/keystone/setup.cfg: ImportError: No module named testrepository
2015-12-28 13:53:12.317 |
2015-12-28 13:53:12.317 |     ----------------------------------------
2015-12-28 13:53:12.317 | Command "python setup.py egg_info" failed with error code 1 in /opt/stack/keystone
2015-12-28 13:53:12.687 | + exit_trap
2015-12-28 13:53:12.688 | + local r=1
2015-12-28 13:53:12.688 | ++ jobs -p
2015-12-28 13:53:12.689 | + jobs=
2015-12-28 13:53:12.689 | + [[ -n '' ]]
2015-12-28 13:53:12.689 | + kill_spinner
2015-12-28 13:53:12.689 | + '[' '!' -z '' ']'
2015-12-28 13:53:12.689 | + [[ 1 -ne 0 ]]
2015-12-28 13:53:12.689 | + echo 'Error on exit'
2015-12-28 13:53:12.689 | Error on exit
2015-12-28 13:53:12.689 | + [[ -z /opt/stack/logs ]]
2015-12-28 13:53:12.690 | + /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2015-12-28 13:53:12.739 | + exit 1

1