Source: python-django Version: 2:2.2.25-1~deb11u1 Severity: important Tags: patch X-Debbugs-Cc: hert...@debian.org
Hello, Ever since we upgraded tracker.debian.org to Debian 11, I started to get occasional failures like shown in the traceback below. File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py" in inner 34. response = get_response(request) File "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in _get_response 115. response = self.process_exception_by_middleware(e, request) File "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in _get_response 113. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python3/dist-packages/django/contrib/syndication/views.py" in __call__ 39. feedgen = self.get_feed(obj, request) File "/usr/lib/python3/dist-packages/django/contrib/syndication/views.py" in get_feed 127. current_site = get_current_site(request) File "/usr/lib/python3/dist-packages/django/contrib/sites/shortcuts.py" in get_current_site 15. from .requests import RequestSite Exception Type: ImportError at /pkg/gdb/rss Exception Value: cannot import name 'RequestSite' from partially initialized module 'django.contrib.sites.requests' (most likely due to a circular import) (/usr/lib/python3/dist-packages/django/contrib/sites/requests.py) I filed this upstream at https://code.djangoproject.com/ticket/33420 and I was told that this has been fixed recently in the main branch with this commit: https://code.djangoproject.com/changeset/78163d1ac4407d59bfc5fdf1f84f2dbbb2ed3443/ But this has not been backported to older branches and it would be nice to see this fixed in Debian stable (and bullseye-backport for 3.2) for the benefit of tracker.debian.org and other Django packaged applications. Cheers, -- System Information: Debian Release: bookworm/sid APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.15.0-2-amd64 (SMP w/16 CPU threads) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled