{"action":"opened","issue":{"url":"https://api.github.com/repos/google/protobuf/issues/2281","repository_url":"https://api.github.com/repos/google/protobuf","labels_url":"https://api.github.com/repos/google/protobuf/issues/2281/labels{/name}","comments_url":"https://api.github.com/repos/google/protobuf/issues/2281/comments","events_url":"https://api.github.com/repos/google/protobuf/issues/2281/events","html_url":"https://github.com/google/protobuf/issues/2281","id":184885152,"number":2281,"title":"Python ParseFromString error","user":{"login":"anbai106","id":16743978,"avatar_url":"https://avatars.githubusercontent.com/u/16743978?v=3","gravatar_id":"","url":"https://api.github.com/users/anbai106","html_url":"https://github.com/anbai106","followers_url":"https://api.github.com/users/anbai106/followers","following_url":"https://api.github.com/users/anbai106/following{/other_user}","gists_url":"https://api.github.com/users/anbai106/gists{/gist_id}","starred_url":"https://api.github.com/users/anbai106/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anbai106/subscriptions","organizations_url":"https://api.github.com/users/anbai106/orgs","repos_url":"https://api.github.com/users/anbai106/repos","events_url":"https://api.github.com/users/anbai106/events{/privacy}","received_events_url":"https://api.github.com/users/anbai106/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-24T16:08:51Z","updated_at":"2016-10-24T16:08:51Z","closed_at":null,"body":"I open and read a .proto file on my mac by protobuf(3.1.0) and always get the error:\r\n\r\n> Traceback (most recent call last):\r\n  File \"tutorial_test.py\", line 46, in <module>\r\n    address_book.ParseFromString(f.read())\r\ngoogle.protobuf.message.DecodeError: Error parsing message\r\n\r\nand the code is here, it is very simple, just open and read, i dont get where is the problem, I have to say from when i use protobuf, i always have problems, and rarely get help from you, maybe i came to the wrong place.\r\n\r\n`f = open('/Users/junhao.wen/Hao/tutorial/Protocol_buffers_tutorial/tutorial/Protocol_buffers_basic_python/address_book/addressbook.proto', 'rb')\r\n  address_book.ParseFromString(f.read())\r\n  f.close()`\r\n\r\nThanks in advance"}}
{"actor":{"display_login":"anbai106"}}