Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-30 Thread sergio sevillano
you guys finally solved it!
works for me too.
thank you very much

sergio


El 29/09/2010, a las 01:25, Giuseppe Sucameli escribió:

> Hi William,
> 
> On Wed, Sep 29, 2010 at 12:37 AM, William Kyngesburye  
> wrote:
> I didn't know multiple paths could be used there (lack of documentation), 
> though it makes sense.
> even though I'm the GdalTools maintainer, I either didn't know 
> we could use multiple paths. 
> I looked within the code to discover the trick :-)
> 
>  Though pymod is not part of the problem, it's python itself.  So it should 
> be:
> 
> /usr/bin:/Library/Frameworks/GDAL.framework/Versions/1.7/Programs/
> 
> Once Python is found in /usr/bin, the GDAL pymod will be in the python 
> sys.path.
> I don't know if pymods are in the python sys.path, but in order 
> to prevent future related issues, could you verify this?
> 
> ... and that works.
> Great!!! Now I can go to sleep pleased.
> 
> Cheers.
> 
> On Sep 28, 2010, at 5:03 PM, Giuseppe Sucameli wrote:
> 
> > Hi all,
> > did you try to setup both python and pymods paths in the
> > "path to GDAL binaries"? You must separate them by :
> >
> > /usr/bin:/Library/Frameworks/GDAL.framework/Versions/1.7/Python/
> >
> > Try and let me know.
> >
> > Cheers
> >
> > 2010/9/28 Pierre Chevalier Géologue 
> > William Kyngesburye claviota:
> >
> > /usr/bin/python* should already exist, they are part of the system.  That's 
> > not the problem.
> >
> > Ok; I thought you may have some strange python installation. Sorry!
> >
> >
> > The problem is that /usr/bin is NOT in the PATH in an OS X application.
> > Hm. Mac OS X's are weird sorts of unices, aren't they? (BIG TROLL 
> > DETECTED!) ;)
> >
> >
> > Applications have essentially no environment at all, but they do understand 
> > environment variables.  Applications are in their own world, so to speak.  
> > There is a hidden mechanism for setting Application environment, but I 
> > don't want to spread that as it is cluncky to use (need 3rd party apps for 
> > a nice GUI front end), and is not well documented, if at all.
> >
> > You got your symlinking idea backwards, but it does give me an idea for a 
> > workaround:
> >
> > ln -s /usr/bin/python2.6 /Applications/Qgis.app/Contents/MacOS/bin/python
> >
> > This puts a symlink to the system python in the Qgis application bin, which 
> > should be in the PATH in the Qgis environment.
> >
> > Yes, it makes sense! So? Does it work?
> >
> >
> > Funny: in DOS and windows (another strange kind of OS, next troll), the 
> > current directory of any executable is in the path. And in unices (at least 
> > the ones I know), the current directory (.) is never in the path... I never 
> > figured it out on a Mac.
> >
> > A stupid idea:
> > Yes, it was...
> >
> > A+
> > Pierre
> >
> >
> > --
> > 
> > Pierre Chevalier Géologue EI
> >   Mesté Duran
> >   32100 Condom
> >  Tél+fax  :09 75 27 45 62
> >   05 62 28 06 83
> >06 37 80 33 64
> >  Émail  :   pierrechevaliergeolCHEZfree.fr
> >  icq#   :   10432285
> >  skype  :   pierre.chevalier1967
> >  http://pierremariechevalier.free.fr/pierre_chevalier_geologue
> > 
> >
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> >
> >
> > --
> > Giuseppe Sucameli
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
> 
> "Oh, look, I seem to have fallen down a deep, dark hole.  Now what does that 
> remind me of?  Ah, yes - life."
> 
> - Marvin
> 
> 
> 
> 
> 
> -- 
> Giuseppe Sucameli
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread Giuseppe Sucameli
Hi William,

On Wed, Sep 29, 2010 at 12:37 AM, William Kyngesburye  wrote:

> I didn't know multiple paths could be used there (lack of documentation),
> though it makes sense.

even though I'm the GdalTools maintainer, I either didn't know
we could use multiple paths.
I looked within the code to discover the trick :-)

 Though pymod is not part of the problem, it's python itself.  So it should
