You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
849 B

From: spamfranke at (Stefan Franke)
Date: Tue, 20 Apr 1999 17:29:43 GMT
Subject: unpickling an NT object in Solaris?
References: <>
Message-ID: <>
X-UID: 41
On Tue, 20 Apr 1999 10:57:49 -0400, dozier at (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.
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.