[Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message
brush.tyler at gmail.com
Tue Sep 28 13:32:38 EDT 2010
Hi William and Sergio,
I don't have a Mac, so could you do further tests?
Try to set the path to your GDAL python mods in the "path to GDAL binaries",
then exec a python tool from the Raster menu, e.g. polygonize or merge.
AFAIK on OSX the path to python mods should be similar to
Does it work now? If no, restart QGis and to execute the tool again.
What's the test result?
On Tue, Sep 28, 2010 at 6:53 PM, William Kyngesburye
<woklist at kyngchaos.com>wrote:
> That works. What I'm saying is that as run from Qgis the GDAL python
> scripts are not getting an environment.
> 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.
> 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.
> Or Qgis needs to try to get environment from a Terminal somehow for use by
> helper programs?
> On Sep 28, 2010, at 11:31 AM, Giuseppe Sucameli wrote:
> > Hi Sergio,
> > it seems that env was unable to find python.
> > Try to open a shell and write:
> > /usr/bin/env python --version
> > What's the output?
> > Cheers.
> > On Mon, Sep 27, 2010 at 10:35 AM, sergio sevillano <
> sergiosevillano.mail at gmail.com> wrote:
> >> El 14/09/2010, a las 17:13, William Kyngesburye escribió:
> >>> On Sep 14, 2010, at 9:55 AM, sergio sevillano wrote:
> >>>> El 14/09/2010, a las 14:52, William Kyngesburye escribió:
> >>>>> 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
> >>>> other .py won´t work either
> >>> I get this also. I'm using the standard Qgis.
> >>> 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:
> >>> #!/usr/bin/env python
> >>> 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).
> > i have tried to start all over
> > as i had my system very messy (flink, darwin, several pythons...)
> > so i formated my hdd and start with a clean OSX
> > i have tried standalone Qgis and standard Qgis, neither worked.
> > in the standalone i have followed instructions to tell Qgis where is GDAL
> > (inside the app) but the alias method did not worked
> > i could not select the desktop alias into the app through the GdalTools
> > when i try to merge dem files with the standard build, i get again:
> > "env: python: No such file or directory"
> > until someone with "better undersanding" comes
> > i may try older versions or options, any hint?
> > is there any older version of Qgis that works
> > in an intel mac with SnowLeopard (OSX10.6.x)
> > that has a working GDAL plugin ?
> > William, i can do tester work if its useful to you,
> > thanks for your builds
> > i could have not get Qgis working at all without them.
> > sergio
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> The equator is so long, it could encircle the earth completely once.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-user