> be:
>
> /usr/bin:/Library/Frameworks/GDAL.framework/Versions/1.7/Programs/
>
> Once Python is found in /usr/bin, the GDAL pymod will be in the python
> sys.path.
>
I don't know if pymods are in the python sys.path, but in order
to prevent future related issues, could you verify this?

... and that works.
>
Great!!! Now I can go to sleep pleased.

Cheers.

 On Sep 28, 2010, at 5:03 PM, Giuseppe Sucameli wrote:
>
> > Hi all,
> > did you try to setup both python and pymods paths in the
> > "path to GDAL binaries"? You must separate them by :
> >
> > /usr/bin:/Library/Frameworks/GDAL.framework/Versions/1.7/Python/
> >
> > Try and let me know.
> >
> > Cheers
> >
> > 2010/9/28 Pierre Chevalier Géologue 
> > William Kyngesburye claviota:
> >
> > /usr/bin/python* should already exist, they are part of the system.
>  That's not the problem.
> >
> > Ok; I thought you may have some strange python installation. Sorry!
> >
> >
> > The problem is that /usr/bin is NOT in the PATH in an OS X application.
> > Hm. Mac OS X's are weird sorts of unices, aren't they? (BIG TROLL
> DETECTED!) ;)
> >
> >
> > Applications have essentially no environment at all, but they do
> understand environment variables.  Applications are in their own world, so
> to speak.  There is a hidden mechanism for setting Application environment,
> but I don't want to spread that as it is cluncky to use (need 3rd party apps
> for a nice GUI front end), and is not well documented, if at all.
> >
> > You got your symlinking idea backwards, but it does give me an idea for a
> workaround:
> >
> > ln -s /usr/bin/python2.6 /Applications/Qgis.app/Contents/MacOS/bin/python
> >
> > This puts a symlink to the system python in the Qgis application bin,
> which should be in the PATH in the Qgis environment.
> >
> > Yes, it makes sense! So? Does it work?
> >
> >
> > Funny: in DOS and windows (another strange kind of OS, next troll), the
> current directory of any executable is in the path. And in unices (at least
> the ones I know), the current directory (.) is never in the path... I never
> figured it out on a Mac.
> >
> > A stupid idea:
> > Yes, it was...
> >
> > A+
> > Pierre
> >
> >
> > --
> >
> 
> > Pierre Chevalier Géologue EI
> >   Mesté Duran
> >   32100 Condom
> >  Tél+fax  :09 75 27 45 62
> >   05 62 28 06 83
> >06 37 80 33 64
> >  Émail  :   pierrechevaliergeolCHEZfree.fr
> >  icq#   :   10432285
> >  skype  :   pierre.chevalier1967
> >  http://pierremariechevalier.free.fr/pierre_chevalier_geologue
> >
> 
> >
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> >
> >
> >
> > --
> > Giuseppe Sucameli
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
>
> "Oh, look, I seem to have fallen down a deep, dark hole.  Now what does
> that remind me of?  Ah, yes - life."
>
> - Marvin
>
>
>


-- 
Giuseppe Sucameli
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread William Kyngesburye
I didn't know multiple paths could be used there (lack of documentation), 
though it makes sense.  Though pymod is not part of the problem, it's python 
itself.  So it should be:

/usr/bin:/Library/Frameworks/GDAL.framework/Versions/1.7/Programs/

Once Python is found in /usr/bin, the GDAL pymod will be in the python sys.path.

... and that works.

On Sep 28, 2010, at 5:03 PM, Giuseppe Sucameli wrote:

> Hi all, 
> did you try to setup both python and pymods paths in the 
> "path to GDAL binaries"? You must separate them by :
> 
> /usr/bin:/Library/Frameworks/GDAL.framework/Versions/1.7/Python/
> 
> Try and let me know.
> 
> Cheers
> 
> 2010/9/28 Pierre Chevalier Géologue 
> William Kyngesburye claviota:
> 
> /usr/bin/python* should already exist, they are part of the system.  That's 
> not the problem.
>  
> Ok; I thought you may have some strange python installation. Sorry!
> 
> 
> The problem is that /usr/bin is NOT in the PATH in an OS X application.  
> Hm. Mac OS X's are weird sorts of unices, aren't they? (BIG TROLL DETECTED!) 
> ;)
> 
> 
> Applications have essentially no environment at all, but they do understand 
> environment variables.  Applications are in their own world, so to speak.  
> There is a hidden mechanism for setting Application environment, but I don't 
> want to spread that as it is cluncky to use (need 3rd party apps for a nice 
> GUI front end), and is not well documented, if at all.
> 
> You got your symlinking idea backwards, but it does give me an idea for a 
> workaround:
> 
> ln -s /usr/bin/python2.6 /Applications/Qgis.app/Contents/MacOS/bin/python
> 
> This puts a symlink to the system python in the Qgis application bin, which 
> should be in the PATH in the Qgis environment.
>  
> Yes, it makes sense! So? Does it work?
> 
> 
> Funny: in DOS and windows (another strange kind of OS, next troll), the 
> current directory of any executable is in the path. And in unices (at least 
> the ones I know), the current directory (.) is never in the path... I never 
> figured it out on a Mac.
> 
> A stupid idea: 
> Yes, it was...
> 
> A+
> Pierre
> 
> 
> -- 
> 
> Pierre Chevalier Géologue EI
>   Mesté Duran
>   32100 Condom
>  Tél+fax  :09 75 27 45 62
>   05 62 28 06 83
>06 37 80 33 64
>  Émail  :   pierrechevaliergeolCHEZfree.fr
>  icq#   :   10432285
>  skype  :   pierre.chevalier1967
>  http://pierremariechevalier.free.fr/pierre_chevalier_geologue
> 
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> 
> 
> -- 
> Giuseppe Sucameli
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-
William Kyngesburye 
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole.  Now what does that 
remind me of?  Ah, yes - life."

- Marvin


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread Giuseppe Sucameli
Hi all,
did you try to setup both python and pymods paths in the
"path to GDAL binaries"? You must separate them by :

/usr/bin:/Library/Frameworks/GDAL.framework/Versions/1.7/Python/

Try and let me know.

Cheers

2010/9/28 Pierre Chevalier Géologue 

> William Kyngesburye claviota:
>
>  /usr/bin/python* should already exist, they are part of the system.
>>  That's not the problem.
>>
>>
> Ok; I thought you may have some strange python installation. Sorry!
>
>
>  The problem is that /usr/bin is NOT in the PATH in an OS X application.
>>
> Hm. Mac OS X's are weird sorts of unices, aren't they? (BIG TROLL
> DETECTED!) ;)
>
>
>  Applications have essentially no environment at all, but they do
>> understand environment variables.  Applications are in their own world, so
>> to speak.  There is a hidden mechanism for setting Application environment,
>> but I don't want to spread that as it is cluncky to use (need 3rd party apps
>> for a nice GUI front end), and is not well documented, if at all.
>>
>> You got your symlinking idea backwards, but it does give me an idea for a
>> workaround:
>>
>> ln -s /usr/bin/python2.6 /Applications/Qgis.app/Contents/MacOS/bin/python
>>
>> This puts a symlink to the system python in the Qgis application bin,
>> which should be in the PATH in the Qgis environment.
>>
>>
> Yes, it makes sense! So? Does it work?
>
>
> Funny: in DOS and windows (another strange kind of OS, next troll), the
> current directory of any executable is in the path. And in unices (at least
> the ones I know), the current directory (.) is never in the path... I never
> figured it out on a Mac.
>
>  A stupid idea:
>>>
>> Yes, it was...
>
> A+
> Pierre
>
>
> --
>
> 
> Pierre Chevalier Géologue EI
>   Mesté Duran
>   32100 Condom
>  Tél+fax  :09 75 27 45 62
>   05 62 28 06 83
>06 37 80 33 64
>  Émail  :   pierrechevaliergeolCHEZfree.fr
>  icq#   :   10432285
>  skype  :   pierre.chevalier1967
>  http://pierremariechevalier.free.fr/pierre_chevalier_geologue
>
> 
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 
Giuseppe Sucameli
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread Pierre Chevalier Géologue

William Kyngesburye claviota:

