Public bug reported:
While trying to install openstack-dashboard it failled with the error:
WARNING:root:"dashboards" and "default_dashboard" in (local_)settings is
DEPRECATED now and may be unsupported in some future release. The preferred way
to specify the order of dashboards and the default dashboard is the pluggable
dashboard mechanism (in
/usr/share/openstack-dashboard/openstack_dashboard/enabled,
/usr/share/openstack-dashboard/openstack_dashboard/local/enabled).
Traceback (most recent call last):
File
"/usr/local/lib/python3.6/dist-packages/django/core/management/__init__.py",
line 204, in fetch_command
app_name = commands[subcommand]
KeyError: 'collectstatic'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 25, in <module>
execute_from_command_line(sys.argv)
File
"/usr/local/lib/python3.6/dist-packages/django/core/management/__init__.py",
line 381, in execute_from_command_line
utility.execute()
File
"/usr/local/lib/python3.6/dist-packages/django/core/management/__init__.py",
line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/usr/local/lib/python3.6/dist-packages/django/core/management/__init__.py",
line 211, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.6/dist-packages/django/conf/__init__.py", line
79, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.6/dist-packages/django/conf/__init__.py", line
66, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.6/dist-packages/django/conf/__init__.py", line
157, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line
522, in <module>
XSTATIC_MODULES, HORIZON_CONFIG)
File "/usr/share/openstack-dashboard/openstack_dashboard/utils/settings.py",
line 260, in get_xstatic_dirs
module = import_module(module_name)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'horizon.xstatic'
dpkg: error processing package openstack-dashboard (--configure):
installed openstack-dashboard package post-installation script subprocess
returned error exit status 1
dpkg: dependency problems prevent configuration of
openstack-dashboard-ubuntu-theme:
openstack-dashboard-ubuntu-theme depends on openstack-dashboard (=
3:15.1.1-0ubuntu1.1~cloud0); however:
Package openstack-dashboard is not configured yet.
============
lsb_release -rd
Description: Ubuntu 18.04.3 LTS
Release: 18.04
============
apt-cache policy openstack-dashboard
openstack-dashboard:
Installed: 3:15.1.1-0ubuntu1.1~cloud0
Candidate: 3:15.1.1-0ubuntu1.1~cloud0
Version table:
*** 3:15.1.1-0ubuntu1.1~cloud0 500
500 http://ubuntu-cloud.archive.canonical.com/ubuntu
bionic-updates/stein/main amd64 Packages
100 /var/lib/dpkg/status
3:13.0.2-0ubuntu2 500
500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
3:13.0.0-0ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
** Affects: horizon (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1860894
Title:
openstack-dashboard failed to install because of collectstatic not
found
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1860894/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs