[openstack-victoria] [horizon] issue when installing openstack dashboard Module not found
Swogat Pradhan
swogatpradhan22 at gmail.com
Mon Jul 12 10:42:40 UTC 2021
Hi,
I am trying to install openstack dashboard but am getting an error
stating ModuleNotFoundError: No module named 'horizon.xstatic'.
Can someone suggest a way forward for this?
*lsb_release -rd:*
Description: Ubuntu 20.04.2 LTS
Release: 20.04
*apt-cache policy openstack-dashboard:*
openstack-dashboard:
Installed: 4:18.6.2-0ubuntu1~cloud0
Candidate: 4:18.6.2-0ubuntu1~cloud0
Version table:
*** 4:18.6.2-0ubuntu1~cloud0 500
500 http://ubuntu-cloud.archive.canonical.com/ubuntu
focal-updates/victoria/main amd64 Packages
100 /var/lib/dpkg/status
3:18.3.3-0ubuntu1 500
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
Packages
3:18.3.2-0ubuntu0.20.04.4 500
500 http://archive.ubuntu.com/ubuntu focal-security/main amd64
Packages
3:18.2.1~git2020041013.754804667-0ubuntu3 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
With regards,
Swogat Pradhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210712/bb0c9390/attachment.html>
-------------- next part --------------
Setting up python3-django-horizon (4:18.6.2-0ubuntu1~cloud0) ...
Setting up openstack-dashboard (4:18.6.2-0ubuntu1~cloud0) ...
Collecting and compressing static assets...
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).
/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
Traceback (most recent call last):
File "/usr/local/lib/python3.8/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.8/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/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.8/dist-packages/django/core/management/__init__.py", line 211, in fetch_command
settings.INSTALLED_APPS
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 79, in __getattr__
self._setup(name)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 66, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.8/dist-packages/django/conf/__init__.py", line 157, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 352, in <module>
STATICFILES_DIRS += settings_utils.get_xstatic_dirs(
File "/usr/share/openstack-dashboard/openstack_dashboard/utils/settings.py", line 288, in get_xstatic_dirs
module = import_module(module_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, 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
Errors were encountered while processing:
openstack-dashboard
E: Sub-process /usr/bin/dpkg returned an error code (1)
More information about the openstack-discuss
mailing list