pickle: No module named on. HELP!

fanbanlo henryho at NO__SPAMM_.telus.net
Sat Mar 19 12:30:37 CET 2005


fanbanlo wrote:
> What seems to be the matter?
> 
> 
>  >>> path = 
> "C:\\eclipse\\workspace\\moin134\\docbook\\xslt\\html\\db_compiled.dat"
>  >>> f = file(path)
>  >>> cPickle.load(f)
> Traceback (most recent call last):
>  File "<interactive input>", line 1, in ?
> ImportError: No module named on.
>  >>> f = file(path)
>  >>> pickle.load(f)
> Traceback (most recent call last):
>  File "<interactive input>", line 1, in ?
>  File "C:\Python24\lib\pickle.py", line 1390, in load
>    return Unpickler(file).load()
>  File "C:\Python24\lib\pickle.py", line 872, in load
>    dispatch[key](self)
>  File "C:\Python24\lib\pickle.py", line 1083, in load_inst
>    klass = self.find_class(module, name)
>  File "C:\Python24\lib\pickle.py", line 1138, in find_class
>    __import__(module)
> ImportError: No module named on.
> 
> 
> 
> Thanks,
> 
> Henry

Got it, forgot to open file in binary mode. Thx



More information about the Python-list mailing list