[GRASS-dev] python grass problems on OSX (Incompatible library
version for module)
massimo di stefano
massimodisasha at yahoo.it
Sun May 10 12:37:19 EDT 2009
Hi All,
i'm tring to utilize a python function iside the grass environment,
but i gett errors about :
"Incompatible library version for module"
outside a running GRASS, it works from python. From python started
inside a GRASS shell, it doesn't work.
the function i'm using is prety simple :
###
import os
import subprocess
def OssimImg2rr(img1):
os.environ['DYLD_FRAMEWORK_PATH'] = '/var/tmp/XcodeBuilds/Release'
os.environ['OSSIM_PREFS_FILE'] = '/Users/sasha/ossim_preferences'
output = subprocess.Popen(['/var/tmp/XcodeBuilds/Release/
img2rr' ,str(img1)],stdout=subprocess.PIPE).communicate()[0]
###
as i described first,
these code works fine in a standard python shall, but if i try to run
it from python iside grass shell, i get the error about incompatible
library version.
note :
the same code works fine on linux, without erors.
i tried to buuild both grass and ossim using the same gdal.framework
as dependencies,
i tried to run (in osx) the same code in grass65 (thinking about a
gdal-grass version problem) but nothing, the error pesists
i don't think is a gdal issue beacouse img2rr do not use gdal, but it
is a simple unix command wrapper.
maybe it is a problem related to
"
import os
import subprocess
"
Sounds like GRASS is corrupting the python environment somehow.
have youy any clue ?
thanks for any help!
regards,
Massimo Di Stefano
massimodisasha a yahoo.it
epifanio on irc.freenode.net /join gfoss
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
More information about the grass-dev
mailing list