Open GoogleCodeExporter opened 9 years ago
I feel this might be more like a gdata-python-client issue since googlecl
doesn't upload/download on its own.
There is a sample [1] for docs, I didn't try it but it has upload function and
you can try it with ZIP format, formats see [2]. But you might want to try next
first.
Since the error is from socket module, there is a quick trick
import socket
socket.setdefaulttimeout(86400) # one day should be enough
Try to insert this into the beginning of code of google.py, it should be a
temporary workaround. If this trick does work for you, it's better that you
open an issue on gdata-python-client, but I guess there might already be one.
However, I did a quick grep on its code, there was nothing about default
timeout, so it's not been dealt with yet.
[1]
http://code.google.com/p/gdata-python-client/source/browse/samples/docs/docs_exa
mple.py
[2]
http://code.google.com/p/gdata-python-client/source/browse/src/gdata/docs/servic
e.py#58
Original comment by livibet...@gmail.com
on 3 Sep 2011 at 2:29
Hmm, where might I find google.py. I can see the following on Ubuntu 11.04:
rupert@srvr:/usr/share/pyshared/gdata$ ls
acl calendar_resource exif oauth test_config.py
alt client.py finance opensearch test_data.py
analytics codesearch gauth.py photos tlslite
apps contacts geo projecthosting urlfetch.py
auth.py core.py health sample_util.py webmastertools
base Crypto __init__.py service.py youtube
blogger data.py maps sites
books docs media spreadsheet
calendar dublincore notebook spreadsheets
Original comment by r.plumri...@gmail.com
on 3 Sep 2011 at 3:22
Sorry, my bad. It's in googlecl [1], that trick doesn't require you to modify
gdata.
[1] http://code.google.com/p/googlecl/source/browse/#svn%2Ftrunk%2Fsrc
Original comment by livibet...@gmail.com
on 3 Sep 2011 at 3:30
Cool, I'll give it a whirl.
Original comment by r.plumri...@gmail.com
on 3 Sep 2011 at 5:44
Cool, I'll give it a whirl.
UPDATE
That fixed worked for a 4.5 MB file, will be trying it with a larger file this
evening ;)
Original comment by r.plumri...@gmail.com
on 3 Sep 2011 at 7:19
Original issue reported on code.google.com by
r.plumri...@gmail.com
on 3 Sep 2011 at 1:44