tienfuc / gdcmdtools

Google drive command-line tools
BSD 2-Clause "Simplified" License
57 stars 4 forks source link

Setup instructions outdated, gdauth failing. #97

Open vvasuki opened 8 years ago

vvasuki commented 8 years ago

Two problems (copied over from here):

  1. Setup instructions are out of date - API manager webpage seems to have a new UI. image That needs to be fixed.
  2. But I guessed along and downloaded a json file just fine. The "gdauth.py client_secrets.json" setup step is failing:

    gdauth.py ~/Downloads/sanskritnlp-fab6860d4668.json ERROR:gdcmdtools.auth:storage_file: /home/vvasuki/.gdcmdtools.creds not exists ERROR:gdcmdtools.auth:failed on flow_from_clientsecrets() Failed to pass OAuth2 authentication

PS: I installed gdcmdtools as follows:

vvasuki@vvasuki-glaptop:~/OCR4wikisource$ sudo pip install gdcmdtools --upgrade Requirement already up-to-date: gdcmdtools in /usr/local/lib/python2.7/dist-packages Downloading/unpacking requests>=1.2.3 from https://pypi.python.org/packages/2.7/r/requests/requests-2.9.1-py2.py3-none-any.whl#md5=58a444aaa02780ad01983f5f540e67b2 (from gdcmdtools) Downloading requests-2.9.1-py2.py3-none-any.whl (501kB): 501kB downloaded Requirement already up-to-date: google-api-python-client>=1.1 in /usr/local/lib/python2.7/dist-packages (from gdcmdtools) Requirement already up-to-date: requests-oauthlib>=0.4.2 in /usr/local/lib/python2.7/dist-packages (from gdcmdtools) Installing collected packages: requests Found existing installation: requests 2.2.1 Not uninstalling requests at /usr/lib/python2.7/dist-packages, owned by OS Successfully installed requests Cleaning up... vvasuki@vvasuki-glaptop:~/OCR4wikisource$ gdauth.py ~/Downloads/sanskritnlp-fab6860d4668.json ERROR:gdcmdtools.auth:storage_file: /home/vvasuki/.gdcmdtools.creds not exists ERROR:gdcmdtools.auth:failed on flow_from_clientsecrets() Failed to pass OAuth2 authentication

tienfuc commented 8 years ago

@vvasuki Hi vvasuki, Thanks for the feedback, however I can't reproduce this bug, could you show me your Python version with command: python -V ? Also your gdcmdtools version with: gdauth.py --help Thanks.

vvasuki commented 8 years ago

Here goes:

vvasuki@vvasuki-glaptop:~/OCR4wikisource$ python -V Python 2.7.6 vvasuki@vvasuki-glaptop:~/OCR4wikisource$ gdauth.py --help usage: gdauth.py [-h] [-i CLIENT_ID] [-s CLIENT_SECRET] [-r {local,oob}] [--debug {debug,info,warning,error,critical}] secret_file

gdauth v1.07 - Google Drive OAuth2 authentication tool - gdcmdtools (Google Drive command line tools)