vishwa306 / googlecl

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

MemoryError when downloading a large file #558

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. `google docs get largefile.tgz`

largefile.tgz is 1.6G

What is the expected output? What do you see instead?
expected to download the file without error.
instead, received the following error:
<pre>
Downloading largefile.tgz to ./largefile.tgz
Traceback (most recent call last):
  File "/usr/bin/google", line 991, in <module>
    main()
  File "/usr/bin/google", line 977, in main
    run_once(options, args)
  File "/usr/bin/google", line 763, in run_once
    task.run(client, options, args)
  File "/usr/lib/pymodules/python2.6/googlecl/docs/__init__.py", line 141, in _run_get
    client.get_docs(options.dest, entries, file_ext=options.format)
  File "/usr/lib/pymodules/python2.6/googlecl/docs/base.py", line 236, in get_docs
    self.Download(entry, path)
  File "/usr/local/lib/python2.6/dist-packages/gdata/docs/client.py", line 501, in download
    self._download_file(url, file_path, auth_token=auth_token, **kwargs)
  File "/usr/lib/pymodules/python2.6/googlecl/docs/client.py", line 138, in _download_file
    response_string = self.get_file_content(uri, auth_token=auth_token)
  File "/usr/local/lib/python2.6/dist-packages/gdata/docs/client.py", line 81, in get_file_content
    return server_response.read()
  File "/usr/lib/python2.6/httplib.py", line 529, in read
    s = self._safe_read(self.length)
  File "/usr/lib/python2.6/httplib.py", line 624, in _safe_read
    return ''.join(s)
MemoryError
</pre>

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
debian 6.0.8 "squeeze", googlecl_0.9.14-2_all.deb, gdata-2.0.14

Original issue reported on code.google.com by aa...@messageagency.com on 28 Apr 2014 at 5:17