Bug 2187604

Summary: python3-django-haystack 3.0 is incompatible to python3-django 4.0.2 because of from django.utils.translation import ungettext
Product: [Fedora] Fedora Reporter: Peter Bieringer <pb>
Component: python-django-haystackAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 38CC: aekoroglu, michel, mrunge, sgallagh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-django-haystack-3.2.1-1.fc37 python-django-haystack-3.2.1-1.fc38 python-django-haystack-3.2.1-1.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-03 01:10:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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

Comment 1 Michel Lind 2023-10-26 16:31:47 UTC
Taking this bug - we are getting mailman's web apps packaged in EPEL 9, and while it currently has Django 3.2, at some point next year we need to get Django 4.2 in EPEL so this needs to get fixed anyway.

Comment 2 Fedora Update System 2023-10-26 20:11:26 UTC
FEDORA-2023-a0ce282fa5 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a0ce282fa5

Comment 3 Fedora Update System 2023-10-26 20:11:29 UTC
FEDORA-2023-91d27b1151 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-91d27b1151

Comment 4 Fedora Update System 2023-10-26 20:11:33 UTC
FEDORA-2023-4a24dc8280 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4a24dc8280

Comment 5 Fedora Update System 2023-10-27 01:20:25 UTC
FEDORA-2023-4a24dc8280 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-4a24dc8280`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-4a24dc8280

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2023-10-27 02:15:20 UTC
FEDORA-2023-91d27b1151 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-91d27b1151`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-91d27b1151

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-10-27 02:18:11 UTC
FEDORA-2023-a0ce282fa5 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-a0ce282fa5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a0ce282fa5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-11-03 01:10:24 UTC
FEDORA-2023-a0ce282fa5 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2023-11-03 01:27:36 UTC
FEDORA-2023-4a24dc8280 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2023-11-03 18:47:31 UTC
FEDORA-2023-91d27b1151 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Peter Bieringer 2023-11-19 17:22:12 UTC
(In reply to Michel Lind from comment #1)
> Taking this bug - we are getting mailman's web apps packaged in EPEL 9, and
> while it currently has Django 3.2, at some point next year we need to get
> Django 4.2 in EPEL so this needs to get fixed anyway.

Good plan for mailman3, but can be a challenge, but you can take hints from here how to circumvent this in the meanwhile by using USER_SITE mechanism: https://github.com/pbiering/mailman3-rpm/