zun-ui installation stein

Bug #1862880 reported by Pyjou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun UI
New
Undecided
Unassigned

Bug Description

Hi,

I follow the installation steps from documentation : https://docs.openstack.org/zun-ui/stein/install/index.html. And I have an error when I restart apache2 (I got 500 error).

In apache2's logs, I found this error :

mod_wsgi (pid=38545): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py' cannot be loaded as Python module.
 mod_wsgi (pid=38545): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'.
 Traceback (most recent call last):
   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py", line 29, in <module>
     application = get_wsgi_application()
   File "/usr/local/lib/python3.6/dist-packages/django/core/wsgi.py", line 12, in get_wsgi_application
     django.setup(set_prefix=False)
   File "/usr/local/lib/python3.6/dist-packages/django/__init__.py", line 19, in setup
     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
   File "/usr/local/lib/python3.6/dist-packages/django/conf/__init__.py", line 56, in __getattr__
     self._setup(name)
   File "/usr/local/lib/python3.6/dist-packages/django/conf/__init__.py", line 43, in _setup
     self._wrapped = Settings(settings_module)
   File "/usr/local/lib/python3.6/dist-packages/django/conf/__init__.py", line 106, 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/lib/python3/dist-packages/openstack_dashboard/settings.py", line 511, in <module>
     INSTALLED_APPS,
   File "/usr/lib/python3/dist-packages/openstack_dashboard/utils/settings.py", line 133, in update_dashboards
     module = import_module(_app)
   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 953, in _find_and_load_unlocked
 ModuleNotFoundError: No module named 'zun_ui'

Also, when i try to execute python3 manage.py compress I have an error :

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/django/template/utils.py", line 64, in __getitem__
    return self._engines[alias]
KeyError: 'django'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/django/template/backends/django.py", line 121, in get_package_libraries
    module = import_module(entry[1])
  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/templatetags/context_selection.py", line 20, in <module>
    from openstack_dashboard.api import keystone
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/__init__.py", line 38, in <module>
    from openstack_dashboard.api import network
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/network.py", line 23, in <module>
    from openstack_dashboard.api import neutron
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/neutron.py", line 39, in <module>
    from openstack_dashboard.api import nova
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/nova.py", line 33, in <module>
    from novaclient.v2 import list_extensions as nova_list_extensions
ImportError: cannot import name 'list_extensions'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/openstack-dashboard/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 371, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.6/dist-packages/django/core/management/__init__.py", line 365, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.6/dist-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.6/dist-packages/django/core/management/base.py", line 335, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python3/dist-packages/compressor/management/commands/compress.py", line 307, in handle
    self.compress(**opts)
  File "/usr/lib/python3/dist-packages/compressor/management/commands/compress.py", line 111, in compress
    if not self.get_loaders():
  File "/usr/lib/python3/dist-packages/compressor/management/commands/compress.py", line 60, in get_loaders
    for e in engines.all():
  File "/usr/local/lib/python3.6/dist-packages/django/template/utils.py", line 88, in all
    return [self[alias] for alias in self]
  File "/usr/local/lib/python3.6/dist-packages/django/template/utils.py", line 88, in <listcomp>
    return [self[alias] for alias in self]
  File "/usr/local/lib/python3.6/dist-packages/django/template/utils.py", line 79, in __getitem__
    engine = engine_cls(params)
  File "/usr/local/lib/python3.6/dist-packages/django/template/backends/django.py", line 25, in __init__
    options['libraries'] = self.get_templatetag_libraries(libraries)
  File "/usr/local/lib/python3.6/dist-packages/django/template/backends/django.py", line 43, in get_templatetag_libraries
    libraries = get_installed_libraries()
  File "/usr/local/lib/python3.6/dist-packages/django/template/backends/django.py", line 108, in get_installed_libraries
    for name in get_package_libraries(pkg):
  File "/usr/local/lib/python3.6/dist-packages/django/template/backends/django.py", line 125, in get_package_libraries
    "trying to load '%s': %s" % (entry[1], e)
django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'openstack_dashboard.templatetags.context_selection': cannot import name 'list_extensions'

To solve this error I just execute :
sudo pip3 install -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/stein -r https://raw.githubusercontent.com/openstack/horizon/stable/stein/requirements.txt

Pip change the version of python-novaclient from 16.0.0 to 13.0.2 and I can compress after. But I got the first error after apache2 restart.

Openstack Stein on Ubunutu 18.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.