ImportError in Unpickle

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Sun Feb 26 05:19:49 EST 2006


draghuram at gmail.com:
>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:
[...]
>ImportError: No module named __main__

There are some posts in the Usenet archive that suggest you need to open
the pickled file in binary mode.
http://groups.google.nl/group/comp.lang.python/browse_frm/thread/2da0dcfc0a414251/0885a7a5723f3b03

-- 
René Pijlman



More information about the Python-list mailing list