Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

After I 'yum update', I got a similar error. Can anyone help?

ImportError at /

cannot import name base

Request Method: GET Request URL: http://172.17.61.157/dashboard/ Django Version: 1.5.4 Exception Type: ImportError Exception Value:

cannot import name base

Exception Location: /usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/__init__.py in <module>, line 36 Python Executable: /usr/bin/python Python Version: 2.7.5 Python Path:

['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info', '/usr/share/openstack-dashboard/openstack_dashboard']

Server time: Fri, 11 Apr 2014 19:12:21 +0000 Traceback Switch to copy-and-paste view

/usr/lib/python2.7/site-packages/django/core/handlers/base.py in get_response

                        response = middleware_method(request)

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/middleware/locale.py in process_request

            check_path = self.is_language_prefix_patterns_used()

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/middleware/locale.py in is_language_prefix_patterns_used

            for url_pattern in get_resolver(None).url_patterns:

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/core/urlresolvers.py in url_patterns

            patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/core/urlresolvers.py in urlconf_module

                self._urlconf_module = import_module(self.urlconf_name)

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/utils/importlib.py in import_module

        __import__(name)

    ...
▶ Local vars
/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/urls.py in <module>

        url(r'', include(horizon.urls))

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/conf/urls/__init__.py in include

        patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/utils/functional.py in inner

                self._setup()

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/utils/functional.py in _setup

            self._wrapped = self._setupfunc()

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/horizon/base.py in url_patterns

                return self._urls()[0]

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/horizon/base.py in _urls

            self._autodiscover()

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/horizon/base.py in _autodiscover

                        import_module('%s.%s' % (app, mod_name))

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/utils/importlib.py in import_module

        __import__(name)

    ...
▶ Local vars
/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/router/dashboard.py in <module>

    from openstack_dashboard.api import neutron

    ...
▶ Local vars
/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/__init__.py in <module>

    from openstack_dashboard.api import base

    ...
▶ Local vars