yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #96159
[Bug 2116912] Re: [Caracal] [Offline] [Horizon] - ImportError: cannot import name ‘ugettext_lazy’ from ‘django.utils.translation’
Hi,
This is wrong project to report bug to.
OpenStack-Ansible is a deployment tool, while your report is regarding
the project codebase on itself.
Also, I don't want to reply on behalf of the project, but I believe this
has been already addressed in later versions of Horizon as well.
** Project changed: openstack-ansible => horizon
--
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
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