Your message dated Tue, 22 Feb 2022 10:04:19 +0000
with message-id <[email protected]>
and subject line Bug#1003478: fixed in python-django 2:3.2.12-2
has caused the Debian Bug report #1003478,
regarding python-django: cannot import name 'RequestSite' from partially 
initialized module 'django.contrib.sites.requests' (most likely due to a 
circular import)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1003478: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1003478
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-django
Version: 2:2.2.25-1~deb11u1
Severity: important
Tags: patch
X-Debbugs-Cc: [email protected]

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

--- End Message ---
--- Begin Message ---
Source: python-django
Source-Version: 2:3.2.12-2
Done: Chris Lamb <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-django, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lamb <[email protected]> (supplier of updated python-django package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 22 Feb 2022 09:43:02 +0000
Source: python-django
Built-For-Profiles: nocheck
Architecture: source
Version: 2:3.2.12-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Chris Lamb <[email protected]>
Closes: 1003478
Changes:
 python-django (2:3.2.12-2) unstable; urgency=medium
 .
   * Fix a traceback around the handling of RequestSite/get_current_site() due
     to a circular import by backporting commit 78163d1a from upstream. Thanks
     to Raphaƫl Hertzog for the report. (Closes: #1003478)
Checksums-Sha1:
 24cf985503289c6fb68fe1aa0f1eb592c88c2126 2807 python-django_3.2.12-2.dsc
 00c1a457afc4d0a7e88ca1da5e3f454adb3e8082 35528 
python-django_3.2.12-2.debian.tar.xz
 ab11e8292bc2a95d549fe6db4b15b20559245d19 8005 
python-django_3.2.12-2_amd64.buildinfo
Checksums-Sha256:
 9cc641eb300719b10123a6ac6c78c8a4e1672337cf35afd13ad0180b87304cac 2807 
python-django_3.2.12-2.dsc
 9795d910742513634337fa3a4728b8c7018677ba88d1fa627f7a8df5f42f2a94 35528 
python-django_3.2.12-2.debian.tar.xz
 a46fa8944cd43084ea431dce31da80b34c41a99cb7aa1085a004b75656f66bdb 8005 
python-django_3.2.12-2_amd64.buildinfo
Files:
 4b36edd5e4070d0412c3b5c0fa4c544d 2807 python optional 
python-django_3.2.12-2.dsc
 f159124e08a192744bbaac1376e606a7 35528 python optional 
python-django_3.2.12-2.debian.tar.xz
 14770f43724b8443677ea044263fc55d 8005 python optional 
python-django_3.2.12-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAmIUsjQACgkQHpU+J9Qx
HlhY6A//U/Kc7d2ZEoBs3KVZumLh6Z9vkKL0f0WE77QeYBSYCwCIiyUtvYon5ZTK
qJVGz2nTVZiz4bgyGmq4swZQ3W1bnsQ+ct1BKS2LI3Fb2Pru0jrJ7zyUnPJ92kT2
31574fJEbxVE96f7G1kcb/jASeYPKSfsOA32uVviu01Rto9m8/Unz6EaWIHekl2G
CG4Ri1L6PHMHKwPgO+vPil2ZcNDTwmBNF2ocB3XbzVCHzl4DJ2H0Cq+aPRWgdGXE
pYi6ADQFS7cSbL+uWuWunOm94Q8li1ItGdIz7aS2ZLS0gkEbI6fb61joGe81ZPvi
vRHojqxh6NZMoEogxJNWdWCUToVYs0usmDCJ1/TJ8alQSLL4GKyYGywItaXnkMIP
xRGfJvNkQg0JbrkMs3Nd6hceB6VOb9OB1AgPxUjSlCf8lYCuJBCHlo/j34czLHbJ
t0ho3Uoaivl269pml/ifRJM87kva2lmTKGHhcHE+OBvSPl7/yKhGMXpkCFqRx7zy
eZjn8P0d5uPxfp+EaPvHb07d+tbntH5bSTSVUEgVq5Luc/AcGGfkYlKgDZ8WLPdb
8cBIO4N3cUOtIrcWxP7zUnHCYEH27ReDwuIYWArzvXNN0I361kby/HyQBLynXn/o
Cx1o9ro6sGCjoHwM2JmZprQHjE2vxpvBiLoSAhSrxBYm3tpgBbo=
=GWQ4
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to