unpickling an NT object in Solaris?
Stefan Franke
spamfranke at bigfoot.de
Tue Apr 20 13:29:43 EDT 1999
On Tue, 20 Apr 1999 10:57:49 -0400, dozier at bellatlantic.net (Bill Dozier) wrote:
>Hi,
>
>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.
>
Pickling uses a text format which should be platform independent.
My guess: Did you transfer via FTP in text mode? In that case, line
endings get converted. "__main__^M" seems to point at this.
Stefan
More information about the Python-list
mailing list