<div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 10, 2012 at 6:17 PM, Matt Wilkie wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi Klo, welcome to Osgeo4w :)<br>
<br></div></div></blockquote><div> </div><div>Thanks Matt :) <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
<div>We choose to add osgeo4w PATH at the end of the system path on
purpose, in order to play lightly and cooperatively with what is
already there. If we changed to inserting o4w to the beginning of
PATH there would be other people upset because now our exe's and
dll's would be found first instead of something else.
Unfortunately there is no solution for all. I'm happy that you at
least have found a solution for your environment. <br></div></div></blockquote><div><br>OK then, if that is deliberate decision, but again I can't think why can that be, as that's just inside o4w environment. By launching o4w shell, I guess user would expect that o4w commands prevail instead same found on system path? <br>
</div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><div>
In any case, o4w at beginning or end of path doesn't solve the
fundamental problem: multiple and possibly conflicting installs of
the same thing in one system. Without a fair amount of work
keeping each of them in sync (same modules installed for each)
you'll often run into trouble, and troubleshooting is a real pain.
It's really much better to only have one python active in the
environment at a time.<br></div></div></blockquote><div><br>Yes, but also to have python environment at any time without batch scripts. There are programs that won't recognize Python is present, if there is not python executable in path, although batch command with same name is in path.<br>
In o4w case a changed OSGeo4W.bat by hiding system Python:<br><br>set path=%path:C:\Python27;=%<br>set path=%path:C:\Python27\Scripts;=%<br><br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div>
<br>
One thing which <i>may </i>help, depending on the particulars of
the other bundled python packages you mention, is to install o4w
first and register it's python as the system default for v2.7
before installing the other programs. See
<a href="http://trac.osgeo.org/osgeo4w/wiki/ExternalPythonPackages" target="_blank">http://trac.osgeo.org/osgeo4w/wiki/ExternalPythonPackages</a> and
<a href="http://trac.osgeo.org/osgeo4w/ticket/114" target="_blank">http://trac.osgeo.org/osgeo4w/ticket/114</a><br></div></div></blockquote><div><br>Thanks. I'll consider that if I build new system, and when I learn that o4w follows Python trend.<br>
I see there are 2 Pythons inside - 2.5 and 2.7, and guess that pairing current Python version is not always trivial is environments as o4w<br> <br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div><br> </div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
<div>
best regards,<br>
<pre cols="72">matt wilkie
<br></pre></div></div></blockquote></div>Cheers Matt<br></div>