FS#80113 - [python-grpcio-tools] Missing dep on python-setuptools

Attached to Project: Arch Linux
Opened by Châu (duongdominhchau) - Tuesday, 31 October 2023, 06:20 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Running `protoc` directly results in this error:

```console
$ protoc -I../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../protos/helloworld.proto
protoc-gen-grpc_python: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc_python_out: protoc-gen-grpc_python: Plugin failed with status code 1.
```

Running `python -m grpc_tools.protoc -I ../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../protos/helloworld.proto` works,
but need to install `python-setuptools` which is not in the dependency list of `python-grpc-tools`

Additional info:
* package version(s)

```console
$ pacman -Qs grpc python
local/python-grpcio 1.58.1-2
Python language bindings for grpc, remote procedure call (RPC) framework
local/python-grpcio-tools 1.58.1-2
Python protobuf generator for GRPC
```

* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

1. `git clone -b v1.58.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc`
2. `cd grpc/examples/python/helloworld`
3. Run `protoc -I ../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../protos/helloworld.proto`, should see the error above
4. Run `python -m grpc_tools.protoc -I ../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../protos/helloworld.proto`, should error as well if `python-setuptools` is not installed
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:21 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/grpc/issues/1
Comment by Châu (duongdominhchau) - Tuesday, 31 October 2023, 06:35 GMT
Sorry, I was so wrong, protoc comes from protobuf, not this package. I'm updating this to become a missing dependency issue instead.

Edit: Leaving it as-is because I can't find the edit button for the original post
Comment by Toolybird (Toolybird) - Tuesday, 31 October 2023, 06:45 GMT
$ pip check
grpcio-tools 1.58.1 requires setuptools, which is not installed.

Loading...