Hi.
I’m on the Apple Beta Program and the new upgrade to OSX 10.11 El Capitan just broke g.gui.
This is the error message from version 6.4.4:
g.gui
Launching ‘wxpython’ GUI in the background, please wait …
Traceback (most recent call last):
File “/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py”, line 27, in
from core import globalvar
File “/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/core/globalvar.py”, line 74, in
import wx
File “/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/wx/init.py”, line 45, in
from wx._core import *
File “/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/wx/_core.py”, line 4, in
import core
ImportError: dlopen(/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/wx/core.so, 2): Library not loaded: /Users/Shared/unix/wxpython-cocoa-lion/lib/libwx_osx_cocoau-3.0.dylib
Referenced from: /Applications/GRASS-6.4.app/Contents/MacOS/etc/python/wx/core.so
Reason: image not found
The library that was not founded is available but not in the specified path:
locate libwx_osx_cocoau-3.0.dylib
/Applications/GRASS-6.4.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.dylib
/Applications/QGIS.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.dylib
/usr/local/lib/wxPython-3.0.2.0/lib/libwx_osx_cocoau-3.0.dylib
One question O think of is: if GRASS ships the wx libraries, why reference the system one at /Users/Shared/unix/…?
With GRASS 7.0, libgrass_gis is the one not being loaded, and in the end, not even in text mode it will start:
$ /Applications/GRASS-7.0.app/Contents/MacOS/grass.sh
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.6 found.
Cleaning up temporary files…
Starting GRASS GIS…
dyld: Library not loaded: /Applications/GRASS/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.0.dylib
Referenced from: /Applications/GRASS-7.0.app/Contents/MacOS/bin/g.gisenv
Reason: image not found
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in
from core import globalvar
File “/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 29, in
from core.debug import Debug
File “/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 66, in
Debug = DebugMsg()
File “/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 37, in init
self.SetLevel()
File “/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 42, in SetLevel
self.debuglevel = int(grass.gisenv().get(‘WX_DEBUG’, 0))
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py”, line 902, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py”, line 424, in read_command
process = pipe_command(*args, **kwargs)
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py”, line 399, in pipe_command
return start_command(*args, **kwargs)
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py”, line 354, in start_command
if debug_level() > 0:
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py”, line 1485, in debug_level
_debug_level = int(gisenv().get(‘DEBUG’, 0))
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py”, line 902, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py”, line 427, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py”, line 310, in handle_errors
returncode=returncode)
grass.exceptions.CalledModuleError: Module run None [‘g.gisenv’, ‘-n’] ended with error
Process ended with non-zero return code -5. See errors in the (error) output.
Error in GUI startup. If necessary, please report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue…
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/grass70”, line 1422, in
set_data()
File “/Applications/GRASS-7.0.app/Contents/MacOS/grass70”, line 670, in set_data
gui_startup(grass_gui == ‘gtext’)
File “/Applications/GRASS-7.0.app/Contents/MacOS/grass70”, line 692, in gui_startup
os.execlp(cmd_name, “-text”)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py”, line 327, in execlp
execvp(file, args)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py”, line 344, in execvp
_execvpe(file, args)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py”, line 380, in _execvpe
func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
Maybe later today i’ll try to compile G7.
best
Carlos
···
Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil
- Digital Terrain Analysis | GIS | Remote Sensing -
http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572
Can’t stop the signal.