#1149414 django-polymorphic: FTBFS: AttributeError: module 'guardian' has no attribute 'VERSION'

#1149414#5
Date:
2026-09-29 22:19:16 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202609/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:django-polymorphic, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
        exec(code, namespace)  # NoQA: S102
        ~~~~^^^^^^^^^^^^^^^^^
      File "/<<PKGBUILDDIR>>/docs/conf.py", line 307, in <module>
        v=".".join(map(str, guardian.VERSION))
                            ^^^^^^^^^^^^^^^^
    AttributeError: module 'guardian' has no attribute 'VERSION'


The full traceback has been saved in:
/tmp/sphinx-err-xte6g0he.log

To report this error to the developers, please open an issue at <https://github.com/sphinx-doc/sphinx/issues/>. Thanks!
Please also report this if it was a user error, so that a better error message can be provided next time.
make[1]: *** [debian/rules:23: execute_before_dh_sphinxdoc] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:16: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1149414#8
Date:
2026-09-30 13:27:52 UTC
From:
To:
Hello,

Bug #1149414 in django-polymorphic reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/django-polymorphic/-/commit/ce469f292b3e00b04ea291f40ce5a1f9c05274c6
------------------------------------------------------------------------
Fix version detection for django-guardian >= 3.0.0

Closes: #1149414
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1149414

#1149414#15
Date:
2026-09-30 13:50:24 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
django-polymorphic, 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 1149414@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated django-polymorphic 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 30 Sep 2026 14:21:53 +0100
Source: django-polymorphic
Architecture: source
Version: 4.11.7-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1149414
Changes:
 django-polymorphic (4.11.7-2) unstable; urgency=medium
 .
   * Team upload.
   * Fix version detection for django-guardian >= 3.0.0 (closes: #1149414).
Checksums-Sha1:
 9e8e5586b62af560159bb1a846e7b28a16acb50e 3091 django-polymorphic_4.11.7-2.dsc
 ca705f16a01cd929a2beb27e9d263005138cc411 9992 django-polymorphic_4.11.7-2.debian.tar.xz
 f13f47ca2ceb78a286b89bad4bc766fc78b8e031 904264 django-polymorphic_4.11.7-2.git.tar.xz
 6b3141c84b859ad3b73bb988f3b5d887e1c97ee6 17772 django-polymorphic_4.11.7-2_source.buildinfo
Checksums-Sha256:
 541e22726cc5fd4cc241a7df4e495b0107f34d82e943918d24ebb56780f32357 3091 django-polymorphic_4.11.7-2.dsc
 31e20ed27d703a63d3c9daa32949d5e4731dae6a0505a90b39c2fa511bfd2ccf 9992 django-polymorphic_4.11.7-2.debian.tar.xz
 841bb0415487b2a060f6d64d62dc2c277188cca929ae95cfa774a3c8836de13b 904264 django-polymorphic_4.11.7-2.git.tar.xz
 022f4725ebbd4ec51c2ac0c6e9cfe1f7568f4170b587839078bbbaa19b90a116 17772 django-polymorphic_4.11.7-2_source.buildinfo
Files:
 65791b0a7450a647ed8f7d60a8b13373 3091 python optional django-polymorphic_4.11.7-2.dsc
 cf7308a1ebbdc5b8df557a95ce159620 9992 python optional django-polymorphic_4.11.7-2.debian.tar.xz
 6edc9a93b9cc36d2e59e1fff22f779de 904264 python optional django-polymorphic_4.11.7-2.git.tar.xz
 494281ebfc8d53dd4886b12e0138bd01 17772 python optional django-polymorphic_4.11.7-2_source.buildinfo
Git-Tag-Info: tag=c90481204f358f1bbb899095cbc077559db65593 fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmq9DpYACgkQYG0ITkaD
wHmcgg//Vy4BC25ArpvHcnpH4XBOvfXM1MaHGZLkFtixr6db/Xm8n9Ytte8SjAns
AtyrDzaakofDA4YzlcQbJOjTwoM+Szij1cb8X1nWebUyUy+al92uiYkpylNYCwvV
6zT7YKcmNXklmLKhsmbU6l5Wjl4mu923xdcGEKFKNW0ifv0bwOBiBJtH5odMTWVv
wxJh/iHE/gJyUjlUpeY0teZc3QXtHo4kInA3gDIpV7a728Z2rIO/IPRJF1EyGcIv
NT0LXDL7pqMEybcRFpCPwzaQ9hJrEiZHaA6Sa+NfkcVomul+3u941kJEkHVj3yEn
fTXDjflDKdYD4lLPbi5pi4DHm3OlIozs9SnuIJjOg/fdz3XA5LaUjZXJAxMc3UaS
NWDJzZIPjqw/Fe3s3haLvyW0PQdrFnj5BBGT5+hD8O4FGV1sK8UXE3v0VM8pBf2H
lDk5E2dHo538SRoD/C+nHtecIgHVWvqE2ZlSXF7vB3jBDjRu8xY2tJh88Kp5qFMd
he5x1Y0xeoaovLmt+dbwiXqIQxLzL7b35rZ1BbMAXf6tkCeKDM77P5SlDICXOS4w
y7GhxQisUqWQTh7N51ukuA5SiPUB+Zbqih2bc0R/0d9B0YbwQdGEzladD6aa9C1r
52jQNnWC5/djetaM6yUMudxjzk7V8B8VvZaDGwSmiKrGm5uttRo=
=VQRO
-----END PGP SIGNATURE-----