Title: large file download fails with OverflowError · Issue #5 · google/gdata-python-client · GitHub
Open Graph Title: large file download fails with OverflowError · Issue #5 · google/gdata-python-client
X Title: large file download fails with OverflowError · Issue #5 · google/gdata-python-client
Description: Files in Google Drive which are more than 2GB fail to download on my 32 bit Linux machine. $ python gdata-get.py Traceback (most recent call last): File "gdata-get.py", line 129, in g._get('bigvid.avi', '/mnt/bigstore/tmp/testbigdownload...
Open Graph Description: Files in Google Drive which are more than 2GB fail to download on my 32 bit Linux machine. $ python gdata-get.py Traceback (most recent call last): File "gdata-get.py", line 129, in g._get('bigvid....
X Description: Files in Google Drive which are more than 2GB fail to download on my 32 bit Linux machine. $ python gdata-get.py Traceback (most recent call last): File "gdata-get.py", line 129, in g._ge...
Opengraph URL: https://github.com/google/gdata-python-client/issues/5
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"large file download fails with OverflowError","articleBody":"Files in Google Drive which are more than 2GB fail to download on my 32 bit Linux machine.\n\n$ python gdata-get.py\nTraceback (most recent call last):\n File \"gdata-get.py\", line 129, in \u003cmodule>\n g._get('bigvid.avi', '/mnt/bigstore/tmp/testbigdownload.avi') \n File \"gdata-get.py\", line 79, in _get\n self.client.DownloadResource(entry, local_path) #.name)\n File \"/usr/local/lib/python2.7/dist-packages/gdata/docs/client.py\", line 369, in download_resource\n self._download_file(uri, file_path, *_kwargs)\n File \"/usr/local/lib/python2.7/dist-packages/gdata/docs/client.py\", line 468, in _download_file\n f.write(self._get_content(uri, *_kwargs))\n File \"/usr/local/lib/python2.7/dist-packages/gdata/docs/client.py\", line 451, in _get_content\n return server_response.read()\n File \"/usr/lib/python2.7/httplib.py\", line 541, in read\n return self._read_chunked(amt)\n File \"/usr/lib/python2.7/httplib.py\", line 624, in _read_chunked\n return ''.join(value)\nOverflowError: join() result is too long for a Python string\n\nThis issue came to light when I was using duplicity; the script gdata-get.py is a simplified version of some code from duplicity. To exhibit the issue, I first uploaded a large video (2,792,304,612 bytes) to /test-gdata/bigvid.avi in Google Drive, and added the appropriate authentication strings to line 49 of gdata-get.py. The destination filename in the final line should also be edited.\n\nI have pastebinned gdata-get.py here: http://pastebin.com/mFK8TQiG\n\nVersion info:\n\n$ pip search gdata|grep INSTALLED\n INSTALLED: 2.0.18 (latest)\n$ apt-cache policy python|grep Installed\n Installed: 2.7.3-0ubuntu2.2\n$ cat /etc/lsb-release \nDISTRIB_ID=Ubuntu\nDISTRIB_RELEASE=12.04\nDISTRIB_CODENAME=precise\nDISTRIB_DESCRIPTION=\"Ubuntu 12.04.5 LTS\"\n","author":{"url":"https://github.com/rupertlevene","@type":"Person","name":"rupertlevene"},"datePublished":"2015-02-09T19:07:50Z","url":"https://github.com/google/gdata-python-client/issues/5"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9370e3ca-e828-7d81-0eed-1b8d32535cde |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C792:1201C:133DBBD:199A5D5:6B012333 |
| html-safe-nonce | 0be14a303d6c7e4ff003ded8de95cafbb0405b046f289098bf077d64043f4b45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzkyOjEyMDFDOjEzM0RCQkQ6MTk5QTVENTo2QjAxMjMzMyIsInZpc2l0b3JfaWQiOiIxMzM5NjA3MzQwODY5MDM0ODAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 84cb8239d688ff56a3e6e3debaea7e65ffc093d259a90eef53bf604b5613e6f1 |
| hovercard-subject-tag | issue:57074816 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/gdata-python-client/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d6f0aa8897b5123f96880932cda1dec443d6199fae37fc24d9e96eda6017bfc9/google/gdata-python-client/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d6f0aa8897b5123f96880932cda1dec443d6199fae37fc24d9e96eda6017bfc9/google/gdata-python-client/issues/5 |
| og:image:alt | Files in Google Drive which are more than 2GB fail to download on my 32 bit Linux machine. $ python gdata-get.py Traceback (most recent call last): File "gdata-get.py", line 129, in g._get('bigvid.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rupertlevene |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/google/gdata-python-client git https://github.com/google/gdata-python-client.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 28202851 |
| octolytics-dimension-repository_nwo | google/gdata-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 28202851 |
| octolytics-dimension-repository_network_root_nwo | google/gdata-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width