django-admin-honeypot icon indicating copy to clipboard operation
django-admin-honeypot copied to clipboard

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

Open krishnaansh opened this issue 1 year ago • 7 comments

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

krishnaansh avatar Feb 25 '23 13:02 krishnaansh

For now, use this workaround.

https://github.com/dmpayton/django-admin-honeypot/issues/91#issuecomment-1247269152

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

geoffreynyaga avatar Mar 15 '23 10:03 geoffreynyaga

I also facing this error.😟

saurav-codes avatar Apr 07 '23 17:04 saurav-codes

from django.utils.translation import gettext_lazy as _

I think a rewrite is needed for newer versions of Django

makiisthenes avatar Jun 16 '23 15:06 makiisthenes

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 avatar Aug 26 '23 01:08 gusir22

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

gusir22 avatar Aug 26 '23 01:08 gusir22

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']"

sarthak09walia avatar Nov 05 '23 06:11 sarthak09walia

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

colehorvitz avatar Jan 29 '24 15:01 colehorvitz