Issue 501 in googlecl: Google docs d/l not working from inside Python script or OSX batch file

10 views
Skip to first unread message

goog...@googlecode.com

unread,
Oct 31, 2012, 7:43:33 AM10/31/12
to google...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 501 by cty.jga...@gmail.com: Google docs d/l not working from
inside Python script or OSX batch file
http://code.google.com/p/googlecl/issues/detail?id=501

What steps will reproduce the problem?
1. Running "google docs get "Reassessment Request" --format csv
/users/myaccount/Desktop" from inside OSX shell script
2.
3.

What is the expected output? What do you see instead?
Both don't seem to allow the script time to complete. There's a Python
error:
"Traceback (most recent call last):
File "/Users/myaccount/Desktop/reassess2.py", line 17, in <module>
subprocess.call('google docs get "Reassessment Request" --format csv
/Users/myaccount/Desktop')

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 493, in call
return Popen(*popenargs, **kwargs).wait()

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 679, in __init__
errread, errwrite)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory"

When I run the shell script (running the command line above), I get:
?/Users/myaccount/Desktop/ReScript.sh ; exit;
.csvloading Reassessment Request to /users/myaccount/Desktop
logout

[Process completed]",
but no file is actually downloaded.


What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
OSX Mountain Lion; 0.9.13 cl; 2.0.17 gdata (I think - not the most recent,
but the one that works with cl)


Please provide any additional information below.

Thanks for the help!

Reply all
Reply to author
Forward
0 new messages