#1149172 drf-haystack: FTBFS: ModuleNotFoundError: No module named 'pytz'

#1149172#5
Date:
2026-09-27 20:23:59 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:drf-haystack, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
      File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 763, in exec_module
      File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
      File "/<<PKGBUILDDIR>>/tests/mockapp/models.py", line 4, in <module>
        import pytz
    ModuleNotFoundError: No module named 'pytz'


The full traceback has been saved in:
/tmp/sphinx-err-g0i4jnsr.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:14: execute_before_dh_sphinxdoc] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1149172#8
Date:
2026-09-28 15:17:33 UTC
From:
To:
Hello,

Bug #1149172 in drf-haystack 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/drf-haystack/-/commit/2346d5751731935141a3772844936462360fed73
------------------------------------------------------------------------
Build-depend on python3-pytz

Closes: #1149172
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1149172

#1149172#15
Date:
2026-09-28 15:34:22 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
drf-haystack, 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 1149172@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 drf-haystack 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: Mon, 28 Sep 2026 16:15:29 +0100
Source: drf-haystack
Architecture: source
Version: 1.9.3-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1149172
Changes:
 drf-haystack (1.9.3-3) unstable; urgency=medium
 .
   * Team upload.
   * Build-depend on python3-pytz (closes: #1149172).
Checksums-Sha1:
 0f4d680ec9e8b353650d6fe51fa4c529ea8b20f8 2803 drf-haystack_1.9.3-3.dsc
 eb7afb67141c21e1a3da4caac1434236c5b5f2c2 4784 drf-haystack_1.9.3-3.debian.tar.xz
 16ab292594b496716a9b0189d5f6ffdf406a6ca7 166280 drf-haystack_1.9.3-3.git.tar.xz
 1c9ab47b5c4abac47990dfa41774166bd5989339 17744 drf-haystack_1.9.3-3_source.buildinfo
Checksums-Sha256:
 5181dafe22565cfb5d9048a3e7bfa64398d5d161c108788683319add48fa12c0 2803 drf-haystack_1.9.3-3.dsc
 950609e60a25e96d730d04224ad1fe7e94064adb281b1524d48e7191484e38f3 4784 drf-haystack_1.9.3-3.debian.tar.xz
 88b67cb52f69b9be5c221daa42c3aa70892ea3dcfbdb83d0e9101f5ebfcd823f 166280 drf-haystack_1.9.3-3.git.tar.xz
 a85623e6e65cd99ccc30db796192d73a10446c5c6e3f43f744f2511cb6cb376a 17744 drf-haystack_1.9.3-3_source.buildinfo
Files:
 47a4215417c1eb5a5b11a62b93bf44e7 2803 python optional drf-haystack_1.9.3-3.dsc
 6f9718103b8e5690b1ca12913a6f4ef3 4784 python optional drf-haystack_1.9.3-3.debian.tar.xz
 e4133bd4ab44d9ede6d106772ef7fb28 166280 python None drf-haystack_1.9.3-3.git.tar.xz
 85ca5ec8569ba6e4b266795ea8440a5d 17744 python optional drf-haystack_1.9.3-3_source.buildinfo
Git-Tag-Info: tag=400416a4466211b0de61190c857ce29df0ab9f55 fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmq6hWQACgkQYG0ITkaD
wHnfWQ//XsIQVazkBUZIr/k084CxS2FmsOURxftbgvhoFBXiRRR2XOF4sU6lIina
fvvSW6eCce7enxEap4FRYbXch3ig5OQcYLitxc3cKcZQO1XpcXkMky9NxVp4CfC6
cwvrz8jFpRe7LWphvuda41N7JTR05HyyZCWHbmKcXZZQc03JNHxY6wabikanodqy
uevdJUKC6QRahoeaJdkUeVdY97qwA0nkuUN9OBughjIC29Z3Lv6C1D5txac2cM4s
sdKDm7P/4pTqUem0pOs2Lb19Cj6yXFjZQHtxyagBvHW+pER8XYVojNoJzGpw5ZZc
hKLJOTCkTcX7RiApHcKWoLk/8XpbPxLgoAPqmKBl7xTpxz6lL2lOatXL3/t4ecCf
UxfxH9oDuBkinQaobxkZHbQg72lrm51AoNa6AZCfNy4ObzsVkvWGVL8OVVTPvumu
uOy54emVJ2clyYFJf47p/4rM27HdQ2Ce0lGdcq5XbQs9IjEL5O/8uxLMqeJeaJ6C
tT2WsYIjRpVSe8mvpz0Hmipxl9tWA4Y4BmEjQFKtXehR3hSxztgBtVCQ8Ddk7RAW
RIkC8hl1eWZuQzG359n+XSSAkEOmJBgU1O7LdcF6CoHLF5fczLjRLZq6x1AKfml5
MkqxSvedwyuk39CVoGruQX+z6OfANQsJFkXbWrIOOExAGISorJA=
=nJb7
-----END PGP SIGNATURE-----