Public bug reported:

Dashboard is unusable with Ubuntu theme installed. Traceback of the
problem:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 
255, in __call__
    response = self.get_response(request)
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 
178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 
224, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 91, 
in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/defaults.py", line 41, in 
server_error
    return http.HttpResponseServerError(template.render(Context({})))
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in 
render
    return self._render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in 
_render
    return self.nodelist.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 830, in 
render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 844, in 
render_node
    return node.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 
124, in render
    return compiled_parent._render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in 
_render
    return self.nodelist.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 830, in 
render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 844, in 
render_node
    return node.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 
156, in render
    return self.render_template(self.template, context)
  File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 
138, in render_template
    output = template.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in 
render
    return self._render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in 
_render
    return self.nodelist.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 830, in 
render
    bit = self.render_node(node, context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 844, in 
render_node
    return node.render(context)
  File "/usr/lib/python2.7/dist-packages/compressor/templatetags/compress.py", 
line 147, in render
    return self.render_compressed(context, self.kind, self.mode, forced=forced)
  File "/usr/lib/python2.7/dist-packages/compressor/templatetags/compress.py", 
line 101, in render_compressed
    cache_key, cache_content = self.render_cached(compressor, kind, mode, 
forced=forced)
  File "/usr/lib/python2.7/dist-packages/compressor/templatetags/compress.py", 
line 80, in render_cached
    cache_key = get_templatetag_cachekey(compressor, mode, kind)
  File "/usr/lib/python2.7/dist-packages/compressor/cache.py", line 93, in 
get_templatetag_cachekey
    "templatetag.%s.%s.%s" % (compressor.cachekey, mode, kind))
  File "/usr/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 
39, in __get__
    value = obj.__dict__[self.__name__] = self.__get(obj)
  File "/usr/lib/python2.7/dist-packages/compressor/base.py", line 142, in 
cachekey
    [self.content] + self.mtimes).encode(self.charset), 12)
  File "/usr/lib/python2.7/dist-packages/compressor/utils/decorators.py", line 
39, in __get__
    value = obj.__dict__[self.__name__] = self.__get(obj)
  File "/usr/lib/python2.7/dist-packages/compressor/base.py", line 136, in 
mtimes
    for kind, value, basename, elem in self.split_contents()
  File "/usr/lib/python2.7/dist-packages/compressor/js.py", line 19, in 
split_contents
    basename = self.get_basename(attribs['src'])
  File "/usr/lib/python2.7/dist-packages/compressor/base.py", line 75, in 
get_basename
    "compressed" % (url, base_url))
UncompressableFileError: 'horizon/js/horizon.js' isn't accessible via 
COMPRESS_URL ('/static/') and can't be compressed

It looks like this behavior is caused by python-django-compressor. If
one adopts these changes:

https://github.com/ssaboum/django_compressor/commit/d4e38d8c70576f72cff6751cdc84b4b07aeee4a4

the error goes away. Considering these changes haven't been upstreamed
in django-compressor, maybe a better approach would be to fix theme for
the dashboard.

** Affects: horizon (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to horizon in Ubuntu.
https://bugs.launchpad.net/bugs/1214982

Title:
  Ubuntu theme in Havana is broken

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1214982/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to