← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1532048] Re: grenade fails setting up horizon with "ImportError: No module named utils" for compressor package

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1532048

Title:
  grenade fails setting up horizon with "ImportError: No module named
  utils" for compressor package

Status in OpenStack Dashboard (Horizon):
  Fix Released
Status in OpenStack Dashboard (Horizon) kilo series:
  Fix Released

Bug description:
  Seen on a stable/liberty change here, so the old side would be setting
  up kilo:

  http://logs.openstack.org/80/256180/1/gate/gate-grenade-
  dsvm/d1909a9/logs/grenade.sh.txt.gz#_2016-01-07_19_40_08_188

  2016-01-07 19:40:08.188 | Traceback (most recent call last):
  2016-01-07 19:40:08.188 |   File "/opt/stack/old/horizon/manage.py", line 23, in <module>
  2016-01-07 19:40:08.188 |     execute_from_command_line(sys.argv)
  2016-01-07 19:40:08.188 |   File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
  2016-01-07 19:40:08.188 |     utility.execute()
  2016-01-07 19:40:08.189 |   File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute
  2016-01-07 19:40:08.189 |     django.setup()
  2016-01-07 19:40:08.189 |   File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 21, in setup
  2016-01-07 19:40:08.189 |     apps.populate(settings.INSTALLED_APPS)
  2016-01-07 19:40:08.189 |   File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
  2016-01-07 19:40:08.189 |     app_config.import_models(all_models)
  2016-01-07 19:40:08.189 |   File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 202, in import_models
  2016-01-07 19:40:08.189 |     self.models_module = import_module(models_module_name)
  2016-01-07 19:40:08.189 |   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
  2016-01-07 19:40:08.196 |     __import__(name)
  2016-01-07 19:40:08.196 |   File "/usr/local/lib/python2.7/dist-packages/compressor/models.py", line 1, in <module>
  2016-01-07 19:40:08.196 |     from compressor.conf import CompressorConf  # noqa
  2016-01-07 19:40:08.196 |   File "/usr/local/lib/python2.7/dist-packages/compressor/conf.py", line 5, in <module>
  2016-01-07 19:40:08.196 |     from django.template.utils import InvalidTemplateEngineError
  2016-01-07 19:40:08.196 | ImportError: No module named utils

  Looks like this is probably due to django_compressor 2.0 released
  today breaking all branches:

  https://pypi.python.org/pypi/django_compressor/2.0

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


References