cPickle from 2.2 to 2.1

Discussion in 'Python' started by paul, Dec 14, 2003.

  1. paul

    paul Guest

    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
    paul, Dec 14, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Drochom

    cPickle alternative?

    Drochom, Aug 15, 2003, in forum: Python
    Replies:
    13
    Views:
    846
    Michael Peuser
    Aug 17, 2003
  2. Carsten Gips

    Jython: jythonc and cPickle

    Carsten Gips, Sep 9, 2003, in forum: Python
    Replies:
    0
    Views:
    415
    Carsten Gips
    Sep 9, 2003
  3. Guenter Walser
    Replies:
    0
    Views:
    595
    Guenter Walser
    Oct 15, 2003
  4. Tim Peters

    RE: cPickle from 2.2 to 2.1

    Tim Peters, Dec 14, 2003, in forum: Python
    Replies:
    6
    Views:
    452
    Bengt Richter
    Dec 15, 2003
  5. Jesse Bloom

    problem using pickle / cPickle

    Jesse Bloom, Jan 2, 2004, in forum: Python
    Replies:
    1
    Views:
    377
    Vojin Jovanovic
    Jan 3, 2004
Loading...

Share This Page