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-haystack | Assignee: | Michel Lind <michel> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 38 | CC: | 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: | |||
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. FEDORA-2023-a0ce282fa5 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a0ce282fa5 FEDORA-2023-91d27b1151 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-91d27b1151 FEDORA-2023-4a24dc8280 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4a24dc8280 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. 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. 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. 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. 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. 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. (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/ |
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