Title: blob.download_to_filename() broken with 0.27.0 · Issue #3841 · googleapis/google-cloud-python · GitHub
Open Graph Title: blob.download_to_filename() broken with 0.27.0 · Issue #3841 · googleapis/google-cloud-python
X Title: blob.download_to_filename() broken with 0.27.0 · Issue #3841 · googleapis/google-cloud-python
Description: I open the bug here since it's linked to the new release 0.27.0 (urrlib2 -> requests), though it crashes in dependency google-resumable-media-python File "/home/tristan/p/api/api/utilities/storage.py", line 21, in get_gcs_blob blob.downl...
Open Graph Description: I open the bug here since it's linked to the new release 0.27.0 (urrlib2 -> requests), though it crashes in dependency google-resumable-media-python File "/home/tristan/p/api/api/utilities/storage....
X Description: I open the bug here since it's linked to the new release 0.27.0 (urrlib2 -> requests), though it crashes in dependency google-resumable-media-python File "/home/tristan/p/api/api/utilit...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/3841
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"blob.download_to_filename() broken with 0.27.0","articleBody":"I open the bug here since it's linked to the new release 0.27.0 (urrlib2 -\u003e requests), though it crashes in dependency google-resumable-media-python\r\n\r\n```\r\n File \"/home/tristan/p/api/api/utilities/storage.py\", line 21, in get_gcs_blob\r\n blob.download_to_filename(local_path)\r\n File \"/home/tristan/env/api/local/lib/python2.7/site-packages/google/cloud/storage/blob.py\", line 482, in download_to_filename\r\n self.download_to_file(file_obj, client=client)\r\n File \"/home/tristan/env/api/local/lib/python2.7/site-packages/google/cloud/storage/blob.py\", line 464, in download_to_file\r\n self._do_download(transport, file_obj, download_url, headers)\r\n File \"/home/tristan/env/api/local/lib/python2.7/site-packages/google/cloud/storage/blob.py\", line 418, in _do_download\r\n download.consume(transport)\r\n File \"/home/tristan/env/api/local/lib/python2.7/site-packages/google/resumable_media/requests/download.py\", line 101, in consume\r\n self._write_to_stream(result)\r\n File \"/home/tristan/env/api/local/lib/python2.7/site-packages/google/resumable_media/requests/download.py\", line 62, in _write_to_stream\r\n with response:\r\nAttributeError: __exit__\r\n```","author":{"url":"https://github.com/tcroiset","@type":"Person","name":"tcroiset"},"datePublished":"2017-08-18T14:37:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/3841/google-cloud-python/issues/3841"}
| 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:c95cbcb8-57d8-c322-92b5-8f796380e7de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 939C:3C1583:E47C03:E9F38F:6A4DC4BF |
| html-safe-nonce | df961aa2af0857c4dd16b9aa4406bd360b9b5ee750c3df84079579709466e19a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzlDOjNDMTU4MzpFNDdDMDM6RTlGMzhGOjZBNERDNEJGIiwidmlzaXRvcl9pZCI6IjUxMDI2MDA0Mzc0MTc3NTAzOSIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | a37de9060084cecd43b7d1a5e45715ff3bff488cfac5a79603c0f22164d37984 |
| hovercard-subject-tag | issue:251265226 |
| 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/googleapis/google-cloud-python/3841/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f421bb0c2bb0155da25d7e01c9aca60e1fdbe9c8a0a17fee0951712850be76b/googleapis/google-cloud-python/issues/3841 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f421bb0c2bb0155da25d7e01c9aca60e1fdbe9c8a0a17fee0951712850be76b/googleapis/google-cloud-python/issues/3841 |
| og:image:alt | I open the bug here since it's linked to the new release 0.27.0 (urrlib2 -> requests), though it crashes in dependency google-resumable-media-python File "/home/tristan/p/api/api/utilities/storage.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tcroiset |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width