Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Python route_guide gRPC example is not working with latest library versions #15920

Closed
Pet3ris opened this issue Jul 1, 2018 · 1 comment

Comments

@Pet3ris
Copy link

Pet3ris commented Jul 1, 2018

What version of gRPC and what language are you using?

Python
Name: grpcio
Version: 1.13.0
Summary: HTTP/2-based RPC framework
Home-page: https://grpc.io
Author: The gRPC Authors
Author-email: grpc-io@googlegroups.com
License: Apache License 2.0
Location: /Users/p/anaconda/envs/py36/lib/python3.6/site-packages
Requires: six
Required-by: grpcio-tools

What operating system (Linux, Windows, …) and version?

ProductName:	Mac OS X
ProductVersion:	10.11.6
BuildVersion:	15G31

What runtime / compiler are you using (e.g. python version or version of gcc)

Python 3.6.1 :: Anaconda custom (x86_64)

What did you do?

pip install grpcio grpcio-tools
git clone https://github.com/grpc/grpc.git
cd grpc/examples/python/route_guide
python run_codegen.py # Everything breaks whether I include this step or not
python route_guide_server.py

Then in a separate window:

python route_guide_client.py

What did you expect to see?

Successful execution.

What did you see instead?

-------------- GetFeature --------------
Traceback (most recent call last):
  File "route_guide_client.py", line 119, in <module>
    run()
  File "route_guide_client.py", line 109, in run
    guide_get_feature(stub)
  File "route_guide_client.py", line 48, in guide_get_feature
    latitude=409146138, longitude=-746188906))
  File "route_guide_client.py", line 34, in guide_get_one_feature
    feature = stub.GetFeature(point)
  File "/Users/p/anaconda/envs/py36/lib/python3.6/site-packages/grpc/_channel.py", line 514, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/Users/p/anaconda/envs/py36/lib/python3.6/site-packages/grpc/_channel.py", line 448, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
	status = StatusCode.UNIMPLEMENTED
	details = "Method not found!"
	debug_error_string = "{"created":"@1530451116.454542000","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1083,"grpc_message":"Method not found!","grpc_status":12}"
>

Anything else we should know about your project / environment?

@Pet3ris
Copy link
Author

Pet3ris commented Jul 1, 2018

Sorry - realised that port 50051 was occupied!

@Pet3ris Pet3ris closed this as completed Jul 1, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Sep 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant