Help - Search - Members - Calendar
Full Version: Problem With Pickle Module - Solved
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Python
zmiq2
Hi,

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

CODE
 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
zmiq2
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 ?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.