calopter / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Google docs d/l not working from inside Python script or OSX batch file #501

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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!

Original issue reported on code.google.com by cty.jga...@gmail.com on 31 Oct 2012 at 11:43