Bug 2187604 - python3-django-haystack 3.0 is incompatible to python3-django 4.0.2 because of from django.utils.translation import ungettext
Summary: python3-django-haystack 3.0 is incompatible to python3-django 4.0.2 because o...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-django-haystack
Version: 38
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Ali Erdinc Koroglu
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-18 06:42 UTC by Peter Bieringer
Modified: 2023-04-18 06:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Peter Bieringer 2023-04-18 06:42:08 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Build Identifier: 

F38 contains

python3-django.noarch 4.0.2-6.fc37 @fedora
python3-django-haystack.noarch 3.0-0.1.b2.fc38.9 @fedora

This combination is incompatible:

  File "/usr/lib/python3.11/site-packages/haystack/admin.py", line 8, in <module>
    from django.utils.translation import ungettext
ImportError: cannot import name 'ungettext' from 'django.utils.translation' (/usr/lib/python3.11/site-packages/django/utils/translation/__init__.py)

caused by 
File: /usr/lib/python3.11/site-packages/haystack/admin.py

...
from django.utils.translation import ungettext
...


Note that django-haystack 3.2.1 does not contain such import statement

...
from django.utils.translation import ngettext
...

Hopefully solved by update to a newer version 
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=1998373

BTW: issue was found during packaging mailman3 3.3.8


Reproducible: Always

Steps to Reproduce:
1. try to use django-haystack python module


Note You need to log in before you can comment on or make changes to this bug.