unpickling an NT object in Solaris?

Bill Dozier dozier at bellatlantic.net
Tue Apr 20 17:58:49 EDT 1999


Problem solved. It seems that the cPickle module is not sufficiently
cross-platform.

The text mode of pickling is not cross-platform and seems to expect UNIX
linefeeds. :P

If I use the binary mode, everything's OK.


In article
<dozier-2004991057490001 at client-151-200-124-68.bellatlantic.net>,
dozier at bellatlantic.net (Bill Dozier) wrote:

>I created an object running python on NT and pickled it. I have no problem
>unpickling on NT, but when I ftp'd the file over to Solaris, I get an
>ImportError exception ("No module named __main__^M") when I try to
>unpickle it.
>




More information about the Python-list mailing list