yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #75648
[Bug 1801153] Re: install openstack-dashboard on ubuntu 18.04 gets error ImportError: No module named escape
It's not an upstream Horizon bug
** Project changed: horizon => ubuntu-ubuntu-server
--
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/1801153
Title:
install openstack-dashboard on ubuntu 18.04 gets error ImportError: No
module named escape
Status in Ubuntu Server:
New
Bug description:
ubuntu 18.04 OpenStack Rocky gets the error: ImportError: No module
named escape
sudo apt install openstack-dashboard
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
openstack-dashboard-common python-csscompressor python-django-appconf python-django-babel python-django-compressor python-django-horizon python-django-openstack-auth
python-django-pyscss python-heatclient python-pathlib python-pint python-pyscss python-rcssmin python-rjsmin
Suggested packages:
python-django-appconf-doc python-django-babel-doc
The following NEW packages will be installed:
openstack-dashboard openstack-dashboard-common python-csscompressor python-django-appconf python-django-babel python-django-compressor python-django-horizon
python-django-openstack-auth python-django-pyscss python-heatclient python-pathlib python-pint python-pyscss python-rcssmin python-rjsmin
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/10.0 MB of archives.
After this operation, 59.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package python-csscompressor.
(Reading database ... 239529 files and directories currently installed.)
Preparing to unpack .../00-python-csscompressor_0.9.4-2_all.deb ...
Unpacking python-csscompressor (0.9.4-2) ...
Selecting previously unselected package python-django-babel.
Preparing to unpack .../01-python-django-babel_0.6.2-1_all.deb ...
Unpacking python-django-babel (0.6.2-1) ...
Selecting previously unselected package python-django-appconf.
Preparing to unpack .../02-python-django-appconf_1.0.2-3_all.deb ...
Unpacking python-django-appconf (1.0.2-3) ...
Selecting previously unselected package python-rcssmin.
Preparing to unpack .../03-python-rcssmin_1.0.6-1ubuntu3_amd64.deb ...
Unpacking python-rcssmin (1.0.6-1ubuntu3) ...
Selecting previously unselected package python-rjsmin.
Preparing to unpack .../04-python-rjsmin_1.0.12+dfsg1-2ubuntu3_amd64.deb ...
Unpacking python-rjsmin (1.0.12+dfsg1-2ubuntu3) ...
Selecting previously unselected package python-django-compressor.
Preparing to unpack .../05-python-django-compressor_2.2-4_all.deb ...
Unpacking python-django-compressor (2.2-4) ...
Selecting previously unselected package python-pathlib.
Preparing to unpack .../06-python-pathlib_1.0.1-2_all.deb ...
Unpacking python-pathlib (1.0.1-2) ...
Selecting previously unselected package python-pyscss.
Preparing to unpack .../07-python-pyscss_1.3.5-2build2_amd64.deb ...
Unpacking python-pyscss (1.3.5-2build2) ...
Selecting previously unselected package python-django-pyscss.
Preparing to unpack .../08-python-django-pyscss_2.0.2-8_all.deb ...
Unpacking python-django-pyscss (2.0.2-8) ...
Selecting previously unselected package python-heatclient.
Preparing to unpack .../09-python-heatclient_1.14.0-0ubuntu1_all.deb ...
Unpacking python-heatclient (1.14.0-0ubuntu1) ...
Selecting previously unselected package python-pint.
Preparing to unpack .../10-python-pint_0.8.1-2_all.deb ...
Unpacking python-pint (0.8.1-2) ...
Selecting previously unselected package openstack-dashboard-common.
Preparing to unpack .../11-openstack-dashboard-common_3%3a14.0.0-0ubuntu4~cloud0_all.deb ...
Unpacking openstack-dashboard-common (3:14.0.0-0ubuntu4~cloud0) ...
Selecting previously unselected package python-django-openstack-auth.
Preparing to unpack .../12-python-django-openstack-auth_3%3a14.0.0-0ubuntu4~cloud0_all.deb ...
Unpacking python-django-openstack-auth (3:14.0.0-0ubuntu4~cloud0) ...
Selecting previously unselected package python-django-horizon.
Preparing to unpack .../13-python-django-horizon_3%3a14.0.0-0ubuntu4~cloud0_all.deb ...
Unpacking python-django-horizon (3:14.0.0-0ubuntu4~cloud0) ...
Selecting previously unselected package openstack-dashboard.
Preparing to unpack .../14-openstack-dashboard_3%3a14.0.0-0ubuntu4~cloud0_all.deb ...
Unpacking openstack-dashboard (3:14.0.0-0ubuntu4~cloud0) ...
Setting up python-django-appconf (1.0.2-3) ...
Setting up python-rcssmin (1.0.6-1ubuntu3) ...
Setting up openstack-dashboard-common (3:14.0.0-0ubuntu4~cloud0) ...
Setting up python-rjsmin (1.0.12+dfsg1-2ubuntu3) ...
Setting up python-heatclient (1.14.0-0ubuntu1) ...
update-alternatives: using /usr/bin/python2-heat to provide /usr/bin/heat (heat) in auto mode
Setting up python-django-babel (0.6.2-1) ...
Setting up python-pint (0.8.1-2) ...
Setting up python-csscompressor (0.9.4-2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up python-pathlib (1.0.1-2) ...
Setting up python-pyscss (1.3.5-2build2) ...
update-alternatives: using /usr/bin/python2-pyscss to provide /usr/bin/pyscss (pyscss) in auto mode
update-alternatives: using /usr/bin/python2-less2scss to provide /usr/bin/less2scss (less2scss) in auto mode
Setting up python-django-compressor (2.2-4) ...
Setting up python-django-pyscss (2.0.2-8) ...
Setting up python-django-openstack-auth (3:14.0.0-0ubuntu4~cloud0) ...
Setting up python-django-horizon (3:14.0.0-0ubuntu4~cloud0) ...
update-alternatives: using /usr/lib/python2.7/dist-packages/openstack_dashboard to provide /usr/share/openstack-dashboard/openstack_dashboard (openstack_dashboard) in auto mode
Setting up openstack-dashboard (3:14.0.0-0ubuntu4~cloud0) ...
Adding system user `horizon' (UID 124) ...
Adding new user `horizon' (UID 124) with group `horizon' ...
Not creating home directory `/var/lib/openstack-dashboard'.
Collecting and compressing static assets...
Traceback (most recent call last):
File "manage.py", line 25, in <module>
execute_from_command_line(sys.argv)
File "/home/scamallra/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/home/scamallra/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 308, in execute
settings.INSTALLED_APPS
File "/home/scamallra/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/home/scamallra/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/home/scamallra/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 28, in <module>
from horizon.utils.escape import monkeypatch_escape
ImportError: No module named escape
dpkg: error processing package openstack-dashboard (--configure):
installed openstack-dashboard package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
openstack-dashboard
E: Sub-process /usr/bin/dpkg returned an error code (1)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ubuntu-server/+bug/1801153/+subscriptions
References