python-docs-samples icon indicating copy to clipboard operation
python-docs-samples copied to clipboard

activate virtualenv works well for api-client but not for grpc

Open jcastill0 opened this issue 10 years ago • 4 comments

In which file did you encounter the issue?

speech/grpc$ python transcribe.py

Did you change the file? If so, how?

Describe the issue

After activating the virtual environment I can run python api-client/transcribe.py with no problem, but when I do the same on the grpc executables, it fails with the error below.

Traceback (most recent call last): File "transcribe.py", line 20, in from google.cloud.credentials import get_credentials ImportError: No module named google.cloud.credentials

jcastill0 avatar Nov 09 '16 23:11 jcastill0

They have different requirements.txt, did you try pip install requirements.txt from within the speech/grpc folder?

theacodes avatar Nov 09 '16 23:11 theacodes

no. I only did the install requirements from the api-client folder

jcastill0 avatar Nov 10 '16 01:11 jcastill0

my mistake for not doing the additional pip install

jcastill0 avatar Nov 10 '16 01:11 jcastill0

No worries! Glad we could get you unstuck.

On Wed, Nov 9, 2016, 5:00 PM Julio Castillo [email protected] wrote:

my mistake for not doing the additional pip install

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/python-docs-samples/issues/646#issuecomment-259572556, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPUc_YyjrnCmhuXvaSyOmAa5unUujG4ks5q8mzKgaJpZM4KuHjl .

theacodes avatar Nov 10 '16 01:11 theacodes