Title: InsertPhotoSimple - [Errno 32] Broken Pipe · Issue #53 · google/gdata-python-client · GitHub
Open Graph Title: InsertPhotoSimple - [Errno 32] Broken Pipe · Issue #53 · google/gdata-python-client
X Title: InsertPhotoSimple - [Errno 32] Broken Pipe · Issue #53 · google/gdata-python-client
Description: I am using TouchSelfie to create a simple photobooth. It should allow me to upload photos to a Google photos album, and was working yesterday. Today the uploading feature seemed to stop. I can query my photo albums successfully using the...
Open Graph Description: I am using TouchSelfie to create a simple photobooth. It should allow me to upload photos to a Google photos album, and was working yesterday. Today the uploading feature seemed to stop. I can quer...
X Description: I am using TouchSelfie to create a simple photobooth. It should allow me to upload photos to a Google photos album, and was working yesterday. Today the uploading feature seemed to stop. I can quer...
Opengraph URL: https://github.com/google/gdata-python-client/issues/53
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"InsertPhotoSimple - [Errno 32] Broken Pipe","articleBody":"I am using [TouchSelfie](https://github.com/wyolum/TouchSelfie) to create a simple photobooth. It should allow me to upload photos to a Google photos album, and was working yesterday. Today the uploading feature seemed to stop. \r\n\r\nI can query my photo albums successfully using the following example code:\r\n```\r\nphotos = client.GetFeed(album_url)\r\nfor photo in photos.entry:\r\n print 'Photo title:', photo.title.text\r\n```\r\nSince the photos in that album get printed, I presume my credentials are working fine. \r\n\r\nBut if I try to upload a photo using the `InsertPhotoSimple` function I get `error: [Errno 32] Broken pipe` The InsertPhotoSimple code I am using is straight from the [API Documentation](https://developers.google.com/picasa-web/docs/1.0/developers_guide_python) \r\n```\r\nclient.InsertPhotoSimple(album_url, 'Test Photo', 'Testing API', \"myphoto.png\", content_type='image/png')\r\n```\r\n\r\nI can't figure it out what happened! My codebase didn't change, but now I am getting errors. Any help is appreciated!\r\n \r\nThe full stack trace: \r\n```\r\nclient.InsertPhotoSimple(album_url, 'AYYY', 'Test API', \"logo.png\", content_type='image/png')\r\n---------------------------------------------------------------------------\r\nerror Traceback (most recent call last)\r\n\u003cipython-input-72-ffbac228ff15\u003e in \u003cmodule\u003e()\r\n----\u003e 1 client.InsertPhotoSimple(album_url, 'AYYY', 'Test API', \"logo.png\", content_type='image/png')\r\n\r\n/usr/lib/python2.7/dist-packages/gdata/photos/service.pyc in InsertPhotoSimple(self, album_or_uri, title, summary, filename_or_handle, content_type, keywords)\r\n 468 metadata.media.keywords = gdata.media.Keywords(text=keywords)\r\n 469 return self.InsertPhoto(album_or_uri, metadata, filename_or_handle,\r\n--\u003e 470 content_type)\r\n 471\r\n 472 def UpdatePhotoMetadata(self, photo):\r\n\r\n/usr/lib/python2.7/dist-packages/gdata/photos/service.pyc in InsertPhoto(self, album_or_uri, photo, filename_or_handle, content_type)\r\n 424 try:\r\n 425 return self.Post(photo, uri=feed_uri, media_source=mediasource,\r\n--\u003e 426 converter=gdata.photos.PhotoEntryFromString)\r\n 427 except gdata.service.RequestError, e:\r\n 428 raise GooglePhotosException(e.args[0])\r\n\r\n/usr/lib/python2.7/dist-packages/gdata/service.pyc in Post(self, data, uri, extra_headers, url_params, escape_params, redirects_remaining, media_source, converter)\r\n 1233 extra_headers=extra_headers, url_params=url_params,\r\n 1234 escape_params=escape_params, redirects_remaining=redirects_remaining,\r\n-\u003e 1235 media_source=media_source, converter=converter)\r\n 1236\r\n 1237 def PostOrPut(self, verb, data, uri, extra_headers=None, url_params=None,\r\n\r\n/usr/lib/python2.7/dist-packages/gdata/service.pyc in PostOrPut(self, verb, data, uri, extra_headers, url_params, escape_params, redirects_remaining, media_source, converter)\r\n 1300 server_response = self.request(verb, uri,\r\n 1301 data=[multipart[0], data_str, multipart[1], media_source.file_handle,\r\n-\u003e 1302 multipart[2]], headers=extra_headers, url_params=url_params)\r\n 1303 result_body = server_response.read()\r\n 1304\r\n\r\n/usr/lib/python2.7/dist-packages/atom/__init__.pyc in optional_warn_function(*args, **kwargs)\r\n 90 if ENABLE_V1_WARNINGS:\r\n 91 warnings.warn(warning, DeprecationWarning, stacklevel=2)\r\n---\u003e 92 return f(*args, **kwargs)\r\n 93 # Preserve the original name to avoid masking all decorated functions as\r\n 94 # 'deprecated_function'\r\n\r\n/usr/lib/python2.7/dist-packages/atom/service.pyc in request(self, operation, url, data, headers, url_params)\r\n 183 auth_token = self.token_store.find_token(url)\r\n 184 return auth_token.perform_request(self.http_client, operation, url,\r\n--\u003e 185 data=data, headers=all_headers)\r\n 186\r\n 187 request = atom.v1_deprecated(\r\n\r\n/usr/lib/python2.7/dist-packages/atom/http_interface.pyc in perform_request(self, http_client, operation, url, data, headers)\r\n 146 headers=None):\r\n 147 \"\"\"For the GenericToken, no Authorization token is set.\"\"\"\r\n--\u003e 148 return http_client.request(operation, url, data=data, headers=headers)\r\n 149\r\n 150 def valid_for_scope(self, url):\r\n\r\n/usr/lib/python2.7/dist-packages/atom/http.pyc in request(self, operation, url, data, headers)\r\n 167 if isinstance(data, list):\r\n 168 for data_part in data:\r\n--\u003e 169 _send_data_part(data_part, connection)\r\n 170 else:\r\n 171 _send_data_part(data, connection)\r\n\r\n/usr/lib/python2.7/dist-packages/atom/http.pyc in _send_data_part(data, connection)\r\n 353 binarydata = data.read(100000)\r\n 354 if binarydata == '': break\r\n--\u003e 355 connection.send(binarydata)\r\n 356 return\r\n 357 else:\r\n\r\n/usr/lib/python2.7/httplib.pyc in send(self, data)\r\n 853 datablock = data.read(blocksize)\r\n 854 else:\r\n--\u003e 855 self.sock.sendall(data)\r\n 856\r\n 857 def _output(self, s):\r\n\r\n/usr/lib/python2.7/ssl.pyc in sendall(self, data, flags)\r\n 699 count = 0\r\n 700 while (count \u003c amount):\r\n--\u003e 701 v = self.send(data[count:])\r\n 702 count += v\r\n 703 return amount\r\n\r\n/usr/lib/python2.7/ssl.pyc in send(self, data, flags)\r\n 665 self.__class__)\r\n 666 try:\r\n--\u003e 667 v = self._sslobj.write(data)\r\n 668 except SSLError as x:\r\n 669 if x.args[0] == SSL_ERROR_WANT_READ:\r\n\r\nerror: [Errno 32] Broken pipe\r\n```\r\n","author":{"url":"https://github.com/gblanchard4","@type":"Person","name":"gblanchard4"},"datePublished":"2017-01-28T07:49:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/53/gdata-python-client/issues/53"}
| 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:41828b9c-4957-57f5-cce5-2124b06ab222 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A94:357B25:107A44B:17338E6:6A606CBB |
| html-safe-nonce | 44bdcac8657a263894817350c8839d2afe8c06f8e8d90d015768ea685e6f1fd2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTk0OjM1N0IyNToxMDdBNDRCOjE3MzM4RTY6NkE2MDZDQkIiLCJ2aXNpdG9yX2lkIjoiNDg3MTc0MjMwODU1MDIwODY5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 049d5938e22ff8de938c2ac7156807ba78082d56c3897c88790cf2b63032ea2d |
| hovercard-subject-tag | issue:203794038 |
| 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/53/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c49414967c96faac922417db9f8165e12dcafe6123c222ab4d3791534b84b6c/google/gdata-python-client/issues/53 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c49414967c96faac922417db9f8165e12dcafe6123c222ab4d3791534b84b6c/google/gdata-python-client/issues/53 |
| og:image:alt | I am using TouchSelfie to create a simple photobooth. It should allow me to upload photos to a Google photos album, and was working yesterday. Today the uploading feature seemed to stop. I can quer... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gblanchard4 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0 |
| 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 | 9824515e740d83d5eb82168a089b806ab0fe04a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width