certsocietegenerale/FIR

Error on building using docker compose (cannot import name 'ugettext_lazy' from 'django.utils.translation')

dante-asriel-price opened this issue · 3 comments

Trying to stand up FIR on Ubuntu 22.04 and when it gets to app/incidents/models.py I get the error shown below
File "/app/incidents/models.py", line 8, in
from django.utils.translation import ugettext_lazy as _
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/app/venv/lib/python3.8/site-packages/django/utils/translation/init.py)

EDIT: I downloaded the latest release from the github page

Hi,

Seems that you are NOT using the latest version

ugettext_lazy was removed from incidents/models.py, line 8 during January 2022

Could you please try to get the latest version and see if it works?

Edit : I get what you mean, you downloaded FIR from the GitHub release page. A new release will be made soon

Should be good now. Could you download the latest release and retry?

I will close this issue. Feel free to reopen it if needed