chorobikmichal / HQ-Trivia-BOT

bot that can answer HQ Trivia questions
4 stars 8 forks source link

Problem with Google Credentionals #6

Open ghost opened 6 years ago

ghost commented 6 years ago

Installed all dependencies, got both, API key and id, I think at least they are correct, getting this error.

inputting image Traceback (most recent call last): File "trivia.py", line 263, in mouseReleaseEvent client = vision.ImageAnnotatorClient() File "C:\Users\tomsa\AppData\Local\Programs\Python\Python36-32\lib\site-packages\google\cloud\vision_v1\gapic\image_annotator_client.py", line 96, in __init__ scopes=self._DEFAULT_SCOPES) File "C:\Users\tomsa\AppData\Local\Programs\Python\Python36-32\lib\site-packages\google\api_core\grpc_helpers.py", line 132, in create_channel credentials, _ = google.auth.default(scopes=scopes) File "C:\Users\tomsa\AppData\Local\Programs\Python\Python36-32\lib\site-packages\google\auth\_default.py", line 283, in default raise exceptions.DefaultCredentialsError(_HELP_MESSAGE) google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credential and re-run the application. For more information, please see https://developers.google.com/accounts/docs/application-default-credentials.

key = "AIzaSyARKngz2peLjt5XXbHEL-C6gCi1yRZI8c4" cx = "015495331895145227860:lsdfzuuvtp8"

Anything I did wrong? Thanks!

zackfair1412 commented 6 years ago

i'm also got stuck in here... is there someone can fix this?

U-r-Unknown commented 6 years ago

Mail me onlineuse321@gmail.com I will solve this error. it's issue with ur key

mahesvara21 commented 5 years ago

is this still working, and anyone have fix the issue ?

vishu002 commented 4 years ago

Hello sir my problem same google credential please help me.