OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Problem With Pickle Module - Solved, read solution inside
zmiq2
post May 20 2005, 06:44 AM
Post #1





Group: Members
Posts: 385
Joined: 3-December 03
Member No.: 1,038



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
Go to the top of the page
 
+Quote Post
zmiq2
post May 21 2005, 01:11 PM
Post #2





Group: Members
Posts: 385
Joined: 3-December 03
Member No.: 1,038



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 ?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th April 2014 - 02:09 PM