Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 307 by pkwar...@gmail.com: Missing import 'text_format' in cpp_message.py - unicode() fails on Message
http://code.google.com/p/protobuf/issues/detail?id=307

What steps will reproduce the problem?
1. Enable the C++ protobufs via the environment variable.
2. Create a protobuf.
3. Attempt to print or access unicode(protobuf).

What is the expected output? What do you see instead?
Expect to see a unicode representation of the protobuf.

Instead I'm seeing this:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
File "/usr/local/lib/python/google/protobuf/internal/cpp_message.py", line 584, in __unicode__
    return text_format.MessageToString(self, as_utf8=True).decode('utf-8')
NameError: global name 'text_format' is not defined

What version of the product are you using? On what operating system?
2.4.0a on Linux.

Please provide any additional information below.


--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to