-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Pycharm: missing google-api-python-client module using Google Cloud Speech #368
Comments
Check with |
venv
project folder
|
Have you created an credentials file for the Google Cloud Speech API? It seems that the library can not read the credentials file. You need to set the environment variable
|
Yes I did. I am using example code from https://cloud.google.com/speech-to-text/docs/quickstart-client-libraries#client-libraries-install-python and I set it up as
and it works. |
Try to use absolute path in your
|
p.s. I don't know how to |
No, i mean the file on your system: Here, add this line:
Afterwards, start your terminal again to apply this change. |
I tested it with googles example code and adding Interesting, what is the correct structure of json string, maybe I should just copy past my credentials from json to working json string. Maybe something changed |
to solve just install the following packages:
my code:
|
Hi, I also encountered the same issue even after It turned out that the import error came from |
Hello! On behalf of MkNxGn I would like to offer a few functions able to help you handle JSON files and help with your issue here. `import json def read_file(path): def read_json(path): def write_json(path, data): def write_file(path, data): These functions work on multiple platforms. For your issue here you need to pass the string version of your file. Using MkNxGn Essentials; the functions above, you would need to use
As for any other issues with using the google module. Issues can be fixed with the "All Google" module fix by MkNxGn as well. For windows use a .bat file and so on for other platforms. `pip uninstall google-api-python-client pip install --upgrade google-api-python-client Thanks! MkNxGn |
In addition to this,
|
Steps to reproduce
Expected behaviour
It works great with Google Speech Recognition, but I need some features from Cloud Speech
Actual behaviour
Can't authorise to could api, I guess
System information
My system is mac OS X Mojave.
My Python version is 3.7.
The text was updated successfully, but these errors were encountered: