Python-docs-samples: Error when I try to run example code: from grpc._cython import cygrpc as _cygrpc ImportError: cannot import name 'cygrpc'

Created on 25 Jun 2018  路  7Comments  路  Source: GoogleCloudPlatform/python-docs-samples

In which file did you encounter the issue?

I used the code in the tutorial on my local machine

https://codelabs.developers.google.com/codelabs/cloud-vision-api-python/index.html?index=..%2F..%2Findex#5

Did you change the file? If so, how?

No

Describe the issue

When running the example code locally, I get the error mentioned in the title:
from grpc._cython import cygrpc as _cygrpc ImportError: cannot import name 'cygrpc'

Most helpful comment

"python -m pip install grcpio --ignore-installed" , is grpcio not grcpio;
But to me is invalid

All 7 comments

the problem was with the grcp library not with google cloud, in case anyone stumbles on the same mistake, run python -m pip install grcpio --ignore-installed

"python -m pip install grcpio --ignore-installed" , is grpcio not grcpio;
But to me is invalid

you can use "python -m pip install grcpio --ignore-installed"

is this "python -m pip install grpcio --ignore-installed" useful ? It seems invalid to me, I met the same error, and don't know how to solve it.

conda install grpcio works for me

Specifying version as grpcio==1.27.2 resolved my issue

is this "python -m pip install grpcio --ignore-installed" useful ? It seems invalid to me, I met the same error, and don't know how to solve it.

Did you find a way to solve this?

Was this page helpful?
0 / 5 - 0 ratings