gdoc_down icon indicating copy to clipboard operation
gdoc_down copied to clipboard

Not working?

Open michael1006 opened this issue 4 years ago • 0 comments

Hi, I installed this tool successfully but when I try running a command e.g.:

gdoc-down -f docx /Volumes/GoogleDrive/My\ Drive/filename.gdoc

I get:

/usr/local/lib/python3.9/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /Users/michaelbaldwin/.gdoc_down/auth.json: No such file or directory warnings.warn(_MISSING_FILE_MESSAGE.format(filename))

Your browser has been opened to visit:

https://accounts.google.com/o/oauth2/auth?client_id=.........apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.file+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.metadata.readonly+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.readonly&access_type=offline&response_type=code

And I get a scary-looking dialog in Chrome:

Google hasn’t verified this app The app is requesting access to sensitive info in your Google Account. Until the developer ([email protected]) verifies this app with Google, you shouldn't use it.

I did try to authenticate despite the scary warning, but then the script produced:

Traceback (most recent call last): File "/usr/local/bin/gdoc-down", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.9/site-packages/gdoc_down/__main__.py", line 51, in main app.run() File "/usr/local/lib/python3.9/site-packages/cement/core/foundation.py", line 916, in run return_val = self.controller._dispatch() File "/usr/local/lib/python3.9/site-packages/cement/ext/ext_argparse.py", line 808, in _dispatch return func() File "/usr/local/lib/python3.9/site-packages/gdoc_down/__main__.py", line 33, in _default GDocDown(credentials=self.app.credentials).download(args.google_file, format=args.format, out_path=args.out_path, extension=args.extension) File "/usr/local/lib/python3.9/site-packages/gdoc_down/core.py", line 190, in download google_id = self.get_google_id(google_file) File "/usr/local/lib/python3.9/site-packages/gdoc_down/core.py", line 216, in get_google_id with open(google_file) as data_file: OSError: [Errno 45] Operation not supported: "/Volumes/GoogleDrive/My Drive/.......gdoc"

Note that I'm using it with the current Google "Drive for Desktop" app (on a Mac), rather than their "Backup and Sync" app. However, Backup and Sync is going away this year, with Drive for Desktop replacing it:

https://9to5google.com/2021/02/04/google-drive-for-desktop-replace

So I'm wondering if this still tool works or if there are plans to maintain it? I'm trying to build a Google Drive backup solution that backs up .gdoc, .gsheet, .gslides files individually to actual Office file formats rather than shortcuts, and this is the only command-line tool I've been able to locate.

Thanks!

michael1006 avatar May 16 '21 21:05 michael1006