ImportError: No module named compressor

Bug #1030928 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
horizon (Ubuntu)
New
High
Unassigned

Bug Description

After working around bug #1030911 by moving /usr/bin/glance aside, then using dpkg -i --force-overwrites to install python-glanceclient and then putting glance back, I ran into bug #1017765. After applying the patch in bug #1017765 into /usr directly like I did with nova and keystone, I get a bit farther, and now see the following traceback:
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] mod_wsgi (pid=1758): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] Traceback (most recent call last):
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 241, in __call__
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] response = self.get_response(request)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 179, in get_response
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 224, in handle_uncaught_exception
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] if resolver.urlconf_module is None:
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 323, in urlconf_module
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] self._urlconf_module = import_module(self.urlconf_name)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] __import__(name)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/urls.py", line 35, in <module>
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] url(r'', include(horizon.urls)))
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/conf/urls/__init__.py", line 25, in include
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 184, in inner
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] self._setup()
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 248, in _setup
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] self._wrapped = self._setupfunc()
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/horizon/base.py", line 745, in url_patterns
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] return self._urls()[0]
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/horizon/base.py", line 751, in _urls
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] urlpatterns = self._get_default_urlpatterns()
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/horizon/base.py", line 92, in _get_default_urlpatterns
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] mod = import_module(self.urls)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] __import__(name)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/horizon/site_urls.py", line 25, in <module>
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] from horizon.views.auth import LoginView
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/horizon/views/auth.py", line 36, in <module>
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] from horizon.views.auth_forms import Login, LoginWithTenant, _set_session_data
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/horizon/views/auth_forms.py", line 55, in <module>
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] class Login(forms.SelfHandlingForm):
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/horizon/views/auth_forms.py", line 64, in Login
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] region = forms.ChoiceField(label=_("Region"), required=False)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/utils/translation/__init__.py", line 86, in ugettext
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] return _trans.ugettext(message)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 278, in ugettext
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] return do_translate(message, 'ugettext')
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 268, in do_translate
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] _default = translation(settings.LANGUAGE_CODE)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 183, in translation
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] default_translation = _fetch(settings.LANGUAGE_CODE)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 160, in _fetch
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] app = import_module(appname)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] __import__(name)
[Mon Jul 30 16:47:38 2012] [error] [client 192.168.122.1] ImportError: No module named compressor

affects: python-glanceclient (Ubuntu) → horizon (Ubuntu)
description: updated
summary: - AttributeError: 'module' object has no attribute 'urls'
+ ImportError: No module named compressor
Revision history for this message
Jamie Strandboge (jdstrand) wrote :
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Workaround seems to be (but this is obviously outside of package management):
$ pip install django_compressor

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

That works but there is more that is going to have to be done to use the compressor module as there are a lot of other errors in error.log.

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.