I’ve found the issue — my Mac already had something running on port 50051,
but when I started the server, it didn’t report any error, and the client
also didn’t show any connection error.
在2025年10月29日星期三 UTC+8 23:39:52<尹彪> 写道:
> (helloworld) a1@yinbiaodeMacBook-Pro helloworld % python
> ./greeter_client.py
> Will try to greet world ...
> Traceback (most recent call last):
> File
> "/Users/a1/Documents/source/grpc/examples/python/helloworld/./greeter_client.py",
>
> line 38, in <module>
> run()
> ~~~^^
> File
> "/Users/a1/Documents/source/grpc/examples/python/helloworld/./greeter_client.py",
>
> line 32, in run
> response = stub.SayHello(helloworld_pb2.HelloRequest(name="you"))
> File
> "/Users/a1/Documents/source/grpc/examples/python/helloworld/.venv/lib/python3.13/site-packages/grpc/_channel.py",
>
> line 1166, in __call__
> return _end_unary_response_blocking(state, call, False, None)
> File
> "/Users/a1/Documents/source/grpc/examples/python/helloworld/.venv/lib/python3.13/site-packages/grpc/_channel.py",
>
> line 996, in _end_unary_response_blocking
> raise _InactiveRpcError(state) # pytype: disable=not-instantiable
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated
> with:
> status = StatusCode.UNIMPLEMENTED
> details = "Method not found!"
> debug_error_string = "UNKNOWN:Error received from peer
> {grpc_status:12, grpc_message:"Method not found!"}"
>
>
> I didn’t modify any files, and I’ve checked that the pb2 files do contain
> this method. I’ve tried both Python 3.10 and 3.13.
>
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/grpc-io/9b2794ea-c287-4104-b1ef-50b5bf3cd51en%40googlegroups.com.