Thanks to both of you.<br><br>Adding %osgeo4w_root%\bin to the path solved the msvcr71.dll problem and I&#39;ve been able to use Pythonwin.<br><br>With Alex&#39;s batch file, I&#39;ve been able to import the GDAL Python bindings which would not load otherwise. I don&#39;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&#39;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">&lt;<a href="mailto:tech_dev@wildintellect.com">tech_dev@wildintellect.com</a>&gt;</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&#39;ve managed to get IDLE, Pythonwin, ERIC and SPE(My Favorite) to work<br>
with OSGeo4W before. It&#39;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&#39;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>
&gt; Thank you for the kind words Gilles.<br>
&gt;<br>
&gt; It&#39;s so easy to focus on the immediate problem and de-emphasize, by<br>
&gt; omission, the gifts that enabled us to have the issue in the first place<br>
&gt; (something I&#39;m frequently quilty of. So it&#39;s good to be reminded :)<br>
&gt;<br>
&gt;&gt; This application has failed to start because MSVCR71.dll was not found.<br>
&gt;<br>
&gt; This should be installed as part of the msvcrt package in<br>
&gt; %osgeo4w_root%\bin. Msvcrt package is a root package and should always<br>
&gt; be there no matter what options are selected on install. You likely need<br>
&gt; to set the environment with OSGeo4W.bat before calling pythonwin (or use<br>
&gt; that batch file as a template for permanently setting the system<br>
&gt; variables).<br>
&gt;<br>
&gt;<br>
&gt;&gt; I&#39;m thinking of installing Python/IDLE separately but I&#39;m not sure it<br>
&gt;&gt; will be able to find/use packages from the osgeo4w stack.<br>
&gt;<br>
&gt; From <a href="http://trac.osgeo.org/osgeo4w/ticket/114" target="_blank">http://trac.osgeo.org/osgeo4w/ticket/114</a> there&#39;s a python script to<br>
&gt; (de)register a python directory tree in the windows registry. It doesn&#39;t<br>
&gt; work on 64 bit systems (patches welcome). After using register-python.py<br>
&gt; you should be able to use the standard windows installers for any python<br>
&gt; application not included in Osgeo4w.<br>
&gt;<br>
&gt; In my view this is a better route forward than packaging yet another<br>
&gt; not-really-gis program into the osgeo4w mirror system. We already have<br>
&gt; enough difficulty keeping the core packages up to date. :)<br>
&gt;<br>
&gt; cheers,<br>
&gt;<br>
&gt; matt wilkie<br>
&gt; --------------------------------------------<br>
&gt; Geomatics Analyst<br>
&gt; Information Management and Technology<br>
&gt; Yukon Department of Environment<br>
&gt; 10 Burns Road * Whitehorse, Yukon * Y1A 4Y9<br>
&gt; 867-667-8133 Tel * 867-393-7003 Fax<br>
&gt; <a href="http://environmentyukon.gov.yk.ca/geomatics/" target="_blank">http://environmentyukon.gov.yk.ca/geomatics/</a><br>
&gt; --------------------------------------------<br>
&gt;<br>
&gt; On 15/12/2010 2:17 AM, Gilles Bassière wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m new to this list and before anything else I would like to thank the<br>
&gt;&gt; people behind OSGeo4W for their work. I believe it makes OSGeo projects<br>
&gt;&gt; much more accessible to common GIS users.<br>
&gt;&gt;<br>
&gt;&gt; For the purpose of a GIS programming lab, I&#39;m trying to get up and<br>
&gt;&gt; running the following: Python, a Python IDE and several libraries<br>
&gt;&gt; (primarily GDAL/OGR and Mapnik but also Geopy).<br>
&gt;&gt;<br>
&gt;&gt; Regarding the IDE, I don&#39;t have specific requirements, I merely want to<br>
&gt;&gt; avoid using cmd.exe because this might frighten my students :) IDLE<br>
&gt;&gt; would be fine for example but I can&#39;t find it in the OSGeo4W components.<br>
&gt;&gt;<br>
&gt;&gt; I see that Pythonwin is present but I get this error when I launch it:<br>
&gt;&gt; This application has failed to start because MSVCR71.dll was not found.<br>
&gt;&gt; I did try to re-install python-win32 but it doesn&#39;t help (my test<br>
&gt;&gt; platform is Windows XP within a VirtualBox).<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m thinking of installing Python/IDLE separately but I&#39;m not sure it<br>
&gt;&gt; will be able to find/use packages from the osgeo4w stack.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m looking for advices about the easiest way to get a Python GIS<br>
&gt;&gt; programming environment under Windows.<br>
&gt;&gt;<br>
&gt;&gt; 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>