gam user "user...@mydomain.com" get drivefile query "'me' in owners" format microsoft targetfolder "C:\test"
Searching for files with query: "'me' in owners"... got 139 files...Downloading Google Doc: C:\test/SLC - from User 2014Traceback (most recent call last): File "gam.py", line 7353, in <module> File "gam.py", line 2339, in downloadDriveFileUnboundLocalError: local variable 'download_url' referenced before assignment
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/35defef8-bf5d-4609-b2be-d790bf802b7c%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
--
Jay Lee
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/a03da931-1bdf-4fe1-89a4-4c2d0f20e0f3%40googlegroups.com.
Jay Lee
Thanks,Ed
Jay Lee
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/35defef8-bf5d-4609-b2be-d790bf802b7c%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
Searching for files with query: "'me' in owners and mimeType != 'application/vnd.google-apps.folder'"...
Traceback (most recent call last):
File "gam.py", line 7177, in <module>
File "gam.py", line 2225, in downloadDriveFile
File "gam.py", line 1844, in doDriveSearch
File "gam.py", line 434, in callGAPIpages
File "gam.py", line 374, in callGAPI
File "oauth2client\util.pyo", line 132, in positional_wrapper
File "apiclient\http.pyo", line 716, in execute
File "oauth2client\util.pyo", line 132, in positional_wrapper
File "oauth2client\client.pyo", line 490, in new_request
File "httplib2\__init__.pyo", line 1593, in request
File "httplib2\__init__.pyo", line 1396, in _request
File "httplib2\__init__.pyo", line 448, in _updateCache
File "httplib2\__init__.pyo", line 715, in set
IOError: [Errno 2] No such file or directory: 'C:\\Users\\userprofile\\Desktop\\gam\\gamcache\\www.googleapis.com,drive,v2,files,q=%27me%27+in+owners+and+m
imeType+%21%3D+%27application%2Fvnd.google-apps.folder%27&fields=nextPageToken%2Citems%28id%29&alt=json&prettyPrint=false&maxResults=1000,hashremovedforsecurity'
Searching for files with query: "'me' in owners"...
got 589 files...
Downloading Google Doc: C:\Users\userprofile\Desktop\gam\_GoogleDrive-userfolder/Senior Seminar.odt
Downloading: C:\Users\userprofile\Desktop\gam\_GoogleDrive-userfolder/WhatisGovernment.pdf of 8mb bytes
Traceback (most recent call last):
File "gam.py", line 7177, in <module>
File "gam.py", line 2275, in downloadDriveFile
File "oauth2client\util.pyo", line 132, in positional_wrapper
File "oauth2client\client.pyo", line 490, in new_request
File "httplib2\__init__.pyo", line 1593, in request
File "httplib2\__init__.pyo", line 1396, in _request
File "httplib2\__init__.pyo", line 448, in _updateCache
File "httplib2\__init__.pyo", line 715, in set
IOError: [Errno 2] No such file or directory: 'C:\\Users\\userprofile\\Desktop\\gam\\gamcache\\doc-14-3c-docs.googleusercontent.com,docs,securesc,hashesremovedforsecurity'
Senior Seminar.odt".
Same results both with "format Microsoft" and without.
On May 7, 2020, at 11:11 PM, Rajesh Sadasivan <rajesh...@gmail.com> wrote:
Python has lexical scoping by default, which means that although an enclosed scope can access values in its enclosing scope, it cannot modify them (unless they're declared global with the global keyword). A closure binds values in the enclosing environment to names in the local environment. The local environment can then use the bound value, and even reassign that name to something else, but it can't modify the binding in the enclosing environment. UnboundLocalError happend because when python sees an assignment inside a function then it considers that variable as local variable and will not fetch its value from enclosing or global scope when we execute the function. To modify a global variable inside a function, you must use the global keyword.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/e256664c-561d-4c87-960c-92c978283bde%40googlegroups.com.