[GRASS-windows] Python collections module

Glynn Clements glynn at gclements.plus.com
Mon Feb 8 15:11:45 EST 2010


Frank Broniewski wrote:

> I am using the osgeo4w installation and I want to use the python scripting 
> possibilities.
> When I try to import the grass module I get an ImportError "No module named 
> collections" from "C:\OSGeo4W\apps\Python25\lib\threading.py".
> And indeed there is no collections.py. When I look into my Python26 
> installation dir, there is a collections.py in Python26\Lib. Is the osgeo4w 
> python package broken? Reinstalling does not fix the missing collections 
> module.
> I appreciate any help with this problem

The Python documentation says that the collections module was added in
2.4.

I have both Python 2.5 and Python 2.6 installed on Windows (both are
the stock python.org versions). 2.5 doesn't have a collections.py, but
"import collections" works from the IDE. AFAICT, the collections
module is built into python25.dll.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-windows mailing list