Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation #94

Open
krishnaansh opened this issue Feb 25, 2023 · 7 comments

Comments

@krishnaansh
Copy link

ugettext_lazy its depricated in django 3 + please update the latest release that support django 4+

@geoffreynyaga
Copy link

For now, use this workaround.

#91 (comment)

Hoping this gets resolved too, as it breaks new projects and deployments and needs customizing CI pipelines

@saurav-codes
Copy link

I also facing this error.😟

@makiisthenes
Copy link

from django.utils.translation import gettext_lazy as _

I think a rewrite is needed for newer versions of Django

@gusir22
Copy link

gusir22 commented Aug 26, 2023

For now, use this workaround.

#91 (comment)

Hoping this gets resolved too, as it breaks new projects and deployments and needs customizing CI pipelines

Its the end of August and this is still a present issue. I was really hoping to add this package to my django 4 project.

@gusir22
Copy link

gusir22 commented Aug 26, 2023

For now, use this workaround.
#91 (comment)
Hoping this gets resolved too, as it breaks new projects and deployments and needs customizing CI pipelines

Its the end of August and this is still a present issue. I was really hoping to add this package to my django 4 project.

I was able to find an updated version, use 'pip install django-admin-honeypot-updated-2021' instead for django 4 projects

@sarthak09walia
Copy link

You can manually update the existing lines by

from django.utils.translation import gettext_lazy as _

there will be one more error of

honeypot = Signal(providing_args=['instance', 'request'])
TypeError: Signal.__init__() got an unexpected keyword argument 'providing_args'

just remove the "providing_args=['instance', 'request']"

@colehorvitz
Copy link

colehorvitz commented Jan 29, 2024

Has this repository been abandoned? It's been two years since this issue was originally reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants