求大神帮忙,我在horizon开发中,运行 run.tests.sh是报出以下错误请大神帮解。
======================================================================
ERROR: openstack_dashboard.test.test_data.utils.load_test_data
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/kevin/openstack-dev/horizon/.venv/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/kevin/openstack-dev/horizon/openstack_dashboard/test/test_data/utils.py", line 19, in load_test_data
from openstack_dashboard.test.test_data import cinder_data
File "/home/kevin/openstack-dev/horizon/openstack_dashboard/test/test_data/cinder_data.py", line 22, in <module>
from openstack_dashboard import api
File "/home/kevin/openstack-dev/horizon/openstack_dashboard/api/__init__.py", line 36, in <module>
from openstack_dashboard.api import base
ImportError: cannot import name base
======================================================================
ERROR: Failure: ImportError (cannot import name adapter)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/kevin/openstack-dev/horizon/.venv/lib/python2.6/site-packages/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/home/kevin/openstack-dev/horizon/.venv/lib/python2.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/kevin/openstack-dev/horizon/.venv/lib/python2.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/kevin/openstack-dev/horizon/openstack_dashboard/test/test_plugins/panel_group_tests.py", line 22, in <module>
from openstack_dashboard.test import helpers as test
File "/home/kevin/openstack-dev/horizon/openstack_dashboard/test/helpers.py", line 43, in <module>
from troveclient import client as trove_client
File "/home/kevin/openstack-dev/horizon/.venv/lib/python2.6/site-packages/troveclient/client.py", line 28, in <module>
from keystoneclient import adapter
ImportError: cannot import name adapter
|