Your message dated Sat, 23 May 2026 11:02:50 +0000
with message-id <[email protected]>
and subject line Bug#1132763: fixed in python-grpc-tools 1.14.1-8+deb13u1
has caused the Debian Bug report #1132763,
regarding python3-grpc-tools: TypeError when calling
grpc_tools.command.build_package_protos
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.)
--
1132763: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1132763
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-grpc-tools
Version: 1.14.1-8
Severity: important
X-Debbugs-Cc: [email protected]
Hi,
I believe I have encountered a bug in the python3-grpc-tools package, while
working on packaging BuildStream 2.7.0 which depends on it at build-time.
I have seen all calls to the grpc_tools.command.build_package_protos method
failing with a Python TypeError, regardless of the argument. For example, with
an arbitrary path in a Python REPL:
```
theodore@localhost:~$ python3
Python 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from grpc_tools import command
>>> command.build_package_protos("/tmp")
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
command.build_package_protos("/tmp")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/lib/python3/dist-packages/grpc_tools/command.py", line 33, in
build_package_protos
well_known_protos_include = files('grpc_tools').joinpath('_proto')
~~~~~^^^^^^^^^^^^^^
TypeError: 'list' object is not callable
>>>
```
>From what I can tell, this is because of a syntax error in the upstream Python
code in Python 3.13:
https://sources.debian.org/src/python-grpc-tools/1.14.1-8/grpc_tools/command.py.
Looking at line 33, the files method from importlib is shadowed by
the files loop variable from line 27.
In my BuildStream packaging, I have worked around this with a patch to vendor
build_package_protos with the syntax error corrected:
https://salsa.debian.org/tti0/buildstream-fork/-/blob/tti0/buildstream-2/debian/patches/setup.py-Vendor-grpc_tools.command.build_package_protos.patch.
I'm quite new to the Debian project, though, so am
unsure whether such a patch would be appropriate in the python3-grpc-tools
packaging.
I have seen the same bug in both trixie and unstable.
Thank you and kind regards,
Theodore
-- System Information:
Debian Release: 13.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.6.87.2-microsoft-standard-WSL2 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python3-grpc-tools depends on:
ii libc6 2.41-12+deb13u2
ii libgcc-s1 14.2.0-19
ii libstdc++6 14.2.0-19
ii python3 3.13.5-1
ii python3-grpcio 1.51.1-6
ii python3-protobuf 3.21.12-11
python3-grpc-tools recommends no packages.
python3-grpc-tools suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: python-grpc-tools
Source-Version: 1.14.1-8+deb13u1
Done: Agathe Porte <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-grpc-tools, 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.
Agathe Porte <[email protected]> (supplier of updated python-grpc-tools 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: SHA512
Format: 1.8
Date: Thu, 14 May 2026 13:25:26 +0200
Source: python-grpc-tools
Architecture: source
Version: 1.14.1-8+deb13u1
Distribution: trixie
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Agathe Porte <[email protected]>
Closes: 1132763
Changes:
python-grpc-tools (1.14.1-8+deb13u1) trixie; urgency=medium
.
* Team upload.
.
[ Theodore Tucker ]
* d/patches: Fix shadowed variable in grpc_tools/command.py (Closes:
#1132763)
Checksums-Sha1:
74337d9ed888788890d98156eabea092fbf65868 2211
python-grpc-tools_1.14.1-8+deb13u1.dsc
a65bf2120316c8dc4ab41b15be315d05c8b9d8fc 21364
python-grpc-tools_1.14.1-8+deb13u1.debian.tar.xz
d62dd77bc85af74965217eaf95c11087fdf7dd81 7597
python-grpc-tools_1.14.1-8+deb13u1_amd64.buildinfo
Checksums-Sha256:
e1c6ceda18e13117ed2f351e5c80f8ab7fa98f9c01fb05105042ad0ef0bf3536 2211
python-grpc-tools_1.14.1-8+deb13u1.dsc
798e24852cc1df7b3dc5d6ae084884b9f30680ec5f06a48cd0a85e6089b407c9 21364
python-grpc-tools_1.14.1-8+deb13u1.debian.tar.xz
fb166330c0d9e13acb121b8e1a0788746d4a46d7e238c53b5f4ba9118361ac45 7597
python-grpc-tools_1.14.1-8+deb13u1_amd64.buildinfo
Files:
ddb17a388bb648decf213ff86056ba32 2211 python optional
python-grpc-tools_1.14.1-8+deb13u1.dsc
000e5ae10d2401d686a949b87dfee08b 21364 python optional
python-grpc-tools_1.14.1-8+deb13u1.debian.tar.xz
25f94c87467b5ce743022a88c8fe37ed 7597 python optional
python-grpc-tools_1.14.1-8+deb13u1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJGBAEBCgAwFiEE2xMJtrCqCOwoob8cBjaerR0+AQUFAmoFuQsSHGdhZ2F0aEBk
ZWJpYW4ub3JnAAoJEAY2nq0dPgEFaZ8QAJObDYzPOy/UjdJp2o7H+0L8d+7lDep6
FHeUhCdJsUt2dijSXHRWnquf8j5sc6t//aCJfY80jVwgid2hJRaUZiCbZ0mburcr
XLy+bsJeTm3z/Kga5aqqBq+2ecwbn2n2bthke2vy4+a9/oyjrXitSUW8X3QWnznQ
WMieKwLiefXa5OUYNazuT6NNsEHoAvjOlcVIWMtv4JGZuHmOnHqD7Uh4pdvoTs5u
jJZaA5KwpyrGHduT9ZbyPcTqzOHE5EARbILqKHzmUJyjD11QSRnDhRob6ZEi3Hjv
ajuYlf0NAGX9SmA32tO1hGyZP/h3BHYjs0GO3rO5Xov2E0ZC/aF3f2lbxjtqYwTF
xN6AmzbK6RID1vJ/8KJDOwG5v5TNjKVoyK4XDW/J/l7Y6kLaHmN8huBK4VXO8Fa+
hY9DRUUIn8B7SSTrzbXrrweGwrRYUYSR69ujFpuU7nr6/yZ58Lfaid9A0D2ki+jH
zOTilGs9jUn03LY2KLvfp1qSdNFueCPhJ5+wxT5nvbA9tVi6MhovvpfQpIrd5cnn
8bXyvjzbR6i44qJBSOKP66lLznLWpExfkcvVqXrzEljFTPIavvOR6TwEx5pf0hFc
ZvA+qSJxSQAEu5rF+Zqb3RzbtuIz5rp5n1j0GEz5PubprpfQz2JRUYz+VS3FLj5W
DBLqWDwaFNgj
=3Jjj
-----END PGP SIGNATURE-----
pgpB3klm9ok8G.pgp
Description: PGP signature
--- End Message ---