Author Topic: Problem With Pickle Module - Solved  (Read 3843 times)

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Problem With Pickle Module - Solved
« on: May 20, 2005, 10:44:28 am »
Hi,

when loading an already save variable using pickle, I get the following error:

Code: [Select]
 File "nm.1.3.py", line 799, in __init__
    sett = pickle.load(fp)
  File "/usr/lib/python2.4/pickle.py", line 1390, in load
    return Unpickler(file).load()
  File "/usr/lib/python2.4/pickle.py", line 872, in load
    dispatch[key](self)
  File "/usr/lib/python2.4/pickle.py", line 985, in load_string
    self.append(rep.decode("string-escape"))
LookupError: no codec search functions registered: can't find encoding

Does anyone know what python-* must I install to make it work?

TIA
« Last Edit: May 21, 2005, 05:11:38 pm by zmiq2 »
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Problem With Pickle Module - Solved
« Reply #1 on: May 21, 2005, 05:11:07 pm »
solved:

it seems that python-codecs is also needed for pickle to run.

1) thanks to zecke for his help

2) python-pickle package should have python-codecs as a requisite ?
« Last Edit: May 21, 2005, 05:12:26 pm by zmiq2 »
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1