ugettext_lazy deprecated leads to venus-dashboard deploy err

Bug #2055020 reported by Wenping Song
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-venus
New
Undecided
Wenping Song

Bug Description

The error info is as follows:
-------------------
$ /usr/bin/python3.10 /opt/stack/horizon/manage.py collectstatic --noinput
/opt/stack/horizon/openstack_dashboard/local/enabled/_4050_admin_venus_panel_group.py:6: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  PANEL_GROUP_NAME = _('Venus')
Traceback (most recent call last):
  File "/opt/stack/horizon/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/__init__.py", line 395, in execute
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.10/dist-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/local/lib/python3.10/dist-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.10/dist-packages/django/apps/registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
  File "/usr/local/lib/python3.10/dist-packages/django/apps/config.py", line 224, in create
    import_module(entry)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/opt/stack/horizon/openstack_dashboard/django_pyscss_fix/__init__.py", line 30, in <module>
    scss_asset_root = os.path.join(settings.STATIC_ROOT, 'scss', 'assets')
  File "/usr/lib/python3.10/posixpath.py", line 76, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Wenping Song (wenping1)
Changed in openstack-venus:
assignee: nobody → Wenping Song (wenping1)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/venus-dashboard 4.0.0.0rc1

This issue was fixed in the openstack/venus-dashboard 4.0.0.0rc1 release candidate.

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.