Hi William and Sergio, <br>I don't have a Mac, so could you do further tests?<br><br>Try to set the path to your GDAL python mods in the "path to GDAL binaries", <br>then exec a python tool from the Raster menu, e.g. polygonize or merge.<br>

AFAIK on OSX the path to python mods should be similar to <br>/Library/Frameworks/GDAL.framework/Versions/1.7/Python/<br><br>Does it work now? If no, restart QGis and to execute the tool again.<br>What's the test result?<br>

<br>Cheers.<br><br><div class="gmail_quote">On Tue, Sep 28, 2010 at 6:53 PM, William Kyngesburye <span dir="ltr"><<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

That works.  What I'm saying is that as run from Qgis the GDAL python scripts are not getting an environment.<br>
<br>
It's possibly because of the way OS X applications (as opposed to shell programs) operate - they get nothing from the shell environment, so it makes sense that other programs (even shell programs) started from an application also get no environment.<br>


<br>
Maybe GDAL tools needs a PATH (at least for Python) setting?  There is a "pymod path" in the settings, but it's currently disabled, and I don't know if that's the right option.<br>
<br>
Or Qgis needs to try to get environment from a Terminal somehow for use by helper programs?<br>
<div><div></div><div class="h5"><br>
On Sep 28, 2010, at 11:31 AM, Giuseppe Sucameli wrote:<br>
<br>
> Hi Sergio,<br>
> it seems that env was unable to find python.<br>
><br>
> Try to open a shell and write:<br>
> /usr/bin/env python --version<br>
> What's the output?<br>
><br>
> Cheers.<br>
><br>
> On Mon, Sep 27, 2010 at 10:35 AM, sergio sevillano <<a href="mailto:sergiosevillano.mail@gmail.com">sergiosevillano.mail@gmail.com</a>> wrote:<br>
><br>
>><br>
>> El 14/09/2010, a las 17:13, William Kyngesburye escribió:<br>
>><br>
>><br>
>>> On Sep 14, 2010, at 9:55 AM, sergio sevillano wrote:<br>
>>><br>
>>>> El 14/09/2010, a las 14:52, William Kyngesburye escribió:<br>
>>>><br>
>>>>> What other GDAL tools have you used that work, besides gdal_contour?  gdal_merge itself is a python program, while gdal_contour is a binary.  It seems that an external python script is having problems finding python<br>


>>>>><br>
>>>><br>
>>>> other .py won´t work either<br>
>>>><br>
>>><br>
>>> I get this also.  I'm using the standard Qgis.<br>
>>><br>
>>> My guess is that external python scripts aren't getting a shell environment so they can't find python, even though Qgis extensions run thru python.  Those GDAL python scripts all have the standard shebang:<br>


>>><br>
>>> #!/usr/bin/env python<br>
>>><br>
>>> Someone with a better understanding of this needs to comment so I can try to figure out why the Mac build is not working (while from lack of reported problems it seems other systems work).<br>
><br>
><br>
> i have tried to start all over<br>
> as i had my system very messy (flink, darwin, several pythons...)<br>
><br>
> so i formated my hdd and start with a clean OSX<br>
><br>
> i have tried standalone Qgis and standard Qgis, neither worked.<br>
><br>
> in the standalone i have followed instructions to tell Qgis where is GDAL is<br>
> (inside the app) but the alias method did not worked<br>
> i could not select the desktop alias into the app through the GdalTools config.<br>
><br>
> when i try to merge dem files with the standard build,  i get again:<br>
><br>
> "env: python: No such file or directory"<br>
><br>
><br>
> until someone with "better undersanding" comes<br>
> i may try older versions or options, any hint?<br>
><br>
> is there any older version of Qgis that works<br>
> in an intel mac with SnowLeopard (OSX10.6.x)<br>
> that has a working GDAL plugin ?<br>
><br>
> William, i can do tester work if its useful to you,<br>
> thanks for your builds<br>
> i could have not get Qgis working at all without them.<br>
><br>
> sergio<br>
>><br>
<br>
</div></div><div class="im">-----<br>
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com><br>
<a href="http://www.kyngchaos.com/" target="_blank">http://www.kyngchaos.com/</a><br>
<br>
</div>The equator is so long, it could encircle the earth completely once.<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Giuseppe Sucameli<br>