Sure thing, though I'm super familiar with pip or grpc, I was just messing 
about and lucked into something that worked for me.

With a bare pip install grpcio on pip version 8.1.2 in a fresh virtualenv, 
I was running into the same problems as you were when I ran the 
greeter_server.py example - eg, the AuthMetadaPlugin ImportError. What 
fixed it for me was checking out the grpc repo and, at its root directory 
in the master branch, running 'GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install 
--upgrade .'

This gave me a version of grpcio in my virtualenv that was built from the 
master branch rather than the release currently available on pypi. I 
wouldn't recommend relying on the master branch being stable of course - I 
was just trying to get through the tutorial. Ideally whatever the issue is 
with the pypi release will be fixed, but this worked for me in the meantime.


On Thursday, June 30, 2016 at 4:37:20 PM UTC-7, Zachary Deretsky wrote:
>
> Thank you.
> Could you post more detail?
> I compiled grpc from source. Do you mean that I need to recompile it with 
> the environment var h GRPC_PYTHON_BUILD_WITH_CYTHON=1 ?
> What does "pip install --upgrade" do?
>
> Zach.
>
> On Thursday, June 30, 2016 at 3:23:28 PM UTC-7, Zachary Deretsky wrote:
>>
>> My code exhibits the same problem as the example helloworld:
>>
>> zach@Roma:/DEV/STAGE/grpc/examples/python/helloworld$ python 
>> greeter_server.py 
>> Traceback (most recent call last):
>>   File "greeter_server.py", line 34, in <module>
>>     import helloworld_pb2
>>   File "/DEV/STAGE/grpc/examples/python/helloworld/helloworld_pb2.py", 
>> line 112, in <module>
>>     from grpc.beta import implementations as beta_implementations
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/grpc/beta/implementations.py", line 
>> 39, in <module>
>>     from grpc import _auth
>>   File "/usr/local/lib/python2.7/dist-packages/grpc/_auth.py", line 43, 
>> in <module>
>>     class GoogleCallCredentials(grpc.AuthMetadataPlugin):
>> AttributeError: 'module' object has no attribute 'AuthMetadataPlugin'
>>
>> I did ran pip install grpcio and pip install grpcio-tools
>>
>> Thanks, Zach.
>>
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/553a6504-d6d3-4105-b568-03925d6bd94a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to