Error installing Horizon

Daniel Mellado dmellado at redhat.com
Thu Oct 22 12:45:48 UTC 2020


Not really an horizon expert, but it looks like you overwrote some 
horizon stuff now it's complaining.


On 22/10/20 12:43, Cristina Mayo wrote:
> Hi,
> 
> I installed Horizon on my Openstack Ussuri cloud and it has worked fine 
> for some months. A few days ago,  I had some trouble with python 
> packages (I updated some dependencies by error). I'm trying to reinstall 
> Horizon because it fails  but it seems almost  impposible to me:
> 
> # apt install  openstack-dashboard
Just remove the dashboard completely and reinstall it.

> Configuring openstack-dashboard (3:18.3.2-0ubuntu0.20.04.2) ...
> 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).
> Traceback (most recent call last):
>    File 
> "/usr/lib/python3/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/lib/python3/dist-packages/django/core/management/__init__.py", 
> line 381, in execute_from_command_line
>      utility.execute()
>    File 
> "/usr/lib/python3/dist-packages/django/core/management/__init__.py", 
> line 375, in execute
>      self.fetch_command(subcommand).run_from_argv(self.argv)
>    File 
> "/usr/lib/python3/dist-packages/django/core/management/__init__.py", 
> line 211, in fetch_command
>      settings.INSTALLED_APPS
>    File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 
> 79, in __getattr__
>      self._setup(name)
>    File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 
> 66, in _setup
>      self._wrapped = Settings(settings_module)
>    File "/usr/lib/python3/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 783, 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'
It can't find the horizon.xstatic module, so as I said, either you 
reinstall that or just use pip and install the horizon ussuri version, 
but I'd remove all the installed packages related the dashboard first in 
any case or you'll most likely end up in a mess...
> *dpkg:* error to process package openstack-dashboard (--configure)
> *E: *Sub-process /usr/bin/dpkg returned an error code (1)
> 
> Thanks in advance,
> Best
> 




More information about the openstack-discuss mailing list