Thanks to both of you.<br><br>Adding %osgeo4w_root%\bin to the path solved the msvcr71.dll problem and I've been able to use Pythonwin.<br><br>With Alex's batch file, I've been able to import the GDAL Python bindings which would not load otherwise. I don't understand why the GDAL Python bindings are not made available on the python path by the gdal-python. For other package (e.g. mapnik), it works out of the box.<br>
<br>I've also been able to install the geopy package. For this, I had to remove the setuptools dependency in the setup.py.<br><br>Best regards,<br>Gilles<br><br><div class="gmail_quote">2010/12/15 Alex Mandel <span dir="ltr"><<a href="mailto:tech_dev@wildintellect.com">tech_dev@wildintellect.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I've managed to get IDLE, Pythonwin, ERIC and SPE(My Favorite) to work<br>
with OSGeo4W before. It'll take me a day to dig up the material though.<br>
<br>
It does indeed require setting the environment variables properly before<br>
you open the app. Here's my Pythonwin example<br>
<a href="http://osprey.ucdavis.edu/downloads/abt182/OSGeo4Wpythonwin.bat" target="_blank">http://osprey.ucdavis.edu/downloads/abt182/OSGeo4Wpythonwin.bat</a><br>
<br>
Enjoy,<br>
<font color="#888888">Alex<br>
</font><div><div></div><div class="h5"><br>
On 12/15/2010 09:27 AM, Matt Wilkie wrote:<br>
> Thank you for the kind words Gilles.<br>
><br>
> It's so easy to focus on the immediate problem and de-emphasize, by<br>
> omission, the gifts that enabled us to have the issue in the first place<br>
> (something I'm frequently quilty of. So it's good to be reminded :)<br>
><br>
>> This application has failed to start because MSVCR71.dll was not found.<br>
><br>
> This should be installed as part of the msvcrt package in<br>
> %osgeo4w_root%\bin. Msvcrt package is a root package and should always<br>
> be there no matter what options are selected on install. You likely need<br>
> to set the environment with OSGeo4W.bat before calling pythonwin (or use<br>
> that batch file as a template for permanently setting the system<br>
> variables).<br>
><br>
><br>
>> I'm thinking of installing Python/IDLE separately but I'm not sure it<br>
>> will be able to find/use packages from the osgeo4w stack.<br>
><br>
> From <a href="http://trac.osgeo.org/osgeo4w/ticket/114" target="_blank">http://trac.osgeo.org/osgeo4w/ticket/114</a> there's a python script to<br>
> (de)register a python directory tree in the windows registry. It doesn't<br>
> work on 64 bit systems (patches welcome). After using register-python.py<br>
> you should be able to use the standard windows installers for any python<br>
> application not included in Osgeo4w.<br>
><br>
> In my view this is a better route forward than packaging yet another<br>
> not-really-gis program into the osgeo4w mirror system. We already have<br>
> enough difficulty keeping the core packages up to date. :)<br>
><br>
> cheers,<br>
><br>
> matt wilkie<br>
> --------------------------------------------<br>
> Geomatics Analyst<br>
> Information Management and Technology<br>
> Yukon Department of Environment<br>
> 10 Burns Road * Whitehorse, Yukon * Y1A 4Y9<br>
> 867-667-8133 Tel * 867-393-7003 Fax<br>
> <a href="http://environmentyukon.gov.yk.ca/geomatics/" target="_blank">http://environmentyukon.gov.yk.ca/geomatics/</a><br>
> --------------------------------------------<br>
><br>
> On 15/12/2010 2:17 AM, Gilles Bassière wrote:<br>
>> Hi,<br>
>><br>
>> I'm new to this list and before anything else I would like to thank the<br>
>> people behind OSGeo4W for their work. I believe it makes OSGeo projects<br>
>> much more accessible to common GIS users.<br>
>><br>
>> For the purpose of a GIS programming lab, I'm trying to get up and<br>
>> running the following: Python, a Python IDE and several libraries<br>
>> (primarily GDAL/OGR and Mapnik but also Geopy).<br>
>><br>
>> Regarding the IDE, I don't have specific requirements, I merely want to<br>
>> avoid using cmd.exe because this might frighten my students :) IDLE<br>
>> would be fine for example but I can't find it in the OSGeo4W components.<br>
>><br>
>> I see that Pythonwin is present but I get this error when I launch it:<br>
>> This application has failed to start because MSVCR71.dll was not found.<br>
>> I did try to re-install python-win32 but it doesn't help (my test<br>
>> platform is Windows XP within a VirtualBox).<br>
>><br>
>> I'm thinking of installing Python/IDLE separately but I'm not sure it<br>
>> will be able to find/use packages from the osgeo4w stack.<br>
>><br>
>> I'm looking for advices about the easiest way to get a Python GIS<br>
>> programming environment under Windows.<br>
>><br>
>> Best regards<br>
<br>
<br>
_______________________________________________<br>
osgeo4w-dev mailing list<br>
<a href="mailto:osgeo4w-dev@lists.osgeo.org">osgeo4w-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gilles Bassière - Web/GIS software engineer<br><a href="http://gbassiere.free.fr/">http://gbassiere.free.fr/</a><br>