/usr/bin/python* should already exist, they are part of the system.  That's not 
the problem.
  

Ok; I thought you may have some strange python installation. Sorry!

The problem is that /usr/bin is NOT in the PATH in an OS X application.  
Hm. Mac OS X's are weird sorts of unices, aren't they? (BIG TROLL 
DETECTED!) ;)



Applications have essentially no environment at all, but they do understand 
environment variables.  Applications are in their own world, so to speak.  
There is a hidden mechanism for setting Application environment, but I don't 
want to spread that as it is cluncky to use (need 3rd party apps for a nice GUI 
front end), and is not well documented, if at all.

You got your symlinking idea backwards, but it does give me an idea for a 
workaround:

ln -s /usr/bin/python2.6 /Applications/Qgis.app/Contents/MacOS/bin/python

This puts a symlink to the system python in the Qgis application bin, which 
should be in the PATH in the Qgis environment.
  

Yes, it makes sense! So? Does it work?


Funny: in DOS and windows (another strange kind of OS, next troll), the 
current directory of any executable is in the path. And in unices (at 
least the ones I know), the current directory (.) is never in the 
path... I never figured it out on a Mac.


A stupid idea: 


Yes, it was...

A+
Pierre

--

Pierre Chevalier Géologue EI
   Mesté Duran
   32100 Condom
 Tél+fax  :09 75 27 45 62
   05 62 28 06 83
06 37 80 33 64
 Émail  :   pierrechevaliergeolCHEZfree.fr
 icq#   :   10432285
 skype  :   pierre.chevalier1967
 http://pierremariechevalier.free.fr/pierre_chevalier_geologue


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread William Kyngesburye
/usr/bin/python* should already exist, they are part of the system.  That's not 
the problem.

The problem is that /usr/bin is NOT in the PATH in an OS X application.  
Applications have essentially no environment at all, but they do understand 
environment variables.  Applications are in their own world, so to speak.  
There is a hidden mechanism for setting Application environment, but I don't 
want to spread that as it is cluncky to use (need 3rd party apps for a nice GUI 
front end), and is not well documented, if at all.

You got your symlinking idea backwards, but it does give me an idea for a 
workaround:

ln -s /usr/bin/python2.6 /Applications/Qgis.app/Contents/MacOS/bin/python

This puts a symlink to the system python in the Qgis application bin, which 
should be in the PATH in the Qgis environment.

On Sep 28, 2010, at 3:40 PM, Pierre Chevalier Géologue wrote:

> A stupid idea: why not doing a symbolic link to your python in your /usr/bin?
> At least, you can be sure that /usr/bin is in the path.

-
William Kyngesburye 
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled with hyena 
offal?
Second Pogril: I don't know.  Why IS life like sticking your head in a bucket 
filled with hyena offal?
First Pogril: I don't know either.  Wretched, isn't it?

-HitchHiker's Guide to the Galaxy


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread Pierre Chevalier Géologue
A stupid idea: why not doing a symbolic link to your python in your 
/usr/bin?

At least, you can be sure that /usr/bin is in the path.

I just borrowed my wife's Mac for a few seconds, to see if there was a 
python there, and where it was installed: there is a python (even 
several ones), it is located in /usr/bin, as one may expect:


Pomme:~ mariechevalier$ whereis python
/usr/bin/python


Now, to know where are all the pythons:

Pomme:~ mariechevalier$ locate python
/Applications/Aquamacs Emacs.app/Contents/Resources/lisp/progmodes/python.el
/Applications/Aquamacs 
Emacs.app/Contents/Resources/lisp/progmodes/python.elc

/Applications/NeoOffice.app/Contents/basis-link/program/pythonloader.py
/Applications/NeoOffice.app/Contents/basis-link/program/pythonloader.uno.dylib
/Applications/NeoOffice.app/Contents/basis-link/program/pythonloader.unorc
/Applications/NeoOffice.app/Contents/basis-link/program/pythonscript.py
/Applications/NeoOffice.app/Contents/basis-link/share/Scripts/python

... follows a long, long list...


If you do so, you will find where your python interpreter is. Then, as 
root, do a symbolic link, something like:



ln -s /Applications/SomeApplication.app/Contents/python /usr/bin/


