Terry Reedy wrote:
> Nice catch, Peter. I filed a request that the message quote the name it
> cannot import, so that the OP would have seen the more informative
>
> ImportError: No module named 'collections\r'
>
> http://bugs.python.org/issue8754
Good idea; thank you for taking the initiative.
On 5/18/2010 3:10 AM, Peter Otten wrote:
Now simulate the effect of writing in text mode and reading in binary mode:
>>> garbled_data = data.replace("\n", "\r\n")
>>> pickle.loads(garbled_data)
Traceback (most recent call last):
...
ImportError: No module named collections
>>> try: pick
On May 18, 12:10 am, Peter Otten <__pete...@web.de> wrote:
> paragk wrote:
> > Hi,
>
> > I am unable to figure out the cause of python pickle unable to find
> > the collection module.
>
> > I am getting
>
> > __import__(module)
> > ImportError: No module named collections
>
> > when I try to lo
paragk wrote:
> Hi,
>
> I am unable to figure out the cause of python pickle unable to find
> the collection module.
>
> I am getting
>
> __import__(module)
> ImportError: No module named collections
>
> when I try to load a pickled object.
>
> Details:
>
> Python version:
>
> Python 2.
On Mon, 17 May 2010 19:02:18 -0700, paragk wrote:
> Hi,
>
> I am unable to figure out the cause of python pickle unable to find the
> collection module.
>
> I am getting
>
> __import__(module)
> ImportError: No module named collections
What is the actual value of module? Here's an obvious
Hi,
I am unable to figure out the cause of python pickle unable to find
the collection module.
I am getting
__import__(module)
ImportError: No module named collections
when I try to load a pickled object.
Details:
Python version:
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500