cPickle from 2.2 to 2.1

P

paul

hi list,

I use cPickle in a small .cgi to save data. It run's fine on python
2.2.3 (used for development) but fails on 2.1.1 (webserver) with:

File "spyblog.py", line 543, in __init__
self.entry = cPickle.load(open(log + self.filename, 'r+'))
SystemError: Failed to import class _reconstructor from module copy_reg


If I create the file on the webserver everything works, so apparently
the 2.1.1 version of cPickle can't read files generated with the newer
one. Does it mean the cPickle format is not compatible across versions?

thx
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top