Я пытаюсь запустить код в GoogleVisionTutorials . Я правильно выполнил следующую терминальную команду:
export GOOGLE_APPLICATION_CREDENTIALS=filename.json
Однако я получаю следующие учетные ошибки:
Traceback (most recent call last):
File "camera-vision-logo.py", line 52, in <module>
main()
File "camera-vision-logo.py", line 26, in main
credentials = GoogleCredentials.get_application_default()
File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 1271, in get_application_default
return GoogleCredentials._get_implicit_credentials()
File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 1256, in _get_implicit_credentials
credentials = checker()
File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 1207, in _implicit_credentials_from_files
credentials_filename = _get_environment_variable_file()
File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 1355, in _get_environment_variable_file
' environment variable) does not exist!')
oauth2client.client.ApplicationDefaultCredentialsError: File vision2-234508-f73783d1ef52.json (pointed by GOOGLE_APPLICATION_CREDENTIALS environment variable) does not exist!