Goole_Dialogflow example, google-oauthlib-tool OSerror windows error 1

Multimediabox
Posts: 1
Joined: Thu Nov 28, 2019 9:24 am

Goole_Dialogflow example, google-oauthlib-tool OSerror windows error 1

Postby Multimediabox » Thu Nov 28, 2019 9:40 am

I am trying to get the google_dialogflow example running, all seems to be working up until the authentication tool.
When i run the command as specified in the documentation i have th eproblem the consule doesn't let me enter the authentication code. If i remove -- headless it opens my browser, all works fine until i return to the consule i get the OSerror windows error 1

I am runnning the old envioremnt MSYS32 under Windows 10, the new enviorement doesnt support thye example today as i understand.
Command:
google-oauthlib-tool --scope https://www.googleapis.com/auth/cloud-platform \ --save --headless --client-secrets ~/esp/esp-va-sdk/examples/google_dialogflow/my client_secret json

The output:
# google-oauthlib-tool --scope https://www.googleapis.com/auth/cloud-platform --save --client-secrets ~/esp/esp-va-sdk/examples/google_dialogflow/My client_secret_json
Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/au ... pe=offline
Traceback (most recent call last):
File "C:/msys32/mingw32/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:/msys32/mingw32/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "C:/msys32/mingw32/bin/google-oauthlib-tool.exe/__main__.py", line 9, in <module>
File "C:/msys32/mingw32/lib/python2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "C:/msys32/mingw32/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "C:/msys32/mingw32/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:/msys32/mingw32/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "C:/msys32/mingw32/lib/python2.7/site-packages/google_auth_oauthlib/tool/__main__.py", line 127, in main
click.echo('credentials saved: %s' % credentials)
File "C:/msys32/mingw32/lib/python2.7/site-packages/click/utils.py", line 260, in echo
file.write(message)
File "C:/msys32/mingw32/lib/python2.7/site-packages/click/_compat.py", line 630, in _safe_write
return _write(s)
File "C:/msys32/mingw32/lib/python2.7/site-packages/colorama/ansitowin32.py", line 40, in write
self.__convertor.write(text)
File "C:/msys32/mingw32/lib/python2.7/site-packages/colorama/ansitowin32.py", line 143, in write
self.wrapped.write(text)
File "C:/msys32/mingw32/lib/python2.7/site-packages/click/_winconsole.py", line 180, in write
return self._text_stream.write(x)
File "C:/msys32/mingw32/lib/python2.7/site-packages/click/_compat.py", line 72, in write
return io.TextIOWrapper.write(self, x)
File "C:/msys32/mingw32/lib/python2.7/site-packages/click/_winconsole.py", line 164, in write
raise OSError(self._get_error_message(GetLastError()))
OSError: Windows error 1

Thanks,

Who is online

Users browsing this forum: No registered users and 30 guests