This will create a symbolic link of python in /usr/bin/. It will 
certainly work.
You may have to make sure that you link it to the right version of 
python, the one that gdal expects. Usually, python versions do not 
import too much, except for version 2.x to version 3, where some serious 
changes are needed in the scripts.


A+
Pierre


William Kyngesburye claviota:

As I said, the pymod option is disabled, there is no way to set this.  Maybe 
it's a Mac thing to disable this? the only GDAL Tools setting that is enabled 
is the GDAL binaries path.

It probably wouldn't help anyways, since it's probably meant to help Python 
find the gdal python extensions.  But we're trying to find Python itself.  
That's where the environment PATH is needed (ie from Qgis), or a GdalTools 
python path setting.


On Sep 28, 2010, at 12:36 PM, Giovanni Manghi wrote:

  
AFAIK on OSX the path to python mods should be similar to 
/Library/Frameworks/GDAL.framework/Versions/1.7/Python/


Does it work now? If no, restart QGis and to execute the tool again.
  

I don't have a Mac either but a colleague is telling me that this is not
enough to make .py gdal tools work.

cheers



-
William Kyngesburye 
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those least suited to do 
it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

  



--

Pierre Chevalier Géologue EI
   Mesté Duran
   32100 Condom
 Tél+fax  :09 75 27 45 62
   05 62 28 06 83
06 37 80 33 64
 Émail  :   pierrechevaliergeolCHEZfree.fr
 icq#   :   10432285
 skype  :   pierre.chevalier1967
 http://pierremariechevalier.free.fr/pierre_chevalier_geologue




___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread William Kyngesburye
As I said, the pymod option is disabled, there is no way to set this.  Maybe 
it's a Mac thing to disable this? the only GDAL Tools setting that is enabled 
is the GDAL binaries path.

It probably wouldn't help anyways, since it's probably meant to help Python 
find the gdal python extensions.  But we're trying to find Python itself.  
That's where the environment PATH is needed (ie from Qgis), or a GdalTools 
python path setting.


On Sep 28, 2010, at 12:36 PM, Giovanni Manghi wrote:

> 
>> AFAIK on OSX the path to python mods should be similar to 
>> /Library/Frameworks/GDAL.framework/Versions/1.7/Python/
>> 
>> Does it work now? If no, restart QGis and to execute the tool again.
> 
> 
> I don't have a Mac either but a colleague is telling me that this is not
> enough to make .py gdal tools work.
> 
> cheers

-
William Kyngesburye 
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those least suited 
to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread Giovanni Manghi

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


I don't have a Mac either but a colleague is telling me that this is not
enough to make .py gdal tools work.

cheers

-- Giovanni --

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread Giuseppe Sucameli
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
/Library/Frameworks/GDAL.framework/Versions/1.7/Python/

Does it work now? If no, restart QGis and to execute the tool again.
What's the test result?

Cheers.

On Tue, Sep 28, 2010 at 6:53 PM, William Kyngesburye
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.m...@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
> is
> > (inside the app) but the alias method did not worked
> > i could not select the desktop alias into the app through the GdalTools
> config.
> >
> > 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 
> http://www.kyngchaos.com/
>
> The equator is so long, it could encircle the earth completely once.
>
>


-- 
Giuseppe Sucameli
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread William Kyngesburye
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 
>  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 is
> (inside the app) but the alias method did not worked 
> i could not select the desktop alias into the app through the GdalTools 
> config.
> 
> 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 
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread William Kyngesburye
On Sep 27, 2010, at 3:35 AM, sergio sevillano wrote:

>> El 14/09/2010, a las 17:13, William Kyngesburye escribió:
>> 
>>> 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
> 
>> 

> is there any older version of Qgis that works 
> in an intel mac with SnowLeopard (OSX10.6.x) 
> that has a working GDAL plugin ?
>> 

The GDAL plugin is new in Qgis 1.5, so no previous versions "worked".  I doubt 
any of my dev builds of 1.5 worked.

-
William Kyngesburye 
http://www.kyngchaos.com/

"I ache, therefore I am.  Or in my case - I am, therefore I ache."

