← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2116912] [NEW] [Caracal] [Offline] [Horizon] - ImportError: cannot import name ‘ugettext_lazy’ from ‘django.utils.translation’

 

You have been subscribed to a public bug:

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.
```

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
[Caracal] [Offline] [Horizon] - ImportError: cannot import name ‘ugettext_lazy’ from ‘django.utils.translation’
https://bugs.launchpad.net/bugs/2116912
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).