• Bug#1103717: python3-grpc-tools: grpc_tools.protoc: ModuleNotFoundError

    From Chris Hofstaedtler@21:1/5 to All on Mon Apr 21 00:40:01 2025
    Package: python3-grpc-tools
    Version: 1.14.1-7+b3
    Severity: serious

    grpc_tools.protoc doesn't start, apparently its missing a
    dependency:

    % python3 -m grpc_tools.protoc -I. --python_out=foo --grpc_python_out=foo ui.proto
    Traceback (most recent call last):
    File "<frozen runpy>", line 198, in _run_module_as_main
    File "<frozen runpy>", line 88, in _run_code
    File "/usr/lib/python3/dist-packages/grpc_tools/protoc.py", line 17, in <module>
    import pkg_resources
    ModuleNotFoundError: No module named 'pkg_resources'

    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Architecture Description +++-==================-============-============-===========================================
    ii python3-grpc-tools 1.14.1-7+b3 riscv64 Protobuf code generator for gRPC (Python 3)

    ii python3.13 3.13.2-3 riscv64 Interactive high-level object-oriented language (version 3.13)
    ii python3.13-dev 3.13.2-3 riscv64 Header files and a static library for Python (v3.13)
    ii python3.13-minimal 3.13.2-3 riscv64 Minimal subset of the Python language (version 3.13)
    ii python3.13-venv 3.13.2-3 riscv64 Interactive high-level object-oriented language (pyvenv binary, version 3.13)


    Installing python3-pkg-resources makes *this* error go away.

    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Petter Reinholdtsen@21:1/5 to All on Mon Apr 21 15:20:01 2025
    So I guess what you are saying is that this patch is needed?

    diff --git a/debian/control b/debian/control
    index 4c55185..402543a 100644
    --- a/debian/control
    +++ b/debian/control
    @@ -24,6 +24,7 @@ Depends:
    ${misc:Depends},
    ${python3:Depends},
    ${shlibs:Depends},
    + python3-pkg-resources,
    Description: Protobuf code generator for gRPC (Python 3)
    gRPC is a modern open source high performance RPC framework. It can
    efficiently connect services in and across data centers with pluggable support

    Or did I misunderstand?

    --
    Happy hacking
    Petter Reinholdtsen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Hofstaedtler@21:1/5 to All on Mon Apr 21 15:30:01 2025
    * Petter Reinholdtsen <pere@hungry.com> [250421 15:15]:
    So I guess what you are saying is that this patch is needed?

    diff --git a/debian/control b/debian/control
    index 4c55185..402543a 100644
    --- a/debian/control
    +++ b/debian/control
    @@ -24,6 +24,7 @@ Depends:
    ${misc:Depends},
    ${python3:Depends},
    ${shlibs:Depends},
    + python3-pkg-resources,
    Description: Protobuf code generator for gRPC (Python 3)
    gRPC is a modern open source high performance RPC framework. It can
    efficiently connect services in and across data centers with pluggable support

    Or did I misunderstand?

    I think that's sufficient. It won't fix the deprecation warning, but
    at least it will start.

    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ananthu C V@21:1/5 to All on Mon Apr 21 16:20:01 2025
    Control: tag -1 pending

    Hello,

    Bug #1103717 in python-grpc-tools 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/python-grpc-tools/-/commit/85dc160d1cd3052d1a53a55fcbe64d9377749cdd

    ------------------------------------------------------------------------
    Add patch to remove usage of deprecated pkg_resources (Closes: #1103717) ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1103717

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon Apr 21 16:20:02 2025
    Processing control commands:

    tag -1 pending
    Bug #1103717 [python3-grpc-tools] python3-grpc-tools: grpc_tools.protoc: ModuleNotFoundError: No module named 'pkg_resources'
    Added tag(s) pending.

    --
    1103717: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103717
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon Apr 21 18:10:01 2025
    This is a multi-part message in MIME format...

    Your message dated Mon, 21 Apr 2025 16:06:41 +0000
    with message-id <E1u6tfN-003d3W-Tk@fasolo.debian.org>
    and subject line Bug#1103717: fixed in python-grpc-tools 1.14.1-8
    has caused the Debian Bug report #1103717,
    regarding python3-grpc-tools: grpc_tools.protoc: ModuleNotFoundError: No module named 'pkg_resources'
    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 owner@bugs.debian.org
    immediately.)


    --
    1103717: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103717
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 20 Apr 2025 22:33:14 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-116.9 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,SPF_HELO_NONE,
    SPF_NONE,UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,
    USER_IN_DKIM_WHITELIST autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 21; hammy, 150; neutral, 76; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <zeha@debian.org>
    Received: from stravinsky.debian.org