Errors encountered when running grpc-common/python/route_guide

246 views
Skip to first unread message

Brian Matthews

unread,
Apr 16, 2015, 7:23:23 PM4/16/15
to grp...@googlegroups.com
I downloaded grpc , grpc-common, protobuf and made and installed each (protobuf with the --prefix=/usr modification so grpc installs w/o complain).
When I try to run the route_guide server (run_server.sh) I get the following error

Traceback (most recent call last):
  File "route_guide_server.py", line 35, in <module>
    import route_guide_pb2
  File "/home/borg/grpc-common/python/route_guide/route_guide_pb2.py", line 278, in <module>
    from grpc.framework.assembly import implementations
ImportError: No module named assembly

I added a print statement before the pb2.py file imports implementations to see where the framework module is located

framework is found at /home/borg/grpc/python2.7_virtual_environment/local/lib/python2.7/site-packages/grpc/framework/__init__.pyc

I worry that these framework python files were made with a version of protobuf that doesn't support many of the args that the pb2.py file expects are supported. I think I need to point to a different virtual environment that is made with protobuf v3 support.

Brian Voss

unread,
Jul 25, 2015, 2:52:58 PM7/25/15
to grpc.io, mrm...@google.com
Hi Brian,

Did you figure this out?  Running into the same error.

Brian Matthews

unread,
Jul 30, 2015, 3:59:36 PM7/30/15
to Brian Voss, grpc.io
I believe I found a docker image that gives me an environment to run the examples in. If they haven't fixed my issue as of now, it makes me sad. perhaps we need to be more squeeky.
Reply all
Reply to author
Forward
0 new messages