Comment #2 on issue 680 by dbertoui...@gmail.com: Python pickling depends on the path used during compilaton
https://code.google.com/p/protobuf/issues/detail?id=680

In the first case (Step 2).

Traceback (most recent call last):
  File "test.py", line 11, in <module>
    cPickle.dumps(obj)
cPickle.PicklingError: Can't pickle <class 'libs.pblib.obj_pb2.ObjectA'>: import of module libs.pblib.obj_pb2 failed

In the third case (Step 4)

Traceback (most recent call last):
  File "test.py", line 11, in <module>
    cPickle.dumps(obj)
cPickle.PicklingError: Can't pickle <class 'obj_pb2.ObjectA'>: import of module obj_pb2 failed

I should also note that this seemed to be introduced in 2.6. No exceptions are raised when using 2.5.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to