Hi,

I have a python script that pickles and unpickles a give object. It
works without any problems on windows (the data was pickled on windows
first). But when I try to run the script on Linux, I get the following
error:

    mydbinfo = pickle.Unpickler(f).load()
  File "/usr/lib/python2.3/pickle.py", line 872, in load
    dispatch[key](self)
  File "/usr/lib/python2.3/pickle.py", line 1083, in load_inst
    klass = self.find_class(module, name)
  File "/usr/lib/python2.3/pickle.py", line 1138, in find_class
    __import__(module)
ImportError: No module named __main__

Even running the script with cygwin's python results in same error. It
looks me to be some problem with path setting for finding modules. Can
someone shed more light?

Thanks in advance,
Raghu.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to