By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,089 Members | 2,418 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,089 IT Pros & Developers. It's quick & easy.

pickle: No module named on. HELP!

P: n/a
What seems to be the matter?

path = "C:\\eclipse\\workspace\\moin134\\docbook\\xslt\\h tml\\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
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
fanbanlo wrote:
What seems to be the matter?

>>> path = "C:\\eclipse\\workspace\\moin134\\docbook\\xslt\\h tml\\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
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.