[PKG-Openstack-devel] Bug#809575: Bug#809575: horizon: FTBFS: ImportError: cannot import name importlib
zigo at debian.org
Mon Jan 18 06:28:40 UTC 2016
On 01/18/2016 11:31 AM, Andreas Beckmann wrote:
> Followup-For: Bug #809575
> I see probably the same problem causing the installation to fail
> in piuparts:
> Setting up openstack-dashboard (2:8.0.0-3) ...
> Warning: Could not import Horizon dependencies. This is normal during installation.
> Traceback (most recent call last):
> File "/usr/share/openstack-dashboard/manage.py", line 25, in <module>
> File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
> File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 302, in execute
> File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 55, in __getattr__
> File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 43, in _setup
> self._wrapped = Settings(settings_module)
> File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 99, in __init__
> mod = importlib.import_module(self.SETTINGS_MODULE)
> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 332, in <module>
> from openstack_dashboard.utils import settings
> File "/usr/share/openstack-dashboard/openstack_dashboard/utils/settings.py", line 18, in <module>
> from django.utils import importlib
> ImportError: cannot import name importlib
> dpkg: error processing package openstack-dashboard (--configure):
> subprocess installed post-installation script returned error exit status 1
Yes, that's the same problem: issues with the new Django 1.9 release.
Though there's a way more than just the issue with importlib. I wrote
about a dozen patches already:
See patches 0040 to 0160 there. Though that's still not enough to have
Horizon to work again against Django 1.9. Upstream is already working on
If anyone wants to help, it'd be more than welcome.
I'll post updates here if I have some, though at the moment, I have to
put this on hold, due to the OpenStack Mitaka beta 2 release.
Thomas Goirand (zigo)
More information about the Openstack-devel