On Apr 1, 2011, at 5:57 AM, Johannes Radinger wrote: > Okay I checked now that. > Here the results: > > echo "$PYTHONPATH" > /Applications/GRASS-6.5.app/Contents/MacOS/etc/python > > > and for sys.path startet within the GRASS Terminal: >>>> import sys >>>> sys.path > ['', '/Library/Frameworks/SQLite3.framework/Versions/3/Python', > '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/site-packages', > '/Library/Frameworks/cairo.framework/Versions/1/Python', > '/Applications/GRASS-6.5.app/Contents/MacOS/etc/python', > '/usr/local/lib/wxPython-unicode-2.8.11.0/lib/python2.6/site-packages', > '/usr/local/lib/wxPython-unicode-2.8.11.0/lib/python2.6/site-packages/wx-2.8-mac-unicode', > '/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', > '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', > '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', > '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', > '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', > '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', > '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', > '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', > > '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages', > '/usr/local/lib/wxPython-unicode-2.8.11.0/lib/python2.6'] > > > That means everything is okay?
Those are good. > but the script isnt't working on my mac. > Glynn Clements tried the script on Linux and GRASS 7.0 and it was working > fine there. > Maybe anyone then me can try it on a mac machine to see if it is a specific > problem > on my computer or a general mac issue. > Works for me. Try running the script completely in the GRASS terminal, instead of the interactive mode (maps from spearfish): testscript.py newmap=test elevation=elevation.10m geology=geology Did you get a permissions error? Make sure the script has execute permissions (your attached script didn't, but that may be just an email thing). like (use the full path to the script): chmod +x /path/to/testscript.py ----- William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> http://www.kyngchaos.com/ All generalizations are dangerous, even this one. _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
