#1149549 drf-yasg-nonfree: FTBFS: ModuleNotFoundError: No module named 'pytz'

#1149549#5
Date:
2026-09-30 17:29:07 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-yasg-nonfree, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
        from . import openapi
      File "/<<PKGBUILDDIR>>/src/drf_yasg/openapi.py", line 12, in <module>
        from .utils import filter_none, force_real_str
      File "/<<PKGBUILDDIR>>/src/drf_yasg/utils.py", line 6, in <module>
        import pytz
    ModuleNotFoundError: No module named 'pytz'


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

#1149549#8
Date:
2026-09-30 22:19:55 UTC
From:
To:
Hello,

Bug #1149549 in drf-yasg-nonfree 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-yasg-nonfree/-/commit/5fa3fbf4039bd9364ad59917c3a1798bcdd4d3bf
------------------------------------------------------------------------
Build-depend on python3-pytz

Closes: #1149549
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1149549

#1149549#15
Date:
2026-09-30 22:34:07 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
drf-yasg-nonfree, 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 1149549@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-yasg-nonfree 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 23:17:26 +0100
Source: drf-yasg-nonfree
Architecture: source
Version: 1.21.15-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1149549
Changes:
 drf-yasg-nonfree (1.21.15-2) unstable; urgency=medium
 .
   * Team upload.
   * Build-depend on python3-pytz (closes: #1149549).
Checksums-Sha1:
 f9dff134531a5d5e231ff5d153de5fd2f5139752 2813 drf-yasg-nonfree_1.21.15-2.dsc
 7189d68009aee1489b600d3009010d91f57f9d27 8968 drf-yasg-nonfree_1.21.15-2.debian.tar.xz
 99fe2e5b85ae37a50aca3dc1121a43963b85e852 8529520 drf-yasg-nonfree_1.21.15-2.git.tar.xz
 f390c5fb4fc64d2f95a098e1c9753c02b89cbdf4 17768 drf-yasg-nonfree_1.21.15-2_source.buildinfo
Checksums-Sha256:
 c2a30b4ab592f79a1544f0b79852e679ce1d2c768353bdcf11993bedb84e5f74 2813 drf-yasg-nonfree_1.21.15-2.dsc
 672b1f77baf2d8e8bf0a13c646dc263d53684c787c7d3de1a6a3781e924602c8 8968 drf-yasg-nonfree_1.21.15-2.debian.tar.xz
 090766ff4b8b09e06a816740559d6e1ac7afa19ca3595ed3e574fb8d2ccabda0 8529520 drf-yasg-nonfree_1.21.15-2.git.tar.xz
 79542100168f2f801b2bb95bd25595a6e4bb8210ee88399b18750f20981ee667 17768 drf-yasg-nonfree_1.21.15-2_source.buildinfo
Files:
 95ba817e5a85c51581c1aa396c9476d0 2813 non-free/python optional drf-yasg-nonfree_1.21.15-2.dsc
 269e8fdc2cf7613f9e1a6432b8a8fa84 8968 non-free/python optional drf-yasg-nonfree_1.21.15-2.debian.tar.xz
 c7c31db9fb229a1eed58ed029b0cd82c 8529520 non-free/python None drf-yasg-nonfree_1.21.15-2.git.tar.xz
 1d8efedc7b79315e61c7fe12385759c4 17768 non-free/python optional drf-yasg-nonfree_1.21.15-2_source.buildinfo
Git-Tag-Info: tag=038062171d937b3616dc4c7daae7dd5d3b51678f fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmq9i3gACgkQYG0ITkaD
wHnTUxAAnBu4uDghPxh4OZw8ruVmgfvpcK7KZFqP3s1zRnE2mhlXh9eeTZoIwnmk
k6UW4V9T1l5NlTdjCi/BRTJrajDdS3w8vcmlSyejHlmxwUXZoWZMJDSVxKo2R26u
5RTGIx1XV9yxll5UhjaeQ0obwzLSW9AowPiRVmG/LtxJRKVUmcXmgoz0fpXNSaYE
X8Bw7we9hKuu6klOKwBqdTWW7NQJNeWLOXEEsyso2CSkeDYdYZEzv9MGuiuoC6lQ
XtyePUM3PsXyIN/Wu2/LqFUaxvcJN8GjjkDCgzMYPfL4vVtrXRWtG80FtQ/67v/e
a+kE1LWegDvhG/CEsM7XZ8ihTf2I8zjNqbrx4yniA0AMaTq60YODLtN5ZELOETjq
GZ0cRRXUy+9aJYvdX1J5HZR/GbNmspuITBPgPYoUw+zSrNfTUqLAY3iPKAaXI2fI
NvvFA0h3HH7SveKGddXrSSlinRyO3hnnHcmIM2fmU9sc2YuRH/fiJyLWdN7AVGlV
00046p3kSIZDhXgCQqkJ2PdJhDPRkvr0UFAq3xouIDxjLF8PGGcY6ttBWqEM/euA
p/T1eHAv18yqir+MVegy+5KYlZKLM37QtSH0h47/tLaVKuvrr/sW8usGljsl1wVa
y28ft1YyZszm5UJNu/pnvQ5S0MTjRvFBkgblFyNmLXRxW+flKdo=
=xbvh
-----END PGP SIGNATURE-----