pickle unable to load collection

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Mon May 17 22:07:56 EDT 2010


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 failure mode:

>>> __import__("collections ")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named collections


> module
> str: collections

Try printing repr(str) to see what's actually there.


It may also help if you post a copy-and-paste of the complete traceback.



-- 
Steven



More information about the Python-list mailing list