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

Pierre Chevalier Géologue pierrechevaliergeol at free.fr
Tue Sep 28 13:40:56 PDT 2010


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 <kyngchaos*at*kyngchaos*dot*com>
> 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 at 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
____________________________________________________________________________






More information about the Qgis-user mailing list