- Marvin


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-28 Thread Giuseppe Sucameli
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.m...@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
> is
>
> (inside the app) but the alias method did not worked
>
> i could not select the desktop alias into the app through the GdalTools
> config.
>
>
> 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
>
>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>


-- 
Giuseppe Sucameli
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-14 Thread sergio sevillano

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ó:
>> 
>>> Are you using the standalone Qgis?
>>> 
>> 
>> i have installed frameworks and qgis manually from
>> http://www.kyngchaos.com/software/qgis
>> but not sure if its standalone or not 
>> is there a way i can check?
> 
> Only by size (Get Info): standalone is about 290+MB installed, standard is 
> about 214MB.

my qgis.app is 214Mb, so is standard too

> 
>>> 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).

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-14 Thread William Kyngesburye
On Sep 14, 2010, at 9:55 AM, sergio sevillano wrote:

> El 14/09/2010, a las 14:52, William Kyngesburye escribió:
> 
>> Are you using the standalone Qgis?
>> 
> 
> i have installed frameworks and qgis manually from
> http://www.kyngchaos.com/software/qgis
> but not sure if its standalone or not 
> is there a way i can check?

Only by size (Get Info): standalone is about 290+MB installed, standard is 
about 214MB.

>> 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).

> 
>> On Sep 14, 2010, at 5:59 AM, sergio sevillano wrote:
>> 
>>> hi
>>> 
>>> i get an 
>>> 
>>> "env: python: No such file or directory"
>>> 
>>> error when i try to use GDAL Tools plugin to merge some .hgt images
>>> seems to me as a path thing
>>> but other gdal plugins work fine 
>>> as gdal_contours
>>> 
>>> any hint or place to look further?
>>> thanks
>>> 
>>> 
>>> sergio
>>> 

-
William Kyngesburye 
http://www.kyngchaos.com/

"History is an illusion caused by the passage of time, and time is an illusion 
caused by the passage of history."

- Hitchhiker's Guide to the Galaxy


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-14 Thread sergio sevillano




El 14/09/2010, a las 14:52, William Kyngesburye escribió:

> Are you using the standalone Qgis?
> 

i have installed frameworks and qgis manually from
http://www.kyngchaos.com/software/qgis
but not sure if its standalone or not 
is there a way i can check?

> 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


> On Sep 14, 2010, at 5:59 AM, sergio sevillano wrote:
> 
>> hi
>> 
>> i get an 
>> 
>> "env: python: No such file or directory"
>> 
>> error when i try to use GDAL Tools plugin to merge some .hgt images
>> seems to me as a path thing
>> but other gdal plugins work fine 
>> as gdal_contours
>> 
>> any hint or place to look further?
>> thanks
>> 
>> 
>> sergio
>> 
>> 
>> intel mac 3.33GHz core 2 duo - 8Mb ram
>> OSX 10.6.4 
>> Qgis 1.5.0 "Tethys"
>> GDAL Tools 1.2.0 (using GDAL v. 1.7.2)
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
> 
> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
> 
> [Marvin]  You think you have problems?  What are you supposed to do if you 
> ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times 
> more intelligent than you and even I don't know the answer...
> 
> - HitchHiker's Guide to the Galaxy
> 
> 

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] gdal_merge - GDAL Tools plugin Qgis error message

2010-09-14 Thread William Kyngesburye
Are you using the standalone Qgis?

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

On Sep 14, 2010, at 5:59 AM, sergio sevillano wrote:

> hi
> 
> i get an 
> 
> "env: python: No such file or directory"
> 
> error when i try to use GDAL Tools plugin to merge some .hgt images
> seems to me as a path thing
> but other gdal plugins work fine 
> as gdal_contours
> 
> any hint or place to look further?
> thanks
> 
> 
> sergio
> 
> 
> intel mac 3.33GHz core 2 duo - 8Mb ram
> OSX 10.6.4 
> Qgis 1.5.0 "Tethys"
> GDAL Tools 1.2.0 (using GDAL v. 1.7.2)
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-
William Kyngesburye 
http://www.kyngchaos.com/

[Trillian]  What are you supposed to do WITH a maniacally depressed robot?

[Marvin]  You think you have problems?  What are you supposed to do if you ARE 
a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times more 
intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user