[GRASS-dev] [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

…Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ ‘/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh’; exit

Rebuilding Addon HTML manual pages index…

Rebuilding Addon menu…

Python 2.7.10 found.

Cleaning up temporary files…

Starting GRASS GIS…

dyld: Library not loaded: /usr/local/lib/libintl.8.dylib

Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

Reason: image not found

Traceback (most recent call last):

File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in

from core import globalvar

File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 29, in

from core.debug import Debug

File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 77, in

Debug = DebugMsg()

File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 39, in init

self.SetLevel()

File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 45, in SetLevel

self.debuglevel = int(grass.gisenv().get(‘WX_DEBUG’, 0))

File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv

s = read_command(“g.gisenv”, flags=‘n’)

File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 458, in read_command

process = pipe_command(*args, **kwargs)

File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 433, in pipe_command

return start_command(*args, **kwargs)

File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 372, in start_command

if debug_level() > 0:

File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 1536, in debug_level

_debug_level = int(gisenv().get(‘DEBUG’, 0))

File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv

s = read_command(“g.gisenv”, flags=‘n’)

File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 461, in read_command

return handle_errors(returncode, stdout, args, kwargs)

File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.

On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.

To run GRASS GIS in text mode use the -text flag.

Exiting…

logout

Saving session…

…copying shared history…

…saving history…truncating history files…

…completed.

– Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous “64bit” GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

  1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

  2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and ) unless you hit to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you’ve turned it off) and see if this version runs. Of course, maybe I’ve “fixed” it so that it only runs on my system and crashes on everyone else’s.

Enjoy!
Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/…/…/…/…/libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

…Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ ‘/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh’; exit
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.10 found.
Cleaning up temporary files…
Starting GRASS GIS…
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in
from core import globalvar
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 29, in
from core.debug import Debug
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 77, in
Debug = DebugMsg()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 39, in init
self.SetLevel()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 45, in SetLevel
self.debuglevel = int(grass.gisenv().get(‘WX_DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 458, in read_command
process = pipe_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 433, in pipe_command
return start_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 372, in start_command
if debug_level() > 0:
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 1536, in debug_level
_debug_level = int(gisenv().get(‘DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 461, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting…
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

– Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous “64bit” GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

  1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

  2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and ) unless you hit to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you’ve turned it off) and see if this version runs. Of course, maybe I’ve “fixed” it so that it only runs on my system and crashes on everyone else’s.

Enjoy!
Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/…). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/…/…/…/…/libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

…Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ ‘/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh’; exit
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.10 found.
Cleaning up temporary files…
Starting GRASS GIS…
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in
from core import globalvar
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 29, in
from core.debug import Debug
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 77, in
Debug = DebugMsg()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 39, in init
self.SetLevel()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 45, in SetLevel
self.debuglevel = int(grass.gisenv().get(‘WX_DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 458, in read_command
process = pipe_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 433, in pipe_command
return start_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 372, in start_command
if debug_level() > 0:
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 1536, in debug_level
_debug_level = int(gisenv().get(‘DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 461, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting…
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

– Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous “64bit” GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

  1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

  2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and ) unless you hit to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you’ve turned it off) and see if this version runs. Of course, maybe I’ve “fixed” it so that it only runs on my system and crashes on everyone else’s.

Enjoy!
Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it’s not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/…). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/…/…/…/…/libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

…Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ ‘/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh’; exit
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.10 found.
Cleaning up temporary files…
Starting GRASS GIS…
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in
from core import globalvar
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 29, in
from core.debug import Debug
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 77, in
Debug = DebugMsg()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 39, in init
self.SetLevel()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 45, in SetLevel
self.debuglevel = int(grass.gisenv().get(‘WX_DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 458, in read_command
process = pipe_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 433, in pipe_command
return start_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 372, in start_command
if debug_level() > 0:
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 1536, in debug_level
_debug_level = int(gisenv().get(‘DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 461, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting…
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

– Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous “64bit” GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

  1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

  2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and ) unless you hit to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you’ve turned it off) and see if this version runs. Of course, maybe I’ve “fixed” it so that it only runs on my system and crashes on everyone else’s.

Enjoy!
Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.10 found.
Cleaning up temporary files…
Starting GRASS GIS…
Traceback (most recent call last):
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in
from core import globalvar
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 96, in
import wx
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/init.py”, line 45, in
from wx._core import *
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py”, line 4, in
import core
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/core.so, 2): Library not loaded: @loader_path/…/…/…/…/libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/core.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting…
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

[Process completed]

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it’s not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/…). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/…/…/…/…/libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

…Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ ‘/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh’; exit
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.10 found.
Cleaning up temporary files…
Starting GRASS GIS…
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in
from core import globalvar
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 29, in
from core.debug import Debug
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 77, in
Debug = DebugMsg()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 39, in init
self.SetLevel()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 45, in SetLevel
self.debuglevel = int(grass.gisenv().get(‘WX_DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 458, in read_command
process = pipe_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 433, in pipe_command
return start_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 372, in start_command
if debug_level() > 0:
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 1536, in debug_level
_debug_level = int(gisenv().get(‘DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 461, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting…
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

– Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous “64bit” GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

  1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

  2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and ) unless you hit to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you’ve turned it off) and see if this version runs. Of course, maybe I’ve “fixed” it so that it only runs on my system and crashes on everyone else’s.

Enjoy!
Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.10 found.
Cleaning up temporary files…
Starting GRASS GIS…
Traceback (most recent call last):
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in
from core import globalvar
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 96, in
import wx
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/init.py”, line 45, in
from wx._core import *
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py”, line 4, in
import core
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/core.so, 2): Library not loaded: @loader_path/…/…/…/…/libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/core.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting…
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

[Process completed]

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it’s not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/…). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/…/…/…/…/libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

…Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ ‘/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh’; exit
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.10 found.
Cleaning up temporary files…
Starting GRASS GIS…
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in
from core import globalvar
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 29, in
from core.debug import Debug
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 77, in
Debug = DebugMsg()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 39, in init
self.SetLevel()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 45, in SetLevel
self.debuglevel = int(grass.gisenv().get(‘WX_DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 458, in read_command
process = pipe_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 433, in pipe_command
return start_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 372, in start_command
if debug_level() > 0:
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 1536, in debug_level
_debug_level = int(gisenv().get(‘DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 461, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting…
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

– Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous “64bit” GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

  1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

  2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and ) unless you hit to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you’ve turned it off) and see if this version runs. Of course, maybe I’ve “fixed” it so that it only runs on my system and crashes on everyone else’s.

Enjoy!
Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
  File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
    from core import globalvar
  File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
    import wx
  File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
    from wx._core import *
  File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
    import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
  Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
  Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
  Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
  Reason: image not found
Traceback (most recent call last):
  File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
    from core import globalvar
  File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
    from core.debug import Debug
  File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
    Debug = DebugMsg()
  File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
    self.SetLevel()
  File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
    self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
  File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
    s = read_command("g.gisenv", flags='n')
  File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
    process = pipe_command(*args, **kwargs)
  File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
    return start_command(*args, **kwargs)
  File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
    if debug_level() > 0:
  File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
    _debug_level = int(gisenv().get('DEBUG', 0))
  File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
    s = read_command("g.gisenv", flags='n')
  File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
    return handle_errors(returncode, stdout, args, kwargs)
  File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
http://geospatial.ncsu.edu/osgeorel/publications.html

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

Thanks Helena,

I’m betting you have Anaconda on that laptop too.

The histogram issue requires a hack to plot.py in wxPython. I’ve done that in my system version but not in the Anaconda version yet. It is supposedly fixed in wxp 3.0.3.0, but that is not yet available except for those hardy, intrepid souls who want to compile it from scratch.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 2:39 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
   from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
   import wx
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
   from wx._core import *
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
   import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
   from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
   from core.debug import Debug
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
   Debug = DebugMsg()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
   self.SetLevel()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
   self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
   s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
   process = pipe_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
   return start_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
   if debug_level() > 0:
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
   _debug_level = int(gisenv().get('DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
   s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
   return handle_errors(returncode, stdout, args, kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
NCSU GeoForAll Lab (NCSU OSGeoREL)

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

It’s not gdal. Sorry.

I meant libwx_macud_gl…

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:57 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

But, I would expect an error about not finding the library, like I was seeing for the other ones. So, I’m not sure what library can’t find gdal?
In my map display window, if I open a raster, I see a pull down the that 2D view and Raster digitizer. Is that where there also should be a 3D view?

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 4:49 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.10 found.
Cleaning up temporary files…
Starting GRASS GIS…
Traceback (most recent call last):
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in
from core import globalvar
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 96, in
import wx
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/init.py”, line 45, in
from wx._core import *
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py”, line 4, in
import core
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/core.so, 2): Library not loaded: @loader_path/…/…/…/…/libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/core.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting…
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

[Process completed]

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it’s not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/…). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/…/…/…/…/libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

– Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

…Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ ‘/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh’; exit
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.10 found.
Cleaning up temporary files…
Starting GRASS GIS…
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py”, line 31, in
from core import globalvar
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py”, line 29, in
from core.debug import Debug
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 77, in
Debug = DebugMsg()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 39, in init
self.SetLevel()
File “/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py”, line 45, in SetLevel
self.debuglevel = int(grass.gisenv().get(‘WX_DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 458, in read_command
process = pipe_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 433, in pipe_command
return start_command(*args, **kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 372, in start_command
if debug_level() > 0:
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 1536, in debug_level
_debug_level = int(gisenv().get(‘DEBUG’, 0))
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 953, in gisenv
s = read_command(“g.gisenv”, flags=‘n’)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 461, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File “/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py”, line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting…
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

– Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous “64bit” GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

  1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

  2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and ) unless you hit to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you’ve turned it off) and see if this version runs. Of course, maybe I’ve “fixed” it so that it only runs on my system and crashes on everyone else’s.

Enjoy!
Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Thu, Jun 2, 2016 at 5:45 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Helena,

I’m betting you have Anaconda on that laptop too.

The histogram issue requires a hack to plot.py in wxPython. I’ve done that in my system version but not in the Anaconda version yet. It is supposedly fixed in wxp 3.0.3.0, but that is not yet available except for those hardy, intrepid souls who want to compile it from scratch.

I actually compiled wxPython previously and recently Phoenix. It was
not that difficult at all. But that was on Ubuntu.

I was looking into the state of wxPython project. The 'classic'
version is pretty much dead. Although wxWidgets 3.1.0 was released in
February, there hasn't been any activity towards releasing new
wxPython, and no response to this question on mailing list. That is
unfortunate, considering that the new version would fix most problems
we now have on Mac. That was my motivation to look at it, so that I
don't spend time workarounding something when there is new version.
But I wouldn't give up just yet, it might just take them longer time
to release it.

What is good, that Phoenix is alive (should work with both Python 2
and 3) and there might be a crowdsourcing campaign to fund the main
guy to bring it to first release. I downloaded and compiled Phoenix
(surprisingly easy) and the problem is that one of the widgets we use
in Map Display is not ported, so there's no point in testing the rest.
That might be fixed for the release, hopefully.

Anna

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 2:39 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
   from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
   import wx
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
   from wx._core import *
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
   import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
   from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
   from core.debug import Debug
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
   Debug = DebugMsg()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
   self.SetLevel()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
   self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
   s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
   process = pipe_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
   return start_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
   if debug_level() > 0:
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
   _debug_level = int(gisenv().get('DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
   s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
   return handle_errors(returncode, stdout, args, kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
http://geospatial.ncsu.edu/osgeorel/publications.html

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hi,
The 64bit version posted on June, 1 is working in my laptop running El Capitan (10.11.5) and with SIP disabled but the first raster is not displayed in 2D. Curiously enough, changing the display to 3D it will show up.
I’ve no Anaconda installed as far as I can say. However, I do have
libintl.8.dylib, libwx_osx_cocoau-3.0.0.2.0.dylib and others in /usr/local/lib
Agustin

El 2Jun, 2016, a las 11:39 PM, Helena Mitasova <hmitaso@ncsu.edu> escribió:

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
   from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
   import wx
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
   from wx._core import *
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
   import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
   from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
   from core.debug import Debug
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
   Debug = DebugMsg()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
   self.SetLevel()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
   self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
   s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
   process = pipe_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
   return start_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
   if debug_level() > 0:
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
   _debug_level = int(gisenv().get('DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
   s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
   return handle_errors(returncode, stdout, args, kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
http://geospatial.ncsu.edu/osgeorel/publications.html

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Well this is interesting. Why does it work for you and not for Adam?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 3, 2016, at 1:24 AM, Agustin Diez Castillo <Agustin.Diez@uv.es> wrote:

Hi,
The 64bit version posted on June, 1 is working in my laptop running El Capitan (10.11.5) and with SIP disabled but the first raster is not displayed in 2D. Curiously enough, changing the display to 3D it will show up.
I’ve no Anaconda installed as far as I can say. However, I do have
libintl.8.dylib, libwx_osx_cocoau-3.0.0.2.0.dylib and others in /usr/local/lib
Agustin

El 2Jun, 2016, a las 11:39 PM, Helena Mitasova <hmitaso@ncsu.edu> escribió:

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
  from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
  import wx
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
  from wx._core import *
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
  import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
  from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
  from core.debug import Debug
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
  Debug = DebugMsg()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
  self.SetLevel()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
  self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
  s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
  process = pipe_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
  return start_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
  if debug_level() > 0:
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
  _debug_level = int(gisenv().get('DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
  s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
  return handle_errors(returncode, stdout, args, kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
NCSU GeoForAll Lab (NCSU OSGeoREL)

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

I get the pygrass error too. But I think that is a function of compiling 64 bit and with wxPython 3. I don’t know if it is hardwired 32 bit or something else.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 3, 2016, at 11:37 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

It sounds like it is running for Agustin because it is using the libraries that are in /usr/local/ But, I don’t have those installed, so I had to point it to the libraries that are installed in the application bundle itself. Then, it does run for me…except for 3D. My guess is that 3D uses another library, but loads it via Python (or some other method) instead of directly having the path hardwired into the binary. So, it doesn’t give the an error and quit. Instead the load fails, and that feature is disabled, but the rest is able to run.
I wonder if this error that I see, might be the problem:

Starting GRASS GIS...
Unable to import pyGRASS: grass_gis.7.3.svn not found.
Some functionality will be not accessible

Do you know what that library should be, and what might be calling it?
This file is present: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
But, clearly something is trying to use it and failing, with a polite message above, instead of a total crash, as usually happens with most applications.

Or, could this still relate to SIP? Since I still have it enabled, and Agustin tested with it disabled?

-- Adam

On 6/3/16, 2:12 PM, "Michael Barton" <Michael.Barton@asu.edu> wrote:

Well this is interesting. Why does it work for you and not for Adam?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=CwIF-g&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=wSggGKdak3IyN6bNedvLZf0-uowQoi4wFVIOgF6ABbs&s=hUaqsxEUI9Oha2if8lawxNn6P5V7oy-jqJJnoZV5cCg&e= , Center for Social Dynamics and Complexity

On Jun 3, 2016, at 1:24 AM, Agustin Diez Castillo <Agustin.Diez@uv.es> wrote:

Hi,
The 64bit version posted on June, 1 is working in my laptop running El Capitan (10.11.5) and with SIP disabled but the first raster is not displayed in 2D. Curiously enough, changing the display to 3D it will show up.
I’ve no Anaconda installed as far as I can say. However, I do have
libintl.8.dylib, libwx_osx_cocoau-3.0.0.2.0.dylib and others in /usr/local/lib
Agustin

El 2Jun, 2016, a las 11:39 PM, Helena Mitasova <hmitaso@ncsu.edu> escribió:

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=CwIF-g&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=wSggGKdak3IyN6bNedvLZf0-uowQoi4wFVIOgF6ABbs&s=hUaqsxEUI9Oha2if8lawxNn6P5V7oy-jqJJnoZV5cCg&e= , Center for Social Dynamics and Complexity

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=CwIF-g&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=wSggGKdak3IyN6bNedvLZf0-uowQoi4wFVIOgF6ABbs&s=hUaqsxEUI9Oha2if8lawxNn6P5V7oy-jqJJnoZV5cCg&e= , Center for Social Dynamics and Complexity

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
import wx
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=CwIF-g&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=wSggGKdak3IyN6bNedvLZf0-uowQoi4wFVIOgF6ABbs&s=hUaqsxEUI9Oha2if8lawxNn6P5V7oy-jqJJnoZV5cCg&e= , Center for Social Dynamics and Complexity

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=CwIF-g&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=wSggGKdak3IyN6bNedvLZf0-uowQoi4wFVIOgF6ABbs&s=hUaqsxEUI9Oha2if8lawxNn6P5V7oy-jqJJnoZV5cCg&e= , Center for Social Dynamics and Complexity

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=CwIF-g&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=wSggGKdak3IyN6bNedvLZf0-uowQoi4wFVIOgF6ABbs&s=hUaqsxEUI9Oha2if8lawxNn6P5V7oy-jqJJnoZV5cCg&e= , Center for Social Dynamics and Complexity

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
from core.debug import Debug
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
Debug = DebugMsg()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
self.SetLevel()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
process = pipe_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
return start_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
if debug_level() > 0:
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
_debug_level = int(gisenv().get('DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (About - GRASS GIS for the Mac )

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=CwIF-g&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=wSggGKdak3IyN6bNedvLZf0-uowQoi4wFVIOgF6ABbs&s=hUaqsxEUI9Oha2if8lawxNn6P5V7oy-jqJJnoZV5cCg&e= , Center for Social Dynamics and Complexity

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
NCSU GeoForAll Lab (NCSU OSGeoREL)

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

What is Phoenix?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 6:42 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Thu, Jun 2, 2016 at 5:45 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Helena,

I’m betting you have Anaconda on that laptop too.

The histogram issue requires a hack to plot.py in wxPython. I’ve done that in my system version but not in the Anaconda version yet. It is supposedly fixed in wxp 3.0.3.0, but that is not yet available except for those hardy, intrepid souls who want to compile it from scratch.

I actually compiled wxPython previously and recently Phoenix. It was
not that difficult at all. But that was on Ubuntu.

I was looking into the state of wxPython project. The 'classic'
version is pretty much dead. Although wxWidgets 3.1.0 was released in
February, there hasn't been any activity towards releasing new
wxPython, and no response to this question on mailing list. That is
unfortunate, considering that the new version would fix most problems
we now have on Mac. That was my motivation to look at it, so that I
don't spend time workarounding something when there is new version.
But I wouldn't give up just yet, it might just take them longer time
to release it.

What is good, that Phoenix is alive (should work with both Python 2
and 3) and there might be a crowdsourcing campaign to fund the main
guy to bring it to first release. I downloaded and compiled Phoenix
(surprisingly easy) and the problem is that one of the widgets we use
in Map Display is not ported, so there's no point in testing the rest.
That might be fixed for the release, hopefully.

Anna

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 2:39 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
  from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
  import wx
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
  from wx._core import *
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
  import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
  from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
  from core.debug import Debug
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
  Debug = DebugMsg()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
  self.SetLevel()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
  self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
  s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
  process = pipe_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
  return start_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
  if debug_level() > 0:
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
  _debug_level = int(gisenv().get('DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
  s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
  return handle_errors(returncode, stdout, args, kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
NCSU GeoForAll Lab (NCSU OSGeoREL)

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

On Sun, Jun 5, 2016 at 1:32 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

What is Phoenix?

That's a new version of wxPython, completely rewritten with support
for Python3, basically the future of wxPython project.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 6:42 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Thu, Jun 2, 2016 at 5:45 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Helena,

I’m betting you have Anaconda on that laptop too.

The histogram issue requires a hack to plot.py in wxPython. I’ve done that in my system version but not in the Anaconda version yet. It is supposedly fixed in wxp 3.0.3.0, but that is not yet available except for those hardy, intrepid souls who want to compile it from scratch.

I actually compiled wxPython previously and recently Phoenix. It was
not that difficult at all. But that was on Ubuntu.

I was looking into the state of wxPython project. The 'classic'
version is pretty much dead. Although wxWidgets 3.1.0 was released in
February, there hasn't been any activity towards releasing new
wxPython, and no response to this question on mailing list. That is
unfortunate, considering that the new version would fix most problems
we now have on Mac. That was my motivation to look at it, so that I
don't spend time workarounding something when there is new version.
But I wouldn't give up just yet, it might just take them longer time
to release it.

What is good, that Phoenix is alive (should work with both Python 2
and 3) and there might be a crowdsourcing campaign to fund the main
guy to bring it to first release. I downloaded and compiled Phoenix
(surprisingly easy) and the problem is that one of the widgets we use
in Map Display is not ported, so there's no point in testing the rest.
That might be fixed for the release, hopefully.

Anna

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 2:39 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
  from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
  import wx
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
  from wx._core import *
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
  import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
  from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
  from core.debug import Debug
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
  Debug = DebugMsg()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
  self.SetLevel()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
  self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
  s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
  process = pipe_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
  return start_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
  if debug_level() > 0:
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
  _debug_level = int(gisenv().get('DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
  s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
  return handle_errors(returncode, stdout, args, kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
http://geospatial.ncsu.edu/osgeorel/publications.html

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Thanks. Looks interesting. But it also looks like it will take a complete rewrite of the GUI, at least to change all the class names, and probably to check the arguments.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 5, 2016, at 10:54 AM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Sun, Jun 5, 2016 at 1:32 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

What is Phoenix?

That's a new version of wxPython, completely rewritten with support
for Python3, basically the future of wxPython project.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 6:42 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Thu, Jun 2, 2016 at 5:45 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Helena,

I’m betting you have Anaconda on that laptop too.

The histogram issue requires a hack to plot.py in wxPython. I’ve done that in my system version but not in the Anaconda version yet. It is supposedly fixed in wxp 3.0.3.0, but that is not yet available except for those hardy, intrepid souls who want to compile it from scratch.

I actually compiled wxPython previously and recently Phoenix. It was
not that difficult at all. But that was on Ubuntu.

I was looking into the state of wxPython project. The 'classic'
version is pretty much dead. Although wxWidgets 3.1.0 was released in
February, there hasn't been any activity towards releasing new
wxPython, and no response to this question on mailing list. That is
unfortunate, considering that the new version would fix most problems
we now have on Mac. That was my motivation to look at it, so that I
don't spend time workarounding something when there is new version.
But I wouldn't give up just yet, it might just take them longer time
to release it.

What is good, that Phoenix is alive (should work with both Python 2
and 3) and there might be a crowdsourcing campaign to fund the main
guy to bring it to first release. I downloaded and compiled Phoenix
(surprisingly easy) and the problem is that one of the widgets we use
in Map Display is not ported, so there's no point in testing the rest.
That might be fixed for the release, hopefully.

Anna

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 2:39 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
import wx
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
from core.debug import Debug
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
Debug = DebugMsg()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
self.SetLevel()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
process = pipe_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
return start_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
if debug_level() > 0:
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
_debug_level = int(gisenv().get('DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
NCSU GeoForAll Lab (NCSU OSGeoREL)

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

On Sun, Jun 5, 2016 at 6:29 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks. Looks interesting. But it also looks like it will take a complete rewrite of the GUI, at least to change all the class names, and probably to check the arguments.

No, it should be fairly compatible, the problem is as I wrote before
one of the widgets important for wxGUI is not ported there yet.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 5, 2016, at 10:54 AM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Sun, Jun 5, 2016 at 1:32 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

What is Phoenix?

That's a new version of wxPython, completely rewritten with support
for Python3, basically the future of wxPython project.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 6:42 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Thu, Jun 2, 2016 at 5:45 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Helena,

I’m betting you have Anaconda on that laptop too.

The histogram issue requires a hack to plot.py in wxPython. I’ve done that in my system version but not in the Anaconda version yet. It is supposedly fixed in wxp 3.0.3.0, but that is not yet available except for those hardy, intrepid souls who want to compile it from scratch.

I actually compiled wxPython previously and recently Phoenix. It was
not that difficult at all. But that was on Ubuntu.

I was looking into the state of wxPython project. The 'classic'
version is pretty much dead. Although wxWidgets 3.1.0 was released in
February, there hasn't been any activity towards releasing new
wxPython, and no response to this question on mailing list. That is
unfortunate, considering that the new version would fix most problems
we now have on Mac. That was my motivation to look at it, so that I
don't spend time workarounding something when there is new version.
But I wouldn't give up just yet, it might just take them longer time
to release it.

What is good, that Phoenix is alive (should work with both Python 2
and 3) and there might be a crowdsourcing campaign to fund the main
guy to bring it to first release. I downloaded and compiled Phoenix
(surprisingly easy) and the problem is that one of the widgets we use
in Map Display is not ported, so there's no point in testing the rest.
That might be fixed for the release, hopefully.

Anna

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 2:39 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
import wx
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
from core.debug import Debug
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
Debug = DebugMsg()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
self.SetLevel()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
process = pipe_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
return start_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
if debug_level() > 0:
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
_debug_level = int(gisenv().get('DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
http://geospatial.ncsu.edu/osgeorel/publications.html

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

I was looking at the classic vs. Phoenix page and it seems like almost all functions are renamed at least to a minor degree.

http://wxpython.org/Phoenix/docs/html/classic_vs_phoenix.html

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 5, 2016, at 4:08 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Sun, Jun 5, 2016 at 6:29 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks. Looks interesting. But it also looks like it will take a complete rewrite of the GUI, at least to change all the class names, and probably to check the arguments.

No, it should be fairly compatible, the problem is as I wrote before
one of the widgets important for wxGUI is not ported there yet.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 5, 2016, at 10:54 AM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Sun, Jun 5, 2016 at 1:32 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

What is Phoenix?

That's a new version of wxPython, completely rewritten with support
for Python3, basically the future of wxPython project.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 6:42 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Thu, Jun 2, 2016 at 5:45 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Helena,

I’m betting you have Anaconda on that laptop too.

The histogram issue requires a hack to plot.py in wxPython. I’ve done that in my system version but not in the Anaconda version yet. It is supposedly fixed in wxp 3.0.3.0, but that is not yet available except for those hardy, intrepid souls who want to compile it from scratch.

I actually compiled wxPython previously and recently Phoenix. It was
not that difficult at all. But that was on Ubuntu.

I was looking into the state of wxPython project. The 'classic'
version is pretty much dead. Although wxWidgets 3.1.0 was released in
February, there hasn't been any activity towards releasing new
wxPython, and no response to this question on mailing list. That is
unfortunate, considering that the new version would fix most problems
we now have on Mac. That was my motivation to look at it, so that I
don't spend time workarounding something when there is new version.
But I wouldn't give up just yet, it might just take them longer time
to release it.

What is good, that Phoenix is alive (should work with both Python 2
and 3) and there might be a crowdsourcing campaign to fund the main
guy to bring it to first release. I downloaded and compiled Phoenix
(surprisingly easy) and the problem is that one of the widgets we use
in Map Display is not ported, so there's no point in testing the rest.
That might be fixed for the release, hopefully.

Anna

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 2:39 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael, Adam,

I installed the prior 64bit version on a laptop with SID disabled and it seems to run fine, including the 3D visualization.
Michael, as you mentioned, I had to use arrow keys to select map layers and to select 3D for the first time but it ran
OK after that. Few known issues related to Python 3 (e.g. histogram) did not work.

Helena

On Jun 2, 2016, at 4:49 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve had no problem running 3D (in the map display window). Maybe you didn’t get a path set for the wx…gdal… library?

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 1:34 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I went back to the prior version that I downloaded, where I made the changes to the paths. What I had not noticed before is that I don’t see any way to run nviz. I only see a 2D view. Is that something that should be installed, but it might also be a path issue?
When I do run grass, I also see this: Unable to import pyGRASS: grass_gis.7.3.svn not found. So, that might relate to 3D, or might just be a sign of another part of the path to dynamic library issue.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 3:48 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Darn!

It is as I was afraid of. Building with Anaconda wxPython means that the GUI is looking for the Anaconda Python distribution too. So this approach will not work.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 12:15 PM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I just downloaded the version on the site, and when I run it, I have the same problem. wxPython is looking in the wrong place for shared libraries:

Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 96, in <module>
import wx
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core.py", line 4, in <module>
import _core_
ImportError: dlopen(/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so, 2): Library not loaded: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/etc/python/wx/_core_.so
Reason: image not found
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 2:41 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

I just now uploaded a new binary to the GRASS Mac website. I built wxPython against the Anaconda distribution and Python against system Python. I disabled gettext so that it hopefully will not cause issues. This works on my system, so it's not a total bomb. Now to see if it works without Anaconda Python.

One thing to test is whether v.in.lidar will actually work (64bit LASlib).

Thanks again.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:56 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Yes, I’m happy to try it out, once you get it built. Once you do, let me know if there are any specific features that would use specific libraries, so I can test them.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 1:53 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Adam,

Excellent. I’ll trudge over to the other office and do another version soon. I hope you can try it.

There are complications in running install_name_tool during the bundling process. I am working in parallel on a way to do something like that. But in the meantime, a lot of problems could be avoided if I can build GRASS against dependencies that are compiled outside the system folders (/usr/..). I’ve done that with LASlib and it caused you no problems. I’ve been able to build gettext outside of the system area but GRASS can’t find it so far. In this build, I tried packaging the relevant gettext libraries with GRASS, but it still looks for them in /usr/local. I was afraid of that but thought I’d try that. I don’t want to build wxPython from scratch, but can get the right version in the Anaconda package. I will now try to build GRASS against that version. What I don’t know is whether it will then complain if you don’t also have the Anaconda Python 2.7. We’ll see.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 10:12 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I don’t have Anaconda installed.

An option would be to put the commands that I sent into whatever build script you are using. The changes that are made by install_name_tool can be made to the dozen or so files and then you could package it up to the installer.
The only problems, I have seen and fixed are with the paths to libwx_osx_cocoau-3.0.0.2.0.dylib and libintl.8.dylib

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 12:17 PM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers <grass-dev@lists.osgeo.org>, GRASS users <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks Adam,

This is disappointing but informative. Do you have the Anaconda Python package installed? I am hoping you do not so I can test another alternative too.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 8:19 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

I used install_name_tool to change the path that the files use to find dynamic libraries. The actual specific command I used are my later emails.
For example here is one:
install_name_tool -change /usr/local/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib

The issue is that this library: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib was trying to dynamically link to this: /usr/local/lib/libintl.8.dylib (which doest exist on my system, but probably does on yours) instead it should have been using this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libintl.8.dylib (which had been correctly installed on my system by the installer).

Each of the other commands that I sent showed that a number of other libraries were each looking for this: @loader_path/../../../../libwx_osx_cocoau-3.0.0.2.0.dylib when the correct path is this: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libwx_osx_cocoau-3.0.0.2.0.dylib (again, on your machine, both might exist from when you were building).

Each of these paths is hard coded into the binaries at build time, so there is some flag that can generally be used to set them correctly. All I did was changed them using using install_name_tool which is a bit of a kludge.

-- Adam

From: Michael Barton <Michael.Barton@asu.edu>
Date: Thursday, June 2, 2016 at 11:06 AM
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

Thanks for the report Adam. When you say you fixed the path, what exactly did you do?

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

...Sent from my iPad

On Jun 2, 2016, at 6:54 AM, Adam Dershowitz <adershowitz@exponent.com> wrote:

Looks like you missed a library, or path. I just tried it on 10.11 with SIP enabled, and I get this error:

$ '/Applications/GRASS-7.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Cleaning up temporary files...
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /Applications/GRASS-7.3.app/Contents/MacOS/lib/libgrass_gis.7.3.svn.dylib
Reason: image not found
Traceback (most recent call last):
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/gis_set.py", line 31, in <module>
from core import globalvar
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/globalvar.py", line 29, in <module>
from core.debug import Debug
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 77, in <module>
Debug = DebugMsg()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 39, in __init__
self.SetLevel()
File "/Applications/GRASS-7.3.app/Contents/MacOS/gui/wxpython/core/debug.py", line 45, in SetLevel
self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 458, in read_command
process = pipe_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 433, in pipe_command
return start_command(*args, **kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 372, in start_command
if debug_level() > 0:
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 1536, in debug_level
_debug_level = int(gisenv().get('DEBUG', 0))
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 953, in gisenv
s = read_command("g.gisenv", flags='n')
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 461, in read_command
return handle_errors(returncode, stdout, args, kwargs)
File "/Applications/GRASS-7.3.app/Contents/MacOS/etc/python/grass/script/core.py", line 329, 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: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Exiting...
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

-- Adam

From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Michael Barton <Michael.Barton@asu.edu>
Date: Wednesday, June 1, 2016 at 7:50 PM
To: GRASS developers list <grass-dev@lists.osgeo.org>, grass-user grass-user <grass-user@lists.osgeo.org>
Subject: [GRASS-user] GRASS for Mac 64bit, wxPython 3, maybe fix for SIP problem - please test

I just posted a new binary for GRASS 7.3 built fully 64 bit, with wxPython 3.0.2.0 to the GRASS for Mac site (http://grassmac.wikidot.com)

It turns out the previous "64bit" GRASS binary still ran 32bit Python. I had to hack the python_wrapper.py file, but this one is fully 64bit AFAICT. I also tried some hacks that might be a way to solve the inability to run GRASS on El Capitan with SIP enabled. There are a couple of known bugs in the wxPython 3.x GUI

1. The most serious is switching to 3D mode and back to 2D mode leaves one of the map display menu buttons corrupted. It seems the only thing you can do is to close the map display and open a new one.

2. There are also some popup lists (e.g., for switching mapsets) that do not behave as they should. You cannot select an item with a mouse (but you can select with arrow keys and <return>) unless you hit <escape> to destroy part of the control. Then you can use the mouse to click something.

Please let us know if you encounter any other bug or strange behavior.

Also, and importantly if anyone is running El Capitan, it would be great if you could reenable SIP (if you've turned it off) and see if this version runs. Of course, maybe I've "fixed" it so that it only runs on my system and crashes on everyone else's.

Enjoy!
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
and Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
NCSU GeoForAll Lab (NCSU OSGeoREL)

"All electronic mail messages in connection with State business which are sent to or received by this account are subject to the NC Public Records Law and may be disclosed to third parties.”

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

I am trimming off a lot of the past discussion for future conversations as Markus requested.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 5, 2016, at 4:08 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Sun, Jun 5, 2016 at 6:29 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks. Looks interesting. But it also looks like it will take a complete rewrite of the GUI, at least to change all the class names, and probably to check the arguments.

No, it should be fairly compatible, the problem is as I wrote before
one of the widgets important for wxGUI is not ported there yet.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 5, 2016, at 10:54 AM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Sun, Jun 5, 2016 at 1:32 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

What is Phoenix?

That's a new version of wxPython, completely rewritten with support
for Python3, basically the future of wxPython project.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Jun 2, 2016, at 6:42 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Thu, Jun 2, 2016 at 5:45 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Helena,

I’m betting you have Anaconda on that laptop too.

The histogram issue requires a hack to plot.py in wxPython. I’ve done that in my system version but not in the Anaconda version yet. It is supposedly fixed in wxp 3.0.3.0, but that is not yet available except for those hardy, intrepid souls who want to compile it from scratch.

I actually compiled wxPython previously and recently Phoenix. It was
not that difficult at all. But that was on Ubuntu.

I was looking into the state of wxPython project. The 'classic'
version is pretty much dead. Although wxWidgets 3.1.0 was released in
February, there hasn't been any activity towards releasing new
wxPython, and no response to this question on mailing list. That is
unfortunate, considering that the new version would fix most problems
we now have on Mac. That was my motivation to look at it, so that I
don't spend time workarounding something when there is new version.
But I wouldn't give up just yet, it might just take them longer time
to release it.

What is good, that Phoenix is alive (should work with both Python 2
and 3) and there might be a crowdsourcing campaign to fund the main
guy to bring it to first release. I downloaded and compiled Phoenix
(surprisingly easy) and the problem is that one of the widgets we use
in Map Display is not ported, so there's no point in testing the rest.
That might be fixed for the release, hopefully.

Anna

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu