Error while importing lxml: No module named BeautifulSoup

Bug #1010305 reported by Vincent Hou
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Confirmed
Critical
Unassigned

Bug Description

I downloaded the latest code and devstack. All the services are started by running stack.sh in one machine.
However the homepage of horizon failed to access by visiting http://localhost.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

==================Log of Horizon======================
[Fri Jun 08 11:47:35 2012] [error] ERROR:django.request:Internal Server Error: /auth/login/
[Fri Jun 08 11:47:35 2012] [error] Traceback (most recent call last):
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 136, in get_response
[Fri Jun 08 11:47:35 2012] [error] response = response.render()
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 104, in render
[Fri Jun 08 11:47:35 2012] [error] self._set_content(self.rendered_content)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 81, in rendered_content
[Fri Jun 08 11:47:35 2012] [error] content = template.render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Fri Jun 08 11:47:35 2012] [error] return self._render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Jun 08 11:47:35 2012] [error] return self.nodelist.render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:35 2012] [error] bit = self.render_node(node, context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:35 2012] [error] return node.render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 123, in render
[Fri Jun 08 11:47:35 2012] [error] return compiled_parent._render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Jun 08 11:47:35 2012] [error] return self.nodelist.render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:35 2012] [error] bit = self.render_node(node, context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:35 2012] [error] return node.render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 62, in render
[Fri Jun 08 11:47:35 2012] [error] result = block.nodelist.render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:35 2012] [error] bit = self.render_node(node, context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:35 2012] [error] return node.render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 155, in render
[Fri Jun 08 11:47:35 2012] [error] return self.render_template(self.template, context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 137, in render_template
[Fri Jun 08 11:47:35 2012] [error] output = template.render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Fri Jun 08 11:47:35 2012] [error] return self._render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Jun 08 11:47:35 2012] [error] return self.nodelist.render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:35 2012] [error] bit = self.render_node(node, context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:35 2012] [error] return node.render(context)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 86, in render
[Fri Jun 08 11:47:35 2012] [error] cache_key, cache_content = self.render_cached(compressor, forced)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 65, in render_cached
[Fri Jun 08 11:47:35 2012] [error] compressor, self.mode, self.kind)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/cache.py", line 81, in get_templatetag_cachekey
[Fri Jun 08 11:47:35 2012] [error] "templatetag.%s.%s.%s" % (compressor.cachekey, mode, kind))
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:35 2012] [error] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 120, in cachekey
[Fri Jun 08 11:47:35 2012] [error] [self.content] + self.mtimes).encode(self.charset), 12)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:35 2012] [error] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 114, in mtimes
[Fri Jun 08 11:47:35 2012] [error] for kind, value, basename, elem in self.split_contents()
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/css.py", line 20, in split_contents
[Fri Jun 08 11:47:35 2012] [error] for elem in self.parser.css_elems():
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:35 2012] [error] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 105, in parser
[Fri Jun 08 11:47:35 2012] [error] return get_class(settings.COMPRESS_PARSER)(self.content)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/__init__.py", line 19, in __init__
[Fri Jun 08 11:47:35 2012] [error] self._setup(content)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/__init__.py", line 28, in _setup
[Fri Jun 08 11:47:35 2012] [error] self._wrapped = parser(content)
[Fri Jun 08 11:47:35 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/lxml.py", line 20, in __init__
[Fri Jun 08 11:47:35 2012] [error] raise ImproperlyConfigured("Error while importing lxml: %s" % err)
[Fri Jun 08 11:47:35 2012] [error] ImproperlyConfigured: Error while importing lxml: No module named BeautifulSoup
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] mod_wsgi (pid=16956): Exception occurred processing WSGI script '/opt/stack/horizon/openstack_dashboard/wsgi/django.wsgi'.
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] Traceback (most recent call last):
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 241, in __call__
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] response = self.get_response(request)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 179, in get_response
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 221, in handle_uncaught_exception
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return debug.technical_500_response(request, *exc_info)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 66, in technical_500_response
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] html = reporter.get_traceback_html()
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 275, in get_traceback_html
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] c = Context(self.get_traceback_data())
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 233, in get_traceback_data
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] frames = self.get_traceback_frames()
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 387, in get_traceback_frames
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] 'vars': self.filter.get_traceback_frame_variables(self.request, tb.tb_frame),
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/exceptions.py", line 58, in get_traceback_frame_variables
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] func = getattr(tb_frame.f_locals.get('self'), func_name, None)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line 81, in rendered_content
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] content = template.render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return self._render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return self.nodelist.render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] bit = self.render_node(node, context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return node.render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 123, in render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return compiled_parent._render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return self.nodelist.render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] bit = self.render_node(node, context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return node.render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 62, in render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] result = block.nodelist.render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] bit = self.render_node(node, context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return node.render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 155, in render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return self.render_template(self.template, context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 137, in render_template
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] output = template.render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return self._render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return self.nodelist.render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] bit = self.render_node(node, context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return node.render(context)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 86, in render
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] cache_key, cache_content = self.render_cached(compressor, forced)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 65, in render_cached
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] compressor, self.mode, self.kind)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/cache.py", line 81, in get_templatetag_cachekey
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] "templatetag.%s.%s.%s" % (compressor.cachekey, mode, kind))
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 120, in cachekey
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] [self.content] + self.mtimes).encode(self.charset), 12)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 114, in mtimes
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] for kind, value, basename, elem in self.split_contents()
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/css.py", line 20, in split_contents
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] for elem in self.parser.css_elems():
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 105, in parser
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] return get_class(settings.COMPRESS_PARSER)(self.content)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/__init__.py", line 19, in __init__
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] self._setup(content)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/__init__.py", line 28, in _setup
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] self._wrapped = parser(content)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/lxml.py", line 20, in __init__
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] raise ImproperlyConfigured("Error while importing lxml: %s" % err)
[Fri Jun 08 11:47:35 2012] [error] [client 9.119.148.201] ImproperlyConfigured: Error while importing lxml: No module named BeautifulSoup
[Fri Jun 08 11:47:36 2012] [error] DEBUG:django.db.backends:(0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = 5dc05ca4c1cdac2148a2f73d3eac7793 AND "django_session"."expire_date" > 2012-06-08 11:47:36.031127 ); args=('5dc05ca4c1cdac2148a2f73d3eac7793', u'2012-06-08 11:47:36.031127')
[Fri Jun 08 11:47:36 2012] [error] DEBUG:django.db.backends:(0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = 5dc05ca4c1cdac2148a2f73d3eac7793 AND "django_session"."expire_date" > 2012-06-08 11:47:36.105118 ); args=('5dc05ca4c1cdac2148a2f73d3eac7793', u'2012-06-08 11:47:36.105118')
[Fri Jun 08 11:47:47 2012] [error] DEBUG:django.db.backends:(0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = 5dc05ca4c1cdac2148a2f73d3eac7793 AND "django_session"."expire_date" > 2012-06-08 11:47:47.148300 ); args=('5dc05ca4c1cdac2148a2f73d3eac7793', u'2012-06-08 11:47:47.148300')
[Fri Jun 08 11:47:47 2012] [error] CRITICAL:openstack_dashboard:Unhandled Exception in of type "<class 'django.core.exceptions.ImproperlyConfigured'>" in dashboard.
[Fri Jun 08 11:47:47 2012] [error] Traceback (most recent call last):
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
[Fri Jun 08 11:47:47 2012] [error] response = callback(request, *callback_args, **callback_kwargs)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/vary.py", line 36, in inner_func
[Fri Jun 08 11:47:47 2012] [error] response = func(*args, **kwargs)
[Fri Jun 08 11:47:47 2012] [error] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/views.py", line 47, in splash
[Fri Jun 08 11:47:47 2012] [error] return shortcuts.render(request, 'splash.html', {'form': form})
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py", line 44, in render
[Fri Jun 08 11:47:47 2012] [error] return HttpResponse(loader.render_to_string(*args, **kwargs),
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py", line 176, in render_to_string
[Fri Jun 08 11:47:47 2012] [error] return t.render(context_instance)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Fri Jun 08 11:47:47 2012] [error] return self._render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Jun 08 11:47:47 2012] [error] return self.nodelist.render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:47 2012] [error] bit = self.render_node(node, context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:47 2012] [error] return node.render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 155, in render
[Fri Jun 08 11:47:47 2012] [error] return self.render_template(self.template, context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 137, in render_template
[Fri Jun 08 11:47:47 2012] [error] output = template.render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Fri Jun 08 11:47:47 2012] [error] return self._render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Jun 08 11:47:47 2012] [error] return self.nodelist.render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:47 2012] [error] bit = self.render_node(node, context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:47 2012] [error] return node.render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 86, in render
[Fri Jun 08 11:47:47 2012] [error] cache_key, cache_content = self.render_cached(compressor, forced)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 65, in render_cached
[Fri Jun 08 11:47:47 2012] [error] compressor, self.mode, self.kind)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/cache.py", line 81, in get_templatetag_cachekey
[Fri Jun 08 11:47:47 2012] [error] "templatetag.%s.%s.%s" % (compressor.cachekey, mode, kind))
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:47 2012] [error] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 120, in cachekey
[Fri Jun 08 11:47:47 2012] [error] [self.content] + self.mtimes).encode(self.charset), 12)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:47 2012] [error] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 114, in mtimes
[Fri Jun 08 11:47:47 2012] [error] for kind, value, basename, elem in self.split_contents()
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/css.py", line 20, in split_contents
[Fri Jun 08 11:47:47 2012] [error] for elem in self.parser.css_elems():
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:47 2012] [error] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 105, in parser
[Fri Jun 08 11:47:47 2012] [error] return get_class(settings.COMPRESS_PARSER)(self.content)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/__init__.py", line 19, in __init__
[Fri Jun 08 11:47:47 2012] [error] self._setup(content)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/__init__.py", line 28, in _setup
[Fri Jun 08 11:47:47 2012] [error] self._wrapped = parser(content)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/lxml.py", line 20, in __init__
[Fri Jun 08 11:47:47 2012] [error] raise ImproperlyConfigured("Error while importing lxml: %s" % err)
[Fri Jun 08 11:47:47 2012] [error] ImproperlyConfigured: Error while importing lxml: No module named BeautifulSoup
[Fri Jun 08 11:47:47 2012] [error] ERROR:django.request:Internal Server Error: /
[Fri Jun 08 11:47:47 2012] [error] Traceback (most recent call last):
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
[Fri Jun 08 11:47:47 2012] [error] response = callback(request, *callback_args, **callback_kwargs)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/vary.py", line 36, in inner_func
[Fri Jun 08 11:47:47 2012] [error] response = func(*args, **kwargs)
[Fri Jun 08 11:47:47 2012] [error] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/views.py", line 47, in splash
[Fri Jun 08 11:47:47 2012] [error] return shortcuts.render(request, 'splash.html', {'form': form})
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py", line 44, in render
[Fri Jun 08 11:47:47 2012] [error] return HttpResponse(loader.render_to_string(*args, **kwargs),
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py", line 176, in render_to_string
[Fri Jun 08 11:47:47 2012] [error] return t.render(context_instance)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Fri Jun 08 11:47:47 2012] [error] return self._render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Jun 08 11:47:47 2012] [error] return self.nodelist.render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:47 2012] [error] bit = self.render_node(node, context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:47 2012] [error] return node.render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 155, in render
[Fri Jun 08 11:47:47 2012] [error] return self.render_template(self.template, context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 137, in render_template
[Fri Jun 08 11:47:47 2012] [error] output = template.render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Fri Jun 08 11:47:47 2012] [error] return self._render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Jun 08 11:47:47 2012] [error] return self.nodelist.render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 823, in render
[Fri Jun 08 11:47:47 2012] [error] bit = self.render_node(node, context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 74, in render_node
[Fri Jun 08 11:47:47 2012] [error] return node.render(context)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 86, in render
[Fri Jun 08 11:47:47 2012] [error] cache_key, cache_content = self.render_cached(compressor, forced)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 65, in render_cached
[Fri Jun 08 11:47:47 2012] [error] compressor, self.mode, self.kind)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/cache.py", line 81, in get_templatetag_cachekey
[Fri Jun 08 11:47:47 2012] [error] "templatetag.%s.%s.%s" % (compressor.cachekey, mode, kind))
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:47 2012] [error] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 120, in cachekey
[Fri Jun 08 11:47:47 2012] [error] [self.content] + self.mtimes).encode(self.charset), 12)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:47 2012] [error] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 114, in mtimes
[Fri Jun 08 11:47:47 2012] [error] for kind, value, basename, elem in self.split_contents()
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/css.py", line 20, in split_contents
[Fri Jun 08 11:47:47 2012] [error] for elem in self.parser.css_elems():
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:47 2012] [error] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 105, in parser
[Fri Jun 08 11:47:47 2012] [error] return get_class(settings.COMPRESS_PARSER)(self.content)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/__init__.py", line 19, in __init__
[Fri Jun 08 11:47:47 2012] [error] self._setup(content)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/__init__.py", line 28, in _setup
[Fri Jun 08 11:47:47 2012] [error] self._wrapped = parser(content)
[Fri Jun 08 11:47:47 2012] [error] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/lxml.py", line 20, in __init__
[Fri Jun 08 11:47:47 2012] [error] raise ImproperlyConfigured("Error while importing lxml: %s" % err)
[Fri Jun 08 11:47:47 2012] [error] ImproperlyConfigured: Error while importing lxml: No module named BeautifulSoup
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] mod_wsgi (pid=16955): Exception occurred processing WSGI script '/opt/stack/horizon/openstack_dashboard/wsgi/django.wsgi'.
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] Traceback (most recent call last):
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 241, in __call__
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] response = self.get_response(request)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 179, in get_response
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 221, in handle_uncaught_exception
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] return debug.technical_500_response(request, *exc_info)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 66, in technical_500_response
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] html = reporter.get_traceback_html()
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 275, in get_traceback_html
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] c = Context(self.get_traceback_data())
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 233, in get_traceback_data
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] frames = self.get_traceback_frames()
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 387, in get_traceback_frames
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] 'vars': self.filter.get_traceback_frame_variables(self.request, tb.tb_frame),
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/exceptions.py", line 58, in get_traceback_frame_variables
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] func = getattr(tb_frame.f_locals.get('self'), func_name, None)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 120, in cachekey
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] [self.content] + self.mtimes).encode(self.charset), 12)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 114, in mtimes
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] for kind, value, basename, elem in self.split_contents()
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/css.py", line 20, in split_contents
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] for elem in self.parser.css_elems():
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 39, in __get__
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] value = obj.__dict__[self.__name__] = self.__get(obj)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/base.py", line 105, in parser
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] return get_class(settings.COMPRESS_PARSER)(self.content)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/__init__.py", line 19, in __init__
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] self._setup(content)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/__init__.py", line 28, in _setup
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] self._wrapped = parser(content)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] File "/usr/local/lib/python2.7/dist-packages/compressor/parser/lxml.py", line 20, in __init__
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] raise ImproperlyConfigured("Error while importing lxml: %s" % err)
[Fri Jun 08 11:47:47 2012] [error] [client 9.119.148.201] ImproperlyConfigured: Error while importing lxml: No module named BeautifulSoup

Revision history for this message
cloud tester (vish-mailme) wrote :

getting the same exact error with fresh install on devstack on ubuntu

Revision history for this message
Vincent Hou (houshengbo) wrote :

I think this is a blocking issue for horizon. Hope someone can take a look at it ASAP.

Revision history for this message
Chris Sanburn (csanburn) wrote :

How disappointing, I was planning to demo openstack with this tomorrow

Revision history for this message
Chris Sanburn (csanburn) wrote :

For anyone in my situation, who would just like to get Horizon working, I do so by following these steps:

Ran unstack.sh

Edited stackrc and changed the Horizon branch to:
HORIZON_BRANCH=stable/essex

Issued find / -name horizon
Did 'rm -R' on all the horizon folders

Ran stack.sh again

Devin Carlen (devcamcar)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Nebula (nebula)
milestone: none → folsom-2
summary: - Internal Server Error
+ Error while importing lxml: No module named BeautifulSoup
Curtis Hovey (sinzui)
Changed in horizon:
assignee: Registry Administrators (registry) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.