[GRASS-dev] GRASS for Mac problem

Michael Barton Michael.Barton at asu.edu
Mon Sep 27 15:13:08 EDT 2010


William,

Thought I'd send this on to the dev list for more information

See my responses below.

Cheers
Michael

Begin forwarded message:


2. A student here has been unable to run any of my advance dev builds, 6.5 or 7. She gets odd and clearly bogus errors. I've also seen this kind of errors on a couple of Windows machines. She has a new computer with OS X 10.6 up to date and stock python/wxpython. When she starts GRASS 7, for example, she gets the following error that claims she does not have standard Python modules (no question that she DOES have these modules; Python runs fine for her otherwise AND with GRASS 6.4). Have you run into this? Any idea what the problem is? I've had her check on her python and wxpython. All seems OK. And AFAIK, her frameworks are up to date.

'/Users/kierstincatlett/Desktop/GRASS-7.0.app/Contents/MacOS/grass.sh'; exit
macintosh-159:~ kierstincatlett$ '/Users/kierstincatlett/Desktop/GRASS-7.0.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
2010-09-16 10:10:54.809 osascript[5254:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types:  dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found.  Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
Python 2.6.1 found.
Cleaning up temporary files...
Traceback (most recent call last):
File "/Users/kierstincatlett/Desktop/GRASS-7.0.app/Contents/MacOS/grass70", line 938, in <module>
  clean_temp()
File "/Users/kierstincatlett/Desktop/GRASS-7.0.app/Contents/MacOS/grass70", line 799, in clean_temp
  call([gfile("etc", "clean_temp")], stdout = nul, stderr = nul)
File "/Users/kierstincatlett/Desktop/GRASS-7.0.app/Contents/MacOS/grass70", line 105, in call
  return subprocess.call(cmd, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 444, in call
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in __init__
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child
OSError: [Errno 2] No such file or directory
logout

[Process completed]

grass etc/clean_temp?  My last 7.0 build from June has this.

clean_temp() is a method defined in grass70. It uses another method in grass70, call()

call() is just a shortcut to subprocess.call(), which is standard python syntax, with some options for windows user.

The error that subprocess.call() does not exist is bogus, since Kirsten has the standard Python 2.5.1 and 2.6 installations that come with Mac OS X 10.6. GRASS 6.4 works fine for her with the wxpython interface. So it isn't a corruption of her python installation.

But I can't figure out what is generating this error.

Any thoughts would be appreciated.

Michael



More information about the grass-dev mailing list