This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gjb1002
Recipients
Date 2007-05-23.16:42:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
On UNIX, I cannot read pickle files created on Windows using the cPickle module, even if I open the file with universal line endings.

It works fine with the pickle module but is of course slower (and I have to read lots of them)

I attach a test case that pickles and unpickles an smptlib.SMTP object, converting the file to DOS format in between. There is nothing special about SMTP, you can use any object at all in a different module. 

On my system (RHEL4 with Python 2.4.3) I get the following output:

portmoller : pickletest.py cPickle
unix2dos: converting file dump to DOS format ...
Traceback (most recent call last):
  File "pickletest.py", line 14, in ?
    print load(readFile)
ImportError: No module named smtplib
portmoller : pickletest.py pickle
unix2dos: converting file dump to DOS format ...
<smtplib.SMTP instance at 0xb7ea350c>
History
Date User Action Args
2007-08-23 14:54:06adminlinkissue1724366 messages
2007-08-23 14:54:06admincreate