yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #96164
[Bug 2116912] Re: [Caracal] [Offline] [Horizon] - ImportError: cannot import name ‘ugettext_lazy’ from ‘django.utils.translation’
I see the usage of ugettext_lazy in local_settings, generated by
openstack-ansible, was very recently fixed by
https://github.com/openstack/openstack-ansible-
os_horizon/commit/a57aeff9385da173dbea6a16ee8e880c432f4455 .
The change hasn't been backported to 2024.1 and I suspect this is the
cause. Please check the local_settings file. If you find usage of
ugettext_lazy and rpelacing it resolves the warning then this is
actually an issue with openstack-ansible, rather than horizon.
** Also affects: openstack-ansible
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/2116912
Title:
[Caracal] [Offline] [Horizon] - ImportError: cannot import name
‘ugettext_lazy’ from ‘django.utils.translation’
Status in OpenStack Dashboard (Horizon):
New
Status in OpenStack-Ansible:
New
Bug description:
Dear Team,
+++++
ISSUE
+++++
I have deployed 2024.1 in an offline mode, Deployment went well,
everything looks perfectly fine, however, Whenever I am trying to
access anything from Horizon dashboard, I can see the below logs on
``controller nodes``
This is not blocking any functionlaity, just a slowness while first
time logging into the dashboard, It tooks almost 30 sec to get loged
in.
+++++
ERROR
+++++
```
ImportError: cannot import name ‘ugettext_lazy’ from ‘django.utils.translation’
```
++++++
IMPACT
++++++
Its not impacting the behaviour, althought this needs to be fixed,
b'coz you will see this messages every often and then.
++++++++
ANALYSIS
++++++++
Caracal is deploying `django` with below versions,
```
Django 4.2.10
django-appconf 1.0.6
django-compressor 4.4
django-debreach 2.1.0
django-pyscss 2.0.3
```
**NOTE:** `ugettext_lazy` was deprecated in v2.2 and no longer used in
django v3+.
Reference: https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-4-0
```
django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy() will be removed.
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2116912/+subscriptions