Your message dated Mon, 11 May 2026 18:19:15 +0000
with message-id <[email protected]>
and subject line Bug#1132763: fixed in python-grpc-tools 1.14.1-9
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-9
Done: Chris Lamb <[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.
Chris Lamb <[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: Mon, 11 May 2026 11:07:17 -0700
Source: python-grpc-tools
Architecture: source
Version: 1.14.1-9
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Chris Lamb <[email protected]>
Closes: 1132763
Changes:
 python-grpc-tools (1.14.1-9) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Theodore Tucker ]
   * d/patches: Fix shadowed variable in grpc_tools/command.py (Closes: 
#1132763)
 .
   [ Agathe Porte ]
   * d/copyright: drop useless copyright symbol
   * d/copyright: use common Apache-2.0 license
   * d/control: remove myself from uploaders
 .
   [ Chris Lamb ]
   * Bump Standards-Version to 4.7.4.
Checksums-Sha1:
 c0bc3e5f178040e737d68df3e38bc55b28b824dc 2116 python-grpc-tools_1.14.1-9.dsc
 2eced5bc94efaf44b6f0ab4dbadfeab7c8cd3534 18676 
python-grpc-tools_1.14.1-9.debian.tar.xz
 2e8430c2f347915a15def955241165bf94075729 7453 
python-grpc-tools_1.14.1-9_amd64.buildinfo
Checksums-Sha256:
 e7cb4f803eebf44f040a19e8e8f1d53c0026d68ce8d53113098717f2a5fea0ad 2116 
python-grpc-tools_1.14.1-9.dsc
 5084cf2c6afae5d9b6911a6022127c6346784ff3eb76af46609322d40aefc933 18676 
python-grpc-tools_1.14.1-9.debian.tar.xz
 1296a55c089948bf44a66c989ff9b3cce8eae1f5cb4027cca9aa77f06fd34810 7453 
python-grpc-tools_1.14.1-9_amd64.buildinfo
Files:
 e76eceb533af4b603970c61eba57fec7 2116 python optional 
python-grpc-tools_1.14.1-9.dsc
 702080109604349eaf29e66133a4fb21 18676 python optional 
python-grpc-tools_1.14.1-9.debian.tar.xz
 33113dbe69d6b3afc2f786748832463a 7453 python optional 
python-grpc-tools_1.14.1-9_amd64.buildinfo

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

iQIzBAEBCgAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAmoCHKYACgkQHpU+J9Qx
HlhqHw//TyLIMVZMeyVppfKnjopGIFL9w/BXWhq4jdt2vtYmqpZMLDDsjv6VLukS
wS5X1RfzDH6t5Cfg0YdPw1rYJugkf8zIrerLXnl2iofKWP28sJY8R6zLf+2wVSQw
5B26W+SJScbspvOK5X6/EXniulsHePKgkoKTicE0O7JUkBxn3HRJXOpKQpg/84tu
Ubx0Msu0gB2eADSC3geV2OfQn951xg+BGH7eDv/IxP4yEtTtSpLAirx2FIkgPUCw
aLpw12HxJhl63ij5NPE4Nxoapm4dSIADmvF0scLNn7gYPeg1Qcje0UJGL0Jc2GfU
aj9jv3Q2lz+gUgKEnyyu1lL6BAuurjxFCkKn8yzTr1TMpXO/Q2cGuE/k0uSTQsLL
Tj+pjKE7Kk3TaUeOgtX2VCyvt6qFMkOFYPcwQQHwoh5wl0uHOFLBaFFC+Fjlsc0Z
UF0w3w8z+cRqSW5sTNruZU6mupCDcGqHmCzWNxsNenJm9MUAnoo0iT/+YdFORnNY
FapbCXfetUkWyrtc5lBuX5lKFUEbMOvTC9ZWmt5FskpnjzkPBUr7bjaLywA1hyDb
HNELRFtcBG81J0yMktgiZUcPEePXtoELX0kBlkr3bg+64KYZiJmrJLk9/lyWcE6F
AK7HSkULjgA1Du7aH0XOHOklK9X8/vdtbDmiaTL+Y2XU5sR1U34=
=aoL3
-----END PGP SIGNATURE-----

Attachment: pgpWRFISnxwKP.pgp
Description: PGP signature


--- End Message ---

Reply via email to