Skip to content

Instantly share code, notes, and snippets.

@macks
Created September 12, 2010 12:45
Show Gist options
  • Select an option

  • Save macks/576040 to your computer and use it in GitHub Desktop.

Select an option

Save macks/576040 to your computer and use it in GitHub Desktop.
phonenumber_util session
Traceback (most recent call last):
File "phonenumber_util.py", line 4, in <module>
data.ParseFromString(open('data/PhoneNumberMetadataProto_US').read())
File "/usr/lib/pymodules/python2.6/google/protobuf/message.py", line 168, in ParseFromString
self.MergeFromString(serialized)
File "/usr/lib/pymodules/python2.6/google/protobuf/reflection.py", line 824, in MergeFromString
raise message_mod.DecodeError('Unexpected end-group tag.')
google.protobuf.message.DecodeError: Unexpected end-group tag.
from phonemetadata_pb2 import PhoneMetadata
data = PhoneMetadata()
data.ParseFromString(open('data/PhoneNumberMetadataProto_US').read())
print data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment