Send grass-windows mailing list submissions to grass-windows@lists.osgeo.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/grass-windows or, via email, send a message with subject or body 'help' to grass-windows-requ...@lists.osgeo.org You can reach the person managing the list at grass-windows-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of grass-windows digest..." Today's Topics: 1. Python collections module (Frank Broniewski) 2. Re: Python collections module (Frank Broniewski) ---------------------------------------------------------------------- Message: 1 Date: Mon, 8 Feb 2010 14:27:30 +0100 From: "Frank Broniewski" <b...@metrico.lu> Subject: [GRASS-windows] Python collections module To: "grass-windows" <grass-windows@lists.osgeo.org> Message-ID: <e43c8951465c448abbe8e0738b1b0...@pcfl01brfr> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Hello list, 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 Frank Frank Broniewski Metrico s.àr.l. ( http://www.metrico.lu ) 36, rue des Romains L-5433 Niederdonven Luxembourg Fon: +352 26 74 94 28 Fax: +352 26 74 94 99 ------------------------------ Message: 2 Date: Mon, 8 Feb 2010 15:47:53 +0100 From: "Frank Broniewski" <b...@metrico.lu> Subject: Re: [GRASS-windows] Python collections module To: "grass-windows" <grass-windows@lists.osgeo.org> Message-ID: <723bba9b6de74a56a57a1944e90c4...@pcfl01brfr> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Ok, replacing the shipped version with the latest 2.5 version from the python hp fixes this. Nevertheless I think this is a bug, but I hesitate to report it until someone can confirm this. Meanwhile I noticed that the grass python scripts mix spaces and tabs which is not good. I am willing to remove the tabs from the file (PEP8 anyone?) and upload the "fixed" scripts somewhere. Is there a procedure which I could follow so that it is easy for the devs to integrate the changes? Frank -------------------------------------------------- From: "Frank Broniewski" <b...@metrico.lu> Sent: Monday, February 08, 2010 2:27 PM To: "grass-windows" <grass-windows@lists.osgeo.org> Subject: [GRASS-windows] Python collections module > Hello list, > > 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 > > Frank > > > Frank Broniewski > > Metrico s.àr.l. ( http://www.metrico.lu ) > 36, rue des Romains > L-5433 Niederdonven > Luxembourg > > Fon: +352 26 74 94 28 > Fax: +352 26 74 94 99 > _______________________________________________ > grass-windows mailing list > grass-windows@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-windows ------------------------------ _______________________________________________ grass-windows mailing list grass-windows@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-windows End of grass-windows Digest, Vol 42, Issue 2 ********************************************