[GRASS-dev] Grass on MacOS (Ken Mankoff)

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an app, and created a dmg. It runs with a double click. This is great!! Tonight, I will test on my laptop at home with SIP turned on. Fingers crossed.

Cheers
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 Jan 15, 2018, at 10:22 PM, Eric Hutton <hutton.eric@gmail.com> wrote:

Hi Michael

That’s great!

I included those two extra shell scripts as they were used with a previous version of grass. They are called in the Grass.sh script. I don’t really know what they do, maybe they are no longer necessary.

To be honest, I’m not sure how I got the size down so much. After installing grass into the app, I ran “conda clean --all” and manually removed everything under the Contents/Resources/pkgs folder - but that’s what I had always been doing (I think, anyway).

I’ve added the updated scripts to the GitHub repo. I think that now has everything I was working with created the app that’s now working for you.

Eric

On Mon, Jan 15, 2018 at 9:35 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Eric,

I wrote you on this but apparently it never was sent.

I tested your new app and it works like a charm. Opens with a double click and no problems. There are a couple extra shell scripts in …/Contents/MacOS/ that don’t seem to be called by anything. Or am I just not seeing it? I will try inserting the new start up scripts into my own build tomorrow and see if it works the same.

How did you get the size down so much? I got it close last week by removing the pkg folder, env folder, doc folder, and then some selective items in bin. But I’m hoping your have a more systematic list of what can be removed.

This looks like exactly what is needed. Hopefully I can package it as you did and get it posted to test by the end of the week.

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 Jan 14, 2018, at 3:23 PM, Eric Hutton <hutton.eric@gmail.com> wrote:

Hi Michael

Thanks for your earlier clarification about how grass runs (I was missing a key point!). I think I have a solution now. Basically, the Grass72.app/Contents/MacOS/Grass script now opens up a terminal and, within that terminal, executes the startup script (the one we were using before, which is now Grass.sh).

You can see what I mean here:

https://github.com/mcflugen/grass-conda-build/tree/master/osx/Grass72.app/Contents/MacOS

I’ll start to make a new app but the one I have seems to be working now (I’ve been using the NC data you sent me).

Eric

On Sun, Jan 14, 2018 at 1:31 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Ken & Co.

You might find this of interest.

I’ve been working off and on for the past several month to find a new way to compile and distribute GRASS for Mac with all dependencies created outside the Mac system folders and bundled with it. The goal is to eliminate the SIP problem and the potential for conflicts with different versions of dependencies/frameworks/python/wxpython.

With a lot of help from colleague Eric Hutton (Community Surface Dynamics Modeling System), we are very close to having a reproducible and distributable build of GRASS under Anaconda. Our goal is to compile GRASS in an Anaconda environment so that it is distributable in two related ways: as a standard Mac package and app, and as an Anaconda package (installed via the command ‘conda install [grass version]’). This will be a fully 64 bit GRASS version using wxPython 3 for the GUI.

Due to the many other responsibilities and pulls on our time, Eric and I have only been able to work sporadically. But as of this week we are down to one main baffling and annoying problem left to solve. Then we can do some clean up and begin making this build available to test. With that in mind, if anyone has experience in creating Mac *.app and *.pkg environments for distribution, please get in touch. You might be able to help us get over the last hurdle.

Cheers
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 Jan 14, 2018, at 1:00 PM, grass-user-request@lists.osgeo.org wrote:

From: Ken Mankoff <mankoff@gmail.com>

Subject: Re: [GRASS-user] Grass on MacOS

Date: January 14, 2018 at 7:46:27 AM MST

To: Adam Dershowitz <adershowitz@exponent.com>

Cc: Carlos Grohmann <carlos.grohmann@gmail.com>, “grass-user@lists.osgeo.org” <grass-user@lists.osgeo.org>

Hi Adam,

I’m glad to hear you got GRASS working on OS X w/ MacPorts. That is the system I use too. I recently switched from HomeBrew. I got GRASS working with fink too, but prefer MacPorts, although there are some MacPort-specific issues if you want to use the temporal framework.

I found it helpful to set GRASS_PYTHON and have it pointing to

export GRASS_PYTHON=/opt/local/bin/python2.7

I don’t like installing 3rd-party frameworks, so I also have QGIS installed via MacPorts and it works well.

For GRASS, I had to “sudo port install gdal +netcdf” in order to be able to read in NetCDF files. For QGIS I did “sudo port install QGIS +qt4 +grass”.

-k.

On 2018-01-14 at 00:37, Adam Dershowitz <adershowitz@exponent.com> wrote:

Thanks, but…I use Macports for a bunch of things, and homebrew and
maports don’t play well together. So, I can’t easily do that. I did
get the macports version to work after I asked the question. It was
actually just due to the fact that I have been using the Kyngchoas
version for a long time, and that used to require that GRASS_PYTHON be
set in .bash_profile. But, I had set it to point to an old directory a
while back, and that folder didn’t exist. So, I just had to delete
that environmental variable and the macports version now works fine.
And, the Kyngchaos version of qgis does seem to work fine.

Thanks for the suggestion. I suppose that it would be useful to have
working binaries to avoid these kinds of issues.

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on my new laptop in less than 10 minutes including download. On first double click it refused to open that it is not verfied but it allowed me to open it by clicking on it and selecting Open in the menu ( I remebered that trick from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but nviz and map swipe runs, g.gui.animation has a problem. Anyway it is fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an app, and created a dmg. It runs with a double click. This is great!! Tonight, I will test on my laptop at home with SIP turned on. Fingers crossed.

Cheers
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 Jan 15, 2018, at 10:22 PM, Eric Hutton <hutton.eric@gmail.com> wrote:

Hi Michael

That’s great!

I included those two extra shell scripts as they were used with a previous version of grass. They are called in the Grass.sh script. I don’t really know what they do, maybe they are no longer necessary.

To be honest, I’m not sure how I got the size down so much. After installing grass into the app, I ran “conda clean --all” and manually removed everything under the Contents/Resources/pkgs folder - but that’s what I had always been doing (I think, anyway).

I’ve added the updated scripts to the GitHub repo. I think that now has everything I was working with created the app that’s now working for you.

Eric

On Mon, Jan 15, 2018 at 9:35 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Eric,

I wrote you on this but apparently it never was sent.

I tested your new app and it works like a charm. Opens with a double click and no problems. There are a couple extra shell scripts in …/Contents/MacOS/ that don’t seem to be called by anything. Or am I just not seeing it? I will try inserting the new start up scripts into my own build tomorrow and see if it works the same.

How did you get the size down so much? I got it close last week by removing the pkg folder, env folder, doc folder, and then some selective items in bin. But I’m hoping your have a more systematic list of what can be removed.

This looks like exactly what is needed. Hopefully I can package it as you did and get it posted to test by the end of the week.

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 Jan 14, 2018, at 3:23 PM, Eric Hutton <hutton.eric@gmail.com> wrote:

Hi Michael

Thanks for your earlier clarification about how grass runs (I was missing a key point!). I think I have a solution now. Basically, the Grass72.app/Contents/MacOS/Grass script now opens up a terminal and, within that terminal, executes the startup script (the one we were using before, which is now Grass.sh).

You can see what I mean here:

https://github.com/mcflugen/grass-conda-build/tree/master/osx/Grass72.app/Contents/MacOS

I’ll start to make a new app but the one I have seems to be working now (I’ve been using the NC data you sent me).

Eric

On Sun, Jan 14, 2018 at 1:31 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Ken & Co.

You might find this of interest.

I’ve been working off and on for the past several month to find a new way to compile and distribute GRASS for Mac with all dependencies created outside the Mac system folders and bundled with it. The goal is to eliminate the SIP problem and the potential for conflicts with different versions of dependencies/frameworks/python/wxpython.

With a lot of help from colleague Eric Hutton (Community Surface Dynamics Modeling System), we are very close to having a reproducible and distributable build of GRASS under Anaconda. Our goal is to compile GRASS in an Anaconda environment so that it is distributable in two related ways: as a standard Mac package and app, and as an Anaconda package (installed via the command ‘conda install [grass version]’). This will be a fully 64 bit GRASS version using wxPython 3 for the GUI.

Due to the many other responsibilities and pulls on our time, Eric and I have only been able to work sporadically. But as of this week we are down to one main baffling and annoying problem left to solve. Then we can do some clean up and begin making this build available to test. With that in mind, if anyone has experience in creating Mac *.app and *.pkg environments for distribution, please get in touch. You might be able to help us get over the last hurdle.

Cheers
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 Jan 14, 2018, at 1:00 PM, grass-user-request@lists.osgeo.org wrote:

From: Ken Mankoff <mankoff@gmail.com>

Subject: Re: [GRASS-user] Grass on MacOS

Date: January 14, 2018 at 7:46:27 AM MST

To: Adam Dershowitz <adershowitz@exponent.com>

Cc: Carlos Grohmann <carlos.grohmann@gmail.com>, “grass-user@lists.osgeo.org” <grass-user@lists.osgeo.org>

Hi Adam,

I’m glad to hear you got GRASS working on OS X w/ MacPorts. That is the system I use too. I recently switched from HomeBrew. I got GRASS working with fink too, but prefer MacPorts, although there are some MacPort-specific issues if you want to use the temporal framework.

I found it helpful to set GRASS_PYTHON and have it pointing to

export GRASS_PYTHON=/opt/local/bin/python2.7

I don’t like installing 3rd-party frameworks, so I also have QGIS installed via MacPorts and it works well.

For GRASS, I had to “sudo port install gdal +netcdf” in order to be able to read in NetCDF files. For QGIS I did “sudo port install QGIS +qt4 +grass”.

-k.

On 2018-01-14 at 00:37, Adam Dershowitz <adershowitz@exponent.com> wrote:

Thanks, but…I use Macports for a bunch of things, and homebrew and
maports don’t play well together. So, I can’t easily do that. I did
get the macports version to work after I asked the question. It was
actually just due to the fact that I have been using the Kyngchoas
version for a long time, and that used to require that GRASS_PYTHON be
set in .bash_profile. But, I had set it to point to an old directory a
while back, and that folder didn’t exist. So, I just had to delete
that environmental variable and the macports version now works fine.
And, the Kyngchaos version of qgis does seem to work fine.

Thanks for the suggestion. I suppose that it would be useful to have
working binaries to avoid these kinds of issues.


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

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the 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.”

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an NSF facility and scientific network for modeling in the earth sciences. It was Eric’s idea to try this through Anaconda. He provided guidance and I worked though a lot of testing it as an Anaconda build last summer, but was unable to get it to a point where GRASS could reliably be compiled and then distributed. Over the last couple months, Eric has worked out how to solve those problems, including making a launchable app and packaging it all in a dmg. There is a bit of fine tuning left to do in the workflow, but it is essentially distributable now–making it the first time I’ve been able to create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also making GRASS available as an Anaconda package. He has created an Anaconda ‘recipe’ to do this. After getting the app/dmg distributed, I will follow his lead to test how this works as an alternative for those who use Anaconda for Python.

This new build has a couple of characteristics quite different from previous Mac versions. Most importantly, all needed dependencies are bundled inside the app. This makes for a bigger app, but hopefully eliminates any conflicts among dependency versions. No more separately installed “frameworks”. No more conflicts if you (or a program) install another version of Python or wxPython somewhere. And hopefully, no more issues with Apple’s ‘system integrity protection’ (SIP).

This test version does not include gettext for internationalization or libLAS. I wanted to test it as we’ve been developing the workflow, without adding anything else until I can confirm that it works. However, I think it will be easy to include gettext because there already is an Anaconda version available. LiDAR support may be trickier. I have previously compiled libLAS. I think it may be possible to work out how to link and bundle it in this Anaconda version. That said, there seems to be work in the dev team for substituting PDAL as a LiDAR support library, and Anaconda already supports PDAL. So if we can substitute PDAL functionality for libLAS functionality, we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual architecture 32/64 bit. This solves a number of compiling and running issues, and means that the GUI now must run in wxPython 3 and above (still Python 2.7). There are several GUI bugs that show up in switching from wxPython 2.8 to 3+. I’ve created tickets on the 3 I know of. The most annoying 2 of these should be pretty easy to solve for the people who are actively managing the GUI (the menu button bar does not properly revert back to 2D buttons after displaying 3D, and a custom pull-down list control does not recognize mouse clicks). I don’t know if the 3rd one is easy or difficult to solve (the interactive supervised classification module crashes GRASS).

Please feel free to distribute and get back in touch with me and Eric if you run into any issues.

Cheers
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 Jan 16, 2018, at 6:53 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on my new laptop in less than 10 minutes including download. On first double click it refused to open that it is not verfied but it allowed me to open it by clicking on it and selecting Open in the menu ( I remebered that trick from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but nviz and map swipe runs, g.gui.animation has a problem. Anyway it is fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an app, and created a dmg. It runs with a double click. This is great!! Tonight, I will test on my laptop at home with SIP turned on. Fingers crossed.

Cheers
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 Jan 15, 2018, at 10:22 PM, Eric Hutton <hutton.eric@gmail.com> wrote:

Hi Michael

That’s great!

I included those two extra shell scripts as they were used with a previous version of grass. They are called in the Grass.sh script. I don’t really know what they do, maybe they are no longer necessary.

To be honest, I’m not sure how I got the size down so much. After installing grass into the app, I ran “conda clean --all” and manually removed everything under the Contents/Resources/pkgs folder - but that’s what I had always been doing (I think, anyway).

I’ve added the updated scripts to the GitHub repo. I think that now has everything I was working with created the app that’s now working for you.

Eric

On Mon, Jan 15, 2018 at 9:35 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Eric,

I wrote you on this but apparently it never was sent.

I tested your new app and it works like a charm. Opens with a double click and no problems. There are a couple extra shell scripts in …/Contents/MacOS/ that don’t seem to be called by anything. Or am I just not seeing it? I will try inserting the new start up scripts into my own build tomorrow and see if it works the same.

How did you get the size down so much? I got it close last week by removing the pkg folder, env folder, doc folder, and then some selective items in bin. But I’m hoping your have a more systematic list of what can be removed.

This looks like exactly what is needed. Hopefully I can package it as you did and get it posted to test by the end of the week.

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 Jan 14, 2018, at 3:23 PM, Eric Hutton <hutton.eric@gmail.com> wrote:

Hi Michael

Thanks for your earlier clarification about how grass runs (I was missing a key point!). I think I have a solution now. Basically, the Grass72.app/Contents/MacOS/Grass script now opens up a terminal and, within that terminal, executes the startup script (the one we were using before, which is now Grass.sh).

You can see what I mean here:

https://github.com/mcflugen/grass-conda-build/tree/master/osx/Grass72.app/Contents/MacOS

I’ll start to make a new app but the one I have seems to be working now (I’ve been using the NC data you sent me).

Eric

On Sun, Jan 14, 2018 at 1:31 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Ken & Co.

You might find this of interest.

I’ve been working off and on for the past several month to find a new way to compile and distribute GRASS for Mac with all dependencies created outside the Mac system folders and bundled with it. The goal is to eliminate the SIP problem and the potential for conflicts with different versions of dependencies/frameworks/python/wxpython.

With a lot of help from colleague Eric Hutton (Community Surface Dynamics Modeling System), we are very close to having a reproducible and distributable build of GRASS under Anaconda. Our goal is to compile GRASS in an Anaconda environment so that it is distributable in two related ways: as a standard Mac package and app, and as an Anaconda package (installed via the command ‘conda install [grass version]’). This will be a fully 64 bit GRASS version using wxPython 3 for the GUI.

Due to the many other responsibilities and pulls on our time, Eric and I have only been able to work sporadically. But as of this week we are down to one main baffling and annoying problem left to solve. Then we can do some clean up and begin making this build available to test. With that in mind, if anyone has experience in creating Mac *.app and *.pkg environments for distribution, please get in touch. You might be able to help us get over the last hurdle.

Cheers
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 Jan 14, 2018, at 1:00 PM, grass-user-request@lists.osgeo.org wrote:

From: Ken Mankoff <mankoff@gmail.com>

Subject: Re: [GRASS-user] Grass on MacOS

Date: January 14, 2018 at 7:46:27 AM MST

To: Adam Dershowitz <adershowitz@exponent.com>

Cc: Carlos Grohmann <carlos.grohmann@gmail.com>, “grass-user@lists.osgeo.org” <grass-user@lists.osgeo.org>

Hi Adam,

I’m glad to hear you got GRASS working on OS X w/ MacPorts. That is the system I use too. I recently switched from HomeBrew. I got GRASS working with fink too, but prefer MacPorts, although there are some MacPort-specific issues if you want to use the temporal framework.

I found it helpful to set GRASS_PYTHON and have it pointing to

export GRASS_PYTHON=/opt/local/bin/python2.7

I don’t like installing 3rd-party frameworks, so I also have QGIS installed via MacPorts and it works well.

For GRASS, I had to “sudo port install gdal +netcdf” in order to be able to read in NetCDF files. For QGIS I did “sudo port install QGIS +qt4 +grass”.

-k.

On 2018-01-14 at 00:37, Adam Dershowitz <adershowitz@exponent.com> wrote:

Thanks, but…I use Macports for a bunch of things, and homebrew and
maports don’t play well together. So, I can’t easily do that. I did
get the macports version to work after I asked the question. It was
actually just due to the fact that I have been using the Kyngchoas
version for a long time, and that used to require that GRASS_PYTHON be
set in .bash_profile. But, I had set it to point to an old directory a
while back, and that folder didn’t exist. So, I just had to delete
that environmental variable and the macports version now works fine.
And, the Kyngchaos version of qgis does seem to work fine.

Thanks for the suggestion. I suppose that it would be useful to have
working binaries to avoid these kinds of issues.


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

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the 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.”

Hi Michael and Eric,

that's great indeed! What are the plans to document the entire
process? Probably creating a GRASS wiki page?

I would like to eventually switch to wxPython Phoenix, because I don't
want to invest energy into fixing issues for wxpython 3 in case some
of these things already work in Phoenix. The current state of wxGUI
and Phoenix is that it roughly 90% of GUI works on Linux, if I
remember correctly on Mac too, but I didn't have that much time to
test it.

Thank you,
Anna

On Tue, Jan 16, 2018 at 11:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to
Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an
NSF facility and scientific network for modeling in the earth sciences. It
was Eric's idea to try this through Anaconda. He provided guidance and I
worked though a lot of testing it as an Anaconda build last summer, but was
unable to get it to a point where GRASS could reliably be compiled and then
distributed. Over the last couple months, Eric has worked out how to solve
those problems, including making a launchable app and packaging it all in a
dmg. There is a bit of fine tuning left to do in the workflow, but it is
essentially distributable now--making it the first time I've been able to
create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also
making GRASS available as an Anaconda package. He has created an Anaconda
'recipe' to do this. After getting the app/dmg distributed, I will follow
his lead to test how this works as an alternative for those who use Anaconda
for Python.

This new build has a couple of characteristics quite different from previous
Mac versions. Most importantly, all needed dependencies are bundled inside
the app. This makes for a bigger app, but hopefully eliminates any conflicts
among dependency versions. No more separately installed "frameworks". No
more conflicts if you (or a program) install another version of Python or
wxPython somewhere. And hopefully, no more issues with Apple's 'system
integrity protection' (SIP).

This test version does not include gettext for internationalization or
libLAS. I wanted to test it as we've been developing the workflow, without
adding anything else until I can confirm that it works. However, I think it
will be easy to include gettext because there already is an Anaconda version
available. LiDAR support may be trickier. I have previously compiled libLAS.
I think it may be possible to work out how to link and bundle it in this
Anaconda version. That said, there seems to be work in the dev team for
substituting PDAL as a LiDAR support library, and Anaconda already supports
PDAL. So if we can substitute PDAL functionality for libLAS functionality,
we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual
architecture 32/64 bit. This solves a number of compiling and running
issues, and means that the GUI now must run in wxPython 3 and above (still
Python 2.7). There are several GUI bugs that show up in switching from
wxPython 2.8 to 3+. I've created tickets on the 3 I know of. The most
annoying 2 of these should be pretty easy to solve for the people who are
actively managing the GUI (the menu button bar does not properly revert back
to 2D buttons after displaying 3D, and a custom pull-down list control does
not recognize mouse clicks). I don't know if the 3rd one is easy or
difficult to solve (the interactive supervised classification module crashes
GRASS).

Please feel free to distribute and get back in touch with me and Eric if you
run into any issues.

Cheers
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 Jan 16, 2018, at 6:53 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on
my new laptop in less than 10 minutes including download. On first double
click it refused to open that it is not verfied but it allowed me to open it
by clicking on it and selecting Open in the menu ( I remebered that trick
from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but
nviz and map swipe runs, g.gui.animation has a problem. Anyway it is
fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an
app, and created a dmg. It runs with a double click. This is great!!
Tonight, I will test on my laptop at home with SIP turned on. Fingers
crossed.

Cheers
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 Jan 15, 2018, at 10:22 PM, Eric Hutton <hutton.eric@gmail.com> wrote:

Hi Michael

That's great!

I included those two extra shell scripts as they were used with a previous
version of grass. They are called in the Grass.sh script. I don't really
know what they do, maybe they are no longer necessary.

To be honest, I'm not sure how I got the size down so much. After installing
grass into the app, I ran "conda clean --all" and manually removed
everything under the Contents/Resources/pkgs folder - but that's what I had
always been doing (I think, anyway).

I've added the updated scripts to the GitHub repo. I think that now has
everything I was working with created the app that's now working for you.

Eric

On Mon, Jan 15, 2018 at 9:35 PM Michael Barton <Michael.Barton@asu.edu>
wrote:

Eric,

I wrote you on this but apparently it never was sent.

I tested your new app and it works like a charm. Opens with a double click
and no problems. There are a couple extra shell scripts in
../Contents/MacOS/ that don't seem to be called by anything. Or am I just
not seeing it? I will try inserting the new start up scripts into my own
build tomorrow and see if it works the same.

How did you get the size down so much? I got it close last week by
removing the pkg folder, env folder, doc folder, and then some selective
items in bin. But I'm hoping your have a more systematic list of what can be
removed.

This looks like exactly what is needed. Hopefully I can package it as you
did and get it posted to test by the end of the week.

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 Jan 14, 2018, at 3:23 PM, Eric Hutton <hutton.eric@gmail.com> wrote:

Hi Michael

Thanks for your earlier clarification about how grass runs (I was missing
a key point!). I think I have a solution now. Basically, the
Grass72.app/Contents/MacOS/Grass script now opens up a terminal and, within
that terminal, executes the startup script (the one we were using before,
which is now Grass.sh).

You can see what I mean here:

https://github.com/mcflugen/grass-conda-build/tree/master/osx/Grass72.app/Contents/MacOS

I'll start to make a new app but the one I have seems to be working now
(I've been using the NC data you sent me).

Eric

On Sun, Jan 14, 2018 at 1:31 PM Michael Barton <Michael.Barton@asu.edu>
wrote:

Ken & Co.

You might find this of interest.

I've been working off and on for the past several month to find a new way
to compile and distribute GRASS for Mac with all dependencies created
outside the Mac system folders and bundled with it. The goal is to eliminate
the SIP problem and the potential for conflicts with different versions of
dependencies/frameworks/python/wxpython.

With a lot of help from colleague Eric Hutton (Community Surface Dynamics
Modeling System), we are very close to having a reproducible and
distributable build of GRASS under Anaconda. Our goal is to compile GRASS in
an Anaconda environment so that it is distributable in two related ways: as
a standard Mac package and app, and as an Anaconda package (installed via
the command 'conda install [grass version]'). This will be a fully 64 bit
GRASS version using wxPython 3 for the GUI.

Due to the many other responsibilities and pulls on our time, Eric and I
have only been able to work sporadically. But as of this week we are down to
one main baffling and annoying problem left to solve. Then we can do some
clean up and begin making this build available to test. With that in mind,
if anyone has experience in creating Mac *.app and *.pkg environments for
distribution, please get in touch. You might be able to help us get over the
last hurdle.

Cheers
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 Jan 14, 2018, at 1:00 PM, grass-user-request@lists.osgeo.org wrote:

From: Ken Mankoff <mankoff@gmail.com>
Subject: Re: [GRASS-user] Grass on MacOS
Date: January 14, 2018 at 7:46:27 AM MST
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: Carlos Grohmann <carlos.grohmann@gmail.com>,
"grass-user\@lists.osgeo.org" <grass-user@lists.osgeo.org>

Hi Adam,

I'm glad to hear you got GRASS working on OS X w/ MacPorts. That is the
system I use too. I recently switched from HomeBrew. I got GRASS working
with fink too, but prefer MacPorts, although there are some MacPort-specific
issues if you want to use the temporal framework.

I found it helpful to set GRASS_PYTHON and have it pointing to

export GRASS_PYTHON=/opt/local/bin/python2.7

I don't like installing 3rd-party frameworks, so I also have QGIS
installed via MacPorts and it works well.

For GRASS, I had to "sudo port install gdal +netcdf" in order to be able
to read in NetCDF files. For QGIS I did "sudo port install QGIS +qt4
+grass".

-k.

On 2018-01-14 at 00:37, Adam Dershowitz <adershowitz@exponent.com> wrote:

Thanks, but…I use Macports for a bunch of things, and homebrew and
maports don’t play well together. So, I can’t easily do that. I did
get the macports version to work after I asked the question. It was
actually just due to the fact that I have been using the Kyngchoas
version for a long time, and that used to require that GRASS_PYTHON be
set in .bash_profile. But, I had set it to point to an old directory a
while back, and that folder didn’t exist. So, I just had to delete
that environmental variable and the macports version now works fine.
And, the Kyngchaos version of qgis does seem to work fine.

Thanks for the suggestion. I suppose that it would be useful to have
working binaries to avoid these kinds of issues.

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

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the 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-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Eric has already documented it pretty well. I’m making a set of notes organized a bit differently that will help me move through the workflow rapidly. Once we get it nailed down, we can put it on the WIKI and/or link to Eric’s site.

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 Jan 17, 2018, at 3:14 AM, Anna Petrášová <kratochanna@gmail.com> wrote:

Hi Michael and Eric,

that’s great indeed! What are the plans to document the entire
process? Probably creating a GRASS wiki page?

I would like to eventually switch to wxPython Phoenix, because I don’t
want to invest energy into fixing issues for wxpython 3 in case some
of these things already work in Phoenix. The current state of wxGUI
and Phoenix is that it roughly 90% of GUI works on Linux, if I
remember correctly on Mac too, but I didn’t have that much time to
test it.

Thank you,
Anna

On Tue, Jan 16, 2018 at 11:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to
Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an
NSF facility and scientific network for modeling in the earth sciences. It
was Eric’s idea to try this through Anaconda. He provided guidance and I
worked though a lot of testing it as an Anaconda build last summer, but was
unable to get it to a point where GRASS could reliably be compiled and then
distributed. Over the last couple months, Eric has worked out how to solve
those problems, including making a launchable app and packaging it all in a
dmg. There is a bit of fine tuning left to do in the workflow, but it is
essentially distributable now–making it the first time I’ve been able to
create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also
making GRASS available as an Anaconda package. He has created an Anaconda
‘recipe’ to do this. After getting the app/dmg distributed, I will follow
his lead to test how this works as an alternative for those who use Anaconda
for Python.

This new build has a couple of characteristics quite different from previous
Mac versions. Most importantly, all needed dependencies are bundled inside
the app. This makes for a bigger app, but hopefully eliminates any conflicts
among dependency versions. No more separately installed “frameworks”. No
more conflicts if you (or a program) install another version of Python or
wxPython somewhere. And hopefully, no more issues with Apple’s ‘system
integrity protection’ (SIP).

This test version does not include gettext for internationalization or
libLAS. I wanted to test it as we’ve been developing the workflow, without
adding anything else until I can confirm that it works. However, I think it
will be easy to include gettext because there already is an Anaconda version
available. LiDAR support may be trickier. I have previously compiled libLAS.
I think it may be possible to work out how to link and bundle it in this
Anaconda version. That said, there seems to be work in the dev team for
substituting PDAL as a LiDAR support library, and Anaconda already supports
PDAL. So if we can substitute PDAL functionality for libLAS functionality,
we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual
architecture 32/64 bit. This solves a number of compiling and running
issues, and means that the GUI now must run in wxPython 3 and above (still
Python 2.7). There are several GUI bugs that show up in switching from
wxPython 2.8 to 3+. I’ve created tickets on the 3 I know of. The most
annoying 2 of these should be pretty easy to solve for the people who are
actively managing the GUI (the menu button bar does not properly revert back
to 2D buttons after displaying 3D, and a custom pull-down list control does
not recognize mouse clicks). I don’t know if the 3rd one is easy or
difficult to solve (the interactive supervised classification module crashes
GRASS).

Please feel free to distribute and get back in touch with me and Eric if you
run into any issues.

Cheers
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=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=7aE7xW3GGw_2VoQncxTzK8k44D-5jjpMPESNe0qkyAQ&e=, https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=88KAjNWJyflzwDgKb0vlpORWaPKZfyifl42YveYAaxc&e=

On Jan 16, 2018, at 6:53 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on
my new laptop in less than 10 minutes including download. On first double
click it refused to open that it is not verfied but it allowed me to open it
by clicking on it and selecting Open in the menu ( I remebered that trick
from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but
nviz and map swipe runs, g.gui.animation has a problem. Anyway it is
fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an
app, and created a dmg. It runs with a double click. This is great!!
Tonight, I will test on my laptop at home with SIP turned on. Fingers
crossed.

Cheers
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=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=7aE7xW3GGw_2VoQncxTzK8k44D-5jjpMPESNe0qkyAQ&e=, https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=88KAjNWJyflzwDgKb0vlpORWaPKZfyifl42YveYAaxc&e=

On Jan 15, 2018, at 10:22 PM, Eric Hutton <hutton.eric@gmail.com> wrote:

Hi Michael

That’s great!

I included those two extra shell scripts as they were used with a previous
version of grass. They are called in the Grass.sh script. I don’t really
know what they do, maybe they are no longer necessary.

To be honest, I’m not sure how I got the size down so much. After installing
grass into the app, I ran “conda clean --all” and manually removed
everything under the Contents/Resources/pkgs folder - but that’s what I had
always been doing (I think, anyway).

I’ve added the updated scripts to the GitHub repo. I think that now has
everything I was working with created the app that’s now working for you.

Eric

On Mon, Jan 15, 2018 at 9:35 PM Michael Barton <Michael.Barton@asu.edu>
wrote:

Eric,

I wrote you on this but apparently it never was sent.

I tested your new app and it works like a charm. Opens with a double click
and no problems. There are a couple extra shell scripts in
…/Contents/MacOS/ that don’t seem to be called by anything. Or am I just
not seeing it? I will try inserting the new start up scripts into my own
build tomorrow and see if it works the same.

How did you get the size down so much? I got it close last week by
removing the pkg folder, env folder, doc folder, and then some selective
items in bin. But I’m hoping your have a more systematic list of what can be
removed.

This looks like exactly what is needed. Hopefully I can package it as you
did and get it posted to test by the end of the week.

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=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=7aE7xW3GGw_2VoQncxTzK8k44D-5jjpMPESNe0qkyAQ&e=, https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=88KAjNWJyflzwDgKb0vlpORWaPKZfyifl42YveYAaxc&e=

On Jan 14, 2018, at 3:23 PM, Eric Hutton <hutton.eric@gmail.com> wrote:

Hi Michael

Thanks for your earlier clarification about how grass runs (I was missing
a key point!). I think I have a solution now. Basically, the
Grass72.app/Contents/MacOS/Grass script now opens up a terminal and, within
that terminal, executes the startup script (the one we were using before,
which is now Grass.sh).

You can see what I mean here:

https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_mcflugen_grass-2Dconda-2Dbuild_tree_master_osx_Grass72.app_Contents_MacOS&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=ETB3zkgjDqoUEF_paMWGf_4IF4OM9TGdwE5PWur310c&e=

I’ll start to make a new app but the one I have seems to be working now
(I’ve been using the NC data you sent me).

Eric

On Sun, Jan 14, 2018 at 1:31 PM Michael Barton <Michael.Barton@asu.edu>
wrote:

Ken & Co.

You might find this of interest.

I’ve been working off and on for the past several month to find a new way
to compile and distribute GRASS for Mac with all dependencies created
outside the Mac system folders and bundled with it. The goal is to eliminate
the SIP problem and the potential for conflicts with different versions of
dependencies/frameworks/python/wxpython.

With a lot of help from colleague Eric Hutton (Community Surface Dynamics
Modeling System), we are very close to having a reproducible and
distributable build of GRASS under Anaconda. Our goal is to compile GRASS in
an Anaconda environment so that it is distributable in two related ways: as
a standard Mac package and app, and as an Anaconda package (installed via
the command ‘conda install [grass version]’). This will be a fully 64 bit
GRASS version using wxPython 3 for the GUI.

Due to the many other responsibilities and pulls on our time, Eric and I
have only been able to work sporadically. But as of this week we are down to
one main baffling and annoying problem left to solve. Then we can do some
clean up and begin making this build available to test. With that in mind,
if anyone has experience in creating Mac *.app and *.pkg environments for
distribution, please get in touch. You might be able to help us get over the
last hurdle.

Cheers
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=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=7aE7xW3GGw_2VoQncxTzK8k44D-5jjpMPESNe0qkyAQ&e=, https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=88KAjNWJyflzwDgKb0vlpORWaPKZfyifl42YveYAaxc&e=

On Jan 14, 2018, at 1:00 PM, grass-user-request@lists.osgeo.org wrote:

From: Ken Mankoff <mankoff@gmail.com>
Subject: Re: [GRASS-user] Grass on MacOS
Date: January 14, 2018 at 7:46:27 AM MST
To: Adam Dershowitz <adershowitz@exponent.com>
Cc: Carlos Grohmann <carlos.grohmann@gmail.com>,
“grass-user@lists.osgeo.org” <grass-user@lists.osgeo.org>

Hi Adam,

I’m glad to hear you got GRASS working on OS X w/ MacPorts. That is the
system I use too. I recently switched from HomeBrew. I got GRASS working
with fink too, but prefer MacPorts, although there are some MacPort-specific
issues if you want to use the temporal framework.

I found it helpful to set GRASS_PYTHON and have it pointing to

export GRASS_PYTHON=/opt/local/bin/python2.7

I don’t like installing 3rd-party frameworks, so I also have QGIS
installed via MacPorts and it works well.

For GRASS, I had to “sudo port install gdal +netcdf” in order to be able
to read in NetCDF files. For QGIS I did “sudo port install QGIS +qt4
+grass”.

-k.

On 2018-01-14 at 00:37, Adam Dershowitz <adershowitz@exponent.com> wrote:

Thanks, but…I use Macports for a bunch of things, and homebrew and
maports don’t play well together. So, I can’t easily do that. I did
get the macports version to work after I asked the question. It was
actually just due to the fact that I have been using the Kyngchoas
version for a long time, and that used to require that GRASS_PYTHON be
set in .bash_profile. But, I had set it to point to an old directory a
while back, and that folder didn’t exist. So, I just had to delete
that environmental variable and the macports version now works fine.
And, the Kyngchaos version of qgis does seem to work fine.

Thanks for the suggestion. I suppose that it would be useful to have
working binaries to avoid these kinds of issues.


grass-dev mailing list
grass-dev@lists.osgeo.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_grass-2Ddev&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=-qsmzPEzOjJ9t0xno1Iz3ajDC8joar4HhiwgLtTHNQo&e=

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the Center for Geospatial Analytics
North Carolina State University
Raleigh, NC 27695-8208
hmitaso@ncsu.edu
https://urldefense.proofpoint.com/v2/url?u=http-3A__geospatial.ncsu.edu_osgeorel_publications.html&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=QtZz3tw2d_bzIzOsdcow3WkSiLqS031DTziW69mJmM8&e=

"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-user mailing list
grass-user@lists.osgeo.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_grass-2Duser&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=GZjCpCWzLBZmIGSyvUUpxDONqB10L7wNO9KL3gQ-JAg&e=

I understand the desire not to waste effort. However, it seems that it will still be some time before Phoenix is completely stable and we have code that works with it. Issues 1 and 2 seem to be easily fixable things in the current code. Are any other platforms using wxPython 3.0.2 yet? If so, do they have the same issues?

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 Jan 17, 2018, at 3:14 AM, Anna Petrášová <kratochanna@gmail.com> wrote:

Hi Michael and Eric,

that’s great indeed! What are the plans to document the entire
process? Probably creating a GRASS wiki page?

I would like to eventually switch to wxPython Phoenix, because I don’t
want to invest energy into fixing issues for wxpython 3 in case some
of these things already work in Phoenix. The current state of wxGUI
and Phoenix is that it roughly 90% of GUI works on Linux, if I
remember correctly on Mac too, but I didn’t have that much time to
test it.

Thank you,
Anna

On Tue, Jan 16, 2018 at 11:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to
Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an
NSF facility and scientific network for modeling in the earth sciences. It
was Eric’s idea to try this through Anaconda. He provided guidance and I
worked though a lot of testing it as an Anaconda build last summer, but was
unable to get it to a point where GRASS could reliably be compiled and then
distributed. Over the last couple months, Eric has worked out how to solve
those problems, including making a launchable app and packaging it all in a
dmg. There is a bit of fine tuning left to do in the workflow, but it is
essentially distributable now–making it the first time I’ve been able to
create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also
making GRASS available as an Anaconda package. He has created an Anaconda
‘recipe’ to do this. After getting the app/dmg distributed, I will follow
his lead to test how this works as an alternative for those who use Anaconda
for Python.

This new build has a couple of characteristics quite different from previous
Mac versions. Most importantly, all needed dependencies are bundled inside
the app. This makes for a bigger app, but hopefully eliminates any conflicts
among dependency versions. No more separately installed “frameworks”. No
more conflicts if you (or a program) install another version of Python or
wxPython somewhere. And hopefully, no more issues with Apple’s ‘system
integrity protection’ (SIP).

This test version does not include gettext for internationalization or
libLAS. I wanted to test it as we’ve been developing the workflow, without
adding anything else until I can confirm that it works. However, I think it
will be easy to include gettext because there already is an Anaconda version
available. LiDAR support may be trickier. I have previously compiled libLAS.
I think it may be possible to work out how to link and bundle it in this
Anaconda version. That said, there seems to be work in the dev team for
substituting PDAL as a LiDAR support library, and Anaconda already supports
PDAL. So if we can substitute PDAL functionality for libLAS functionality,
we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual
architecture 32/64 bit. This solves a number of compiling and running
issues, and means that the GUI now must run in wxPython 3 and above (still
Python 2.7). There are several GUI bugs that show up in switching from
wxPython 2.8 to 3+. I’ve created tickets on the 3 I know of. The most
annoying 2 of these should be pretty easy to solve for the people who are
actively managing the GUI (the menu button bar does not properly revert back
to 2D buttons after displaying 3D, and a custom pull-down list control does
not recognize mouse clicks). I don’t know if the 3rd one is easy or
difficult to solve (the interactive supervised classification module crashes
GRASS).

Please feel free to distribute and get back in touch with me and Eric if you
run into any issues.

Cheers
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=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=7aE7xW3GGw_2VoQncxTzK8k44D-5jjpMPESNe0qkyAQ&e=, https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwIFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=soaI1YnedAZn-bBIj8hBdwwQbPT6gkE2Ghh35K5Wcno&s=88KAjNWJyflzwDgKb0vlpORWaPKZfyifl42YveYAaxc&e=

I’ve just posted a new GRASS 7.2.2 dmg to the GRASS for Mac web site (http://grassmac.wikidot.com). This one is compiled with gettext for internationalization. Please test.

I have not been able to get 7.4 to compile 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 Jan 16, 2018, at 9:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an NSF facility and scientific network for modeling in the earth sciences. It was Eric’s idea to try this through Anaconda. He provided guidance and I worked though a lot of testing it as an Anaconda build last summer, but was unable to get it to a point where GRASS could reliably be compiled and then distributed. Over the last couple months, Eric has worked out how to solve those problems, including making a launchable app and packaging it all in a dmg. There is a bit of fine tuning left to do in the workflow, but it is essentially distributable now–making it the first time I’ve been able to create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also making GRASS available as an Anaconda package. He has created an Anaconda ‘recipe’ to do this. After getting the app/dmg distributed, I will follow his lead to test how this works as an alternative for those who use Anaconda for Python.

This new build has a couple of characteristics quite different from previous Mac versions. Most importantly, all needed dependencies are bundled inside the app. This makes for a bigger app, but hopefully eliminates any conflicts among dependency versions. No more separately installed “frameworks”. No more conflicts if you (or a program) install another version of Python or wxPython somewhere. And hopefully, no more issues with Apple’s ‘system integrity protection’ (SIP).

This test version does not include gettext for internationalization or libLAS. I wanted to test it as we’ve been developing the workflow, without adding anything else until I can confirm that it works. However, I think it will be easy to include gettext because there already is an Anaconda version available. LiDAR support may be trickier. I have previously compiled libLAS. I think it may be possible to work out how to link and bundle it in this Anaconda version. That said, there seems to be work in the dev team for substituting PDAL as a LiDAR support library, and Anaconda already supports PDAL. So if we can substitute PDAL functionality for libLAS functionality, we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual architecture 32/64 bit. This solves a number of compiling and running issues, and means that the GUI now must run in wxPython 3 and above (still Python 2.7). There are several GUI bugs that show up in switching from wxPython 2.8 to 3+. I’ve created tickets on the 3 I know of. The most annoying 2 of these should be pretty easy to solve for the people who are actively managing the GUI (the menu button bar does not properly revert back to 2D buttons after displaying 3D, and a custom pull-down list control does not recognize mouse clicks). I don’t know if the 3rd one is easy or difficult to solve (the interactive supervised classification module crashes GRASS).

Please feel free to distribute and get back in touch with me and Eric if you run into any issues.

Cheers
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 Jan 16, 2018, at 6:53 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on my new laptop in less than 10 minutes including download. On first double click it refused to open that it is not verfied but it allowed me to open it by clicking on it and selecting Open in the menu ( I remebered that trick from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but nviz and map swipe runs, g.gui.animation has a problem. Anyway it is fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an app, and created a dmg. It runs with a double click. This is great!! Tonight, I will test on my laptop at home with SIP turned on. Fingers crossed.

Cheers
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

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the 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.”

On Wed, Jan 17, 2018 at 11:14 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I've just posted a new GRASS 7.2.2 dmg to the GRASS for Mac web site
(http://grassmac.wikidot.com). This one is compiled with gettext for
internationalization. Please test.

Great!

I have not been able to get 7.4 to compile yet.

If there are technical issues, please post them (in case we need to hold
the 7.4.0 release for them).

Markus

Because this is a relatively new way to compile GRASS, I hesitate to claim it is a ‘bug’ in the 7.4 code until others have had a chance to look at the brief error output I sent. I’m not sure what to report is the problem at the moment, as the errors in 7.4 RB and 7.4.0RC2 seem different. I can certainly send more info if needed.

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 Jan 17, 2018, at 3:43 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Wed, Jan 17, 2018 at 11:14 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve just posted a new GRASS 7.2.2 dmg to the GRASS for Mac web site
(https://urldefense.proofpoint.com/v2/url?u=http-3A__grassmac.wikidot.com&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=VPnRSGSH_FsUh3qSzmBFrO1Th57bRda-vDcqWRxoGrI&s=osd3V7AlxWpRa17ifs-_Nx5lDyp19kXPS-0OfzEQyXE&e=). This one is compiled with gettext for
internationalization. Please test.

Great!

I have not been able to get 7.4 to compile yet.

If there are technical issues, please post them (in case we need to hold
the 7.4.0 release for them).

Markus

Fantastic!

After installing it, it kinda froze the first time I opened it, but the second time there was no issues.

NVIZ works!

I tried to run some python scripts and in the first time I got an error message, complaining about matplotlib, but luckily the error message said to use ‘pythonw’ instead of ‘python’ and with that, all the libraries were imported (matplotlib, seaborn etc).

I noticed that there is no command line history in python.

Will keep testing

Carlos

···

On Wed, Jan 17, 2018 at 8:14 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve just posted a new GRASS 7.2.2 dmg to the GRASS for Mac web site (http://grassmac.wikidot.com). This one is compiled with gettext for internationalization. Please test.

I have not been able to get 7.4 to compile 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 Jan 16, 2018, at 9:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an NSF facility and scientific network for modeling in the earth sciences. It was Eric’s idea to try this through Anaconda. He provided guidance and I worked though a lot of testing it as an Anaconda build last summer, but was unable to get it to a point where GRASS could reliably be compiled and then distributed. Over the last couple months, Eric has worked out how to solve those problems, including making a launchable app and packaging it all in a dmg. There is a bit of fine tuning left to do in the workflow, but it is essentially distributable now–making it the first time I’ve been able to create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also making GRASS available as an Anaconda package. He has created an Anaconda ‘recipe’ to do this. After getting the app/dmg distributed, I will follow his lead to test how this works as an alternative for those who use Anaconda for Python.

This new build has a couple of characteristics quite different from previous Mac versions. Most importantly, all needed dependencies are bundled inside the app. This makes for a bigger app, but hopefully eliminates any conflicts among dependency versions. No more separately installed “frameworks”. No more conflicts if you (or a program) install another version of Python or wxPython somewhere. And hopefully, no more issues with Apple’s ‘system integrity protection’ (SIP).

This test version does not include gettext for internationalization or libLAS. I wanted to test it as we’ve been developing the workflow, without adding anything else until I can confirm that it works. However, I think it will be easy to include gettext because there already is an Anaconda version available. LiDAR support may be trickier. I have previously compiled libLAS. I think it may be possible to work out how to link and bundle it in this Anaconda version. That said, there seems to be work in the dev team for substituting PDAL as a LiDAR support library, and Anaconda already supports PDAL. So if we can substitute PDAL functionality for libLAS functionality, we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual architecture 32/64 bit. This solves a number of compiling and running issues, and means that the GUI now must run in wxPython 3 and above (still Python 2.7). There are several GUI bugs that show up in switching from wxPython 2.8 to 3+. I’ve created tickets on the 3 I know of. The most annoying 2 of these should be pretty easy to solve for the people who are actively managing the GUI (the menu button bar does not properly revert back to 2D buttons after displaying 3D, and a custom pull-down list control does not recognize mouse clicks). I don’t know if the 3rd one is easy or difficult to solve (the interactive supervised classification module crashes GRASS).

Please feel free to distribute and get back in touch with me and Eric if you run into any issues.

Cheers
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 Jan 16, 2018, at 6:53 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on my new laptop in less than 10 minutes including download. On first double click it refused to open that it is not verfied but it allowed me to open it by clicking on it and selecting Open in the menu ( I remebered that trick from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but nviz and map swipe runs, g.gui.animation has a problem. Anyway it is fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an app, and created a dmg. It runs with a double click. This is great!! Tonight, I will test on my laptop at home with SIP turned on. Fingers crossed.

Cheers
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

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the 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-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.

Thanks Carlos,

Many recent versions seem to take a long time to initialize the first time opened. And of course this needs to be opened with a Ctrl-click because I have not paid Apple $100/year to be able to sign packages.

I am curious about the error message. Were these some of your custom scripts? Sometimes Mac python things can open with “python”, but other times they need “pythonw”. I’m not sure why the difference.

Is the lack of python history something you’re seeing in the python IDE window or terminal window? Are you in a regular terminal or in the one in the GUI?

Thanks for testing.
Michael

···

On Wed, Jan 17, 2018 at 8:14 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve just posted a new GRASS 7.2.2 dmg to the GRASS for Mac web site (http://grassmac.wikidot.com). This one is compiled with gettext for internationalization. Please test.

I have not been able to get 7.4 to compile 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 Jan 16, 2018, at 9:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an NSF facility and scientific network for modeling in the earth sciences. It was Eric’s idea to try this through Anaconda. He provided guidance and I worked though a lot of testing it as an Anaconda build last summer, but was unable to get it to a point where GRASS could reliably be compiled and then distributed. Over the last couple months, Eric has worked out how to solve those problems, including making a launchable app and packaging it all in a dmg. There is a bit of fine tuning left to do in the workflow, but it is essentially distributable now–making it the first time I’ve been able to create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also making GRASS available as an Anaconda package. He has created an Anaconda ‘recipe’ to do this. After getting the app/dmg distributed, I will follow his lead to test how this works as an alternative for those who use Anaconda for Python.

This new build has a couple of characteristics quite different from previous Mac versions. Most importantly, all needed dependencies are bundled inside the app. This makes for a bigger app, but hopefully eliminates any conflicts among dependency versions. No more separately installed “frameworks”. No more conflicts if you (or a program) install another version of Python or wxPython somewhere. And hopefully, no more issues with Apple’s ‘system integrity protection’ (SIP).

This test version does not include gettext for internationalization or libLAS. I wanted to test it as we’ve been developing the workflow, without adding anything else until I can confirm that it works. However, I think it will be easy to include gettext because there already is an Anaconda version available. LiDAR support may be trickier. I have previously compiled libLAS. I think it may be possible to work out how to link and bundle it in this Anaconda version. That said, there seems to be work in the dev team for substituting PDAL as a LiDAR support library, and Anaconda already supports PDAL. So if we can substitute PDAL functionality for libLAS functionality, we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual architecture 32/64 bit. This solves a number of compiling and running issues, and means that the GUI now must run in wxPython 3 and above (still Python 2.7). There are several GUI bugs that show up in switching from wxPython 2.8 to 3+. I’ve created tickets on the 3 I know of. The most annoying 2 of these should be pretty easy to solve for the people who are actively managing the GUI (the menu button bar does not properly revert back to 2D buttons after displaying 3D, and a custom pull-down list control does not recognize mouse clicks). I don’t know if the 3rd one is easy or difficult to solve (the interactive supervised classification module crashes GRASS).

Please feel free to distribute and get back in touch with me and Eric if you run into any issues.

Cheers
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 Jan 16, 2018, at 6:53 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on my new laptop in less than 10 minutes including download. On first double click it refused to open that it is not verfied but it allowed me to open it by clicking on it and selecting Open in the menu ( I remebered that trick from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but nviz and map swipe runs, g.gui.animation has a problem. Anyway it is fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an app, and created a dmg. It runs with a double click. This is great!! Tonight, I will test on my laptop at home with SIP turned on. Fingers crossed.

Cheers
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

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the 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-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.

Hello Michael

I got the error message when importing seaborn (see below). I’m more used to the regular terminal window, so that’s where I noticed the lack of python history. I just checked on the GUI terminal, and seaborn imports without errors, but there’s no history as well (the arrow key move to the previous line).

Carlos

Launching GUI in the background, please wait…
GRASS 7.2.2 (latlong):~ > python
Python 2.7.14 | packaged by conda-forge | (default, Dec 25 2017, 01:18:54)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

import matplotlib
import seaborn
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python2.7/site-packages/seaborn/init.py”, line 6, in
from .rcmod import *
File “/usr/local/lib/python2.7/site-packages/seaborn/rcmod.py”, line 8, in
from . import palettes, _orig_rc_params
File “/usr/local/lib/python2.7/site-packages/seaborn/palettes.py”, line 12, in
from .utils import desaturate, set_hls_values, get_color_cycle
File “/usr/local/lib/python2.7/site-packages/seaborn/utils.py”, line 12, in
import matplotlib.pyplot as plt
File “/usr/local/lib/python2.7/site-packages/matplotlib/pyplot.py”, line 115, in
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File “/usr/local/lib/python2.7/site-packages/matplotlib/backends/init.py”, line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File “/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py”, line 19, in
from matplotlib.backends import _macosx
RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of ‘python’ with ‘pythonw’. See ‘Working with Matplotlib on OSX’ in the Matplotlib FAQ for more information.

···

On Wed, Jan 17, 2018 at 9:29 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Carlos,

Many recent versions seem to take a long time to initialize the first time opened. And of course this needs to be opened with a Ctrl-click because I have not paid Apple $100/year to be able to sign packages.

I am curious about the error message. Were these some of your custom scripts? Sometimes Mac python things can open with “python”, but other times they need “pythonw”. I’m not sure why the difference.

Is the lack of python history something you’re seeing in the python IDE window or terminal window? Are you in a regular terminal or in the one in the GUI?

Thanks for testing.
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 Jan 17, 2018, at 4:13 PM, Carlos Grohmann <carlos.grohmann@gmail.com> wrote:

Fantastic!

After installing it, it kinda froze the first time I opened it, but the second time there was no issues.

NVIZ works!

I tried to run some python scripts and in the first time I got an error message, complaining about matplotlib, but luckily the error message said to use ‘pythonw’ instead of ‘python’ and with that, all the libraries were imported (matplotlib, seaborn etc).

I noticed that there is no command line history in python.

Will keep testing

Carlos

On Wed, Jan 17, 2018 at 8:14 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve just posted a new GRASS 7.2.2 dmg to the GRASS for Mac web site (http://grassmac.wikidot.com). This one is compiled with gettext for internationalization. Please test.

I have not been able to get 7.4 to compile 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 Jan 16, 2018, at 9:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an NSF facility and scientific network for modeling in the earth sciences. It was Eric’s idea to try this through Anaconda. He provided guidance and I worked though a lot of testing it as an Anaconda build last summer, but was unable to get it to a point where GRASS could reliably be compiled and then distributed. Over the last couple months, Eric has worked out how to solve those problems, including making a launchable app and packaging it all in a dmg. There is a bit of fine tuning left to do in the workflow, but it is essentially distributable now–making it the first time I’ve been able to create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also making GRASS available as an Anaconda package. He has created an Anaconda ‘recipe’ to do this. After getting the app/dmg distributed, I will follow his lead to test how this works as an alternative for those who use Anaconda for Python.

This new build has a couple of characteristics quite different from previous Mac versions. Most importantly, all needed dependencies are bundled inside the app. This makes for a bigger app, but hopefully eliminates any conflicts among dependency versions. No more separately installed “frameworks”. No more conflicts if you (or a program) install another version of Python or wxPython somewhere. And hopefully, no more issues with Apple’s ‘system integrity protection’ (SIP).

This test version does not include gettext for internationalization or libLAS. I wanted to test it as we’ve been developing the workflow, without adding anything else until I can confirm that it works. However, I think it will be easy to include gettext because there already is an Anaconda version available. LiDAR support may be trickier. I have previously compiled libLAS. I think it may be possible to work out how to link and bundle it in this Anaconda version. That said, there seems to be work in the dev team for substituting PDAL as a LiDAR support library, and Anaconda already supports PDAL. So if we can substitute PDAL functionality for libLAS functionality, we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual architecture 32/64 bit. This solves a number of compiling and running issues, and means that the GUI now must run in wxPython 3 and above (still Python 2.7). There are several GUI bugs that show up in switching from wxPython 2.8 to 3+. I’ve created tickets on the 3 I know of. The most annoying 2 of these should be pretty easy to solve for the people who are actively managing the GUI (the menu button bar does not properly revert back to 2D buttons after displaying 3D, and a custom pull-down list control does not recognize mouse clicks). I don’t know if the 3rd one is easy or difficult to solve (the interactive supervised classification module crashes GRASS).

Please feel free to distribute and get back in touch with me and Eric if you run into any issues.

Cheers
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 Jan 16, 2018, at 6:53 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on my new laptop in less than 10 minutes including download. On first double click it refused to open that it is not verfied but it allowed me to open it by clicking on it and selecting Open in the menu ( I remebered that trick from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but nviz and map swipe runs, g.gui.animation has a problem. Anyway it is fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an app, and created a dmg. It runs with a double click. This is great!! Tonight, I will test on my laptop at home with SIP turned on. Fingers crossed.

Cheers
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

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the 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-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.

Carlos,

I believe the problem here is that you are mixing the bundled Python with your system Python. There is no seaborn package installed in the app. We just bundled the Python needed to run GRASS and its modules.

I assume you have installed seaborn into your system Python. But since within the GRASS environment your python path and default system path is pointing to the files inside the app, the seaborn you installed can’t be found. If your path is such that it can look into your system Python after not finding it in the grass app, there is no guarantee that the version of seaborn you have installed is compatible with the version of Python, MatPlotLib, or other packages that are bundled with the GRASS app.

In other words, if you want to do full Python programming with packages that you install, you will need to do it outside the GRASS environment.

Michael

···

On Wed, Jan 17, 2018 at 9:29 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Carlos,

Many recent versions seem to take a long time to initialize the first time opened. And of course this needs to be opened with a Ctrl-click because I have not paid Apple $100/year to be able to sign packages.

I am curious about the error message. Were these some of your custom scripts? Sometimes Mac python things can open with “python”, but other times they need “pythonw”. I’m not sure why the difference.

Is the lack of python history something you’re seeing in the python IDE window or terminal window? Are you in a regular terminal or in the one in the GUI?

Thanks for testing.
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 Jan 17, 2018, at 4:13 PM, Carlos Grohmann <carlos.grohmann@gmail.com> wrote:

Fantastic!

After installing it, it kinda froze the first time I opened it, but the second time there was no issues.

NVIZ works!

I tried to run some python scripts and in the first time I got an error message, complaining about matplotlib, but luckily the error message said to use ‘pythonw’ instead of ‘python’ and with that, all the libraries were imported (matplotlib, seaborn etc).

I noticed that there is no command line history in python.

Will keep testing

Carlos

On Wed, Jan 17, 2018 at 8:14 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve just posted a new GRASS 7.2.2 dmg to the GRASS for Mac web site (http://grassmac.wikidot.com). This one is compiled with gettext for internationalization. Please test.

I have not been able to get 7.4 to compile 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 Jan 16, 2018, at 9:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an NSF facility and scientific network for modeling in the earth sciences. It was Eric’s idea to try this through Anaconda. He provided guidance and I worked though a lot of testing it as an Anaconda build last summer, but was unable to get it to a point where GRASS could reliably be compiled and then distributed. Over the last couple months, Eric has worked out how to solve those problems, including making a launchable app and packaging it all in a dmg. There is a bit of fine tuning left to do in the workflow, but it is essentially distributable now–making it the first time I’ve been able to create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also making GRASS available as an Anaconda package. He has created an Anaconda ‘recipe’ to do this. After getting the app/dmg distributed, I will follow his lead to test how this works as an alternative for those who use Anaconda for Python.

This new build has a couple of characteristics quite different from previous Mac versions. Most importantly, all needed dependencies are bundled inside the app. This makes for a bigger app, but hopefully eliminates any conflicts among dependency versions. No more separately installed “frameworks”. No more conflicts if you (or a program) install another version of Python or wxPython somewhere. And hopefully, no more issues with Apple’s ‘system integrity protection’ (SIP).

This test version does not include gettext for internationalization or libLAS. I wanted to test it as we’ve been developing the workflow, without adding anything else until I can confirm that it works. However, I think it will be easy to include gettext because there already is an Anaconda version available. LiDAR support may be trickier. I have previously compiled libLAS. I think it may be possible to work out how to link and bundle it in this Anaconda version. That said, there seems to be work in the dev team for substituting PDAL as a LiDAR support library, and Anaconda already supports PDAL. So if we can substitute PDAL functionality for libLAS functionality, we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual architecture 32/64 bit. This solves a number of compiling and running issues, and means that the GUI now must run in wxPython 3 and above (still Python 2.7). There are several GUI bugs that show up in switching from wxPython 2.8 to 3+. I’ve created tickets on the 3 I know of. The most annoying 2 of these should be pretty easy to solve for the people who are actively managing the GUI (the menu button bar does not properly revert back to 2D buttons after displaying 3D, and a custom pull-down list control does not recognize mouse clicks). I don’t know if the 3rd one is easy or difficult to solve (the interactive supervised classification module crashes GRASS).

Please feel free to distribute and get back in touch with me and Eric if you run into any issues.

Cheers
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 Jan 16, 2018, at 6:53 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on my new laptop in less than 10 minutes including download. On first double click it refused to open that it is not verfied but it allowed me to open it by clicking on it and selecting Open in the menu ( I remebered that trick from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but nviz and map swipe runs, g.gui.animation has a problem. Anyway it is fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an app, and created a dmg. It runs with a double click. This is great!! Tonight, I will test on my laptop at home with SIP turned on. Fingers crossed.

Cheers
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

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the 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-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.

Just tried it on my laptop. There is history in the minimalist python shell. You just have to hold down the cmd key while pressing the up or down arrow key.

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 Jan 17, 2018, at 4:13 PM, Carlos Grohmann <carlos.grohmann@gmail.com> wrote:

I noticed that there is no command line history in python.

As far as I know the QGIS project pays this license fee (through OSGeo?).
Should we do that as well?

Markus

···

Am 18.01.2018 12:29 vorm. schrieb “Michael Barton” <Michael.Barton@asu.edu>:

Thanks Carlos,

Many recent versions seem to take a long time to initialize the first time opened. And of course this needs to be opened with a Ctrl-click because I have not paid Apple $100/year to be able to sign packages.

Great!

Continuing with the tests, one of my students got this when trying to install r.stream.distance:

Fetching <r.stream.distance> from GRASS GIS Addons repository (be patient)…
Compiling…
/bin/sh:
/Applications/GRASS-7.2.app/Contents/Resources/bin/clang: No
such file or directory
make: *** [OBJ.x86_64-apple-darwin17.3.0/distance_calc.o]
Error 127
ERROR: Compilation failed, sorry. Please check above error messages.

Carlos

···

On Thu, Jan 18, 2018 at 4:03 AM, Michael Barton <Michael.Barton@asu.edu> wrote:

Just tried it on my laptop. There is history in the minimalist python shell. You just have to hold down the cmd key while pressing the up or down arrow key.

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 Jan 17, 2018, at 4:13 PM, Carlos Grohmann <carlos.grohmann@gmail.com> wrote:

I noticed that there is no command line history in python.

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.

I get this kind of thing regularly when GRASS tries to compile from g.extension. Sometimes it is because of a problem with the add-on file. Do ALL addons fail or just this one? Have you tried it from g.extension instead of the GUI wrapper? It might help sort out the error.

MIchael

···

On Thu, Jan 18, 2018 at 4:03 AM, Michael Barton <Michael.Barton@asu.edu> wrote:

Just tried it on my laptop. There is history in the minimalist python shell. You just have to hold down the cmd key while pressing the up or down arrow key.

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 Jan 17, 2018, at 4:13 PM, Carlos Grohmann <carlos.grohmann@gmail.com> wrote:

I noticed that there is no command line history in python.

Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil

  • Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572


Can’t stop the signal.

Stuart,

A couple of questions:

  1. How did you try to launch GRASS?

  2. Did you purposefully set your terminal to a green color or did this happen automatically? (I know it’s weird but let me know).

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 Jan 18, 2018, at 7:02 AM, Stuart Edwards <sedwards2@cinci.rr.com> wrote:

Hi -

Just tried to open the new package on a MacBook Pro running 10.13.2 (High Sierra) and got this message:

Starting GRASS GIS…
ERROR: wxGUI requires wxPython. No module named core

Thanks for all your efforts on this ‘project’…

Stu

On Jan 17, 2018, at 5:14 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve just posted a new GRASS 7.2.2 dmg to the GRASS for Mac web site (http://grassmac.wikidot.com). This one is compiled with gettext for internationalization. Please test.

I have not been able to get 7.4 to compile 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 Jan 16, 2018, at 9:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an NSF facility and scientific network for modeling in the earth sciences. It was Eric’s idea to try this through Anaconda. He provided guidance and I worked though a lot of testing it as an Anaconda build last summer, but was unable to get it to a point where GRASS could reliably be compiled and then distributed. Over the last couple months, Eric has worked out how to solve those problems, including making a launchable app and packaging it all in a dmg. There is a bit of fine tuning left to do in the workflow, but it is essentially distributable now–making it the first time I’ve been able to create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also making GRASS available as an Anaconda package. He has created an Anaconda ‘recipe’ to do this. After getting the app/dmg distributed, I will follow his lead to test how this works as an alternative for those who use Anaconda for Python.

This new build has a couple of characteristics quite different from previous Mac versions. Most importantly, all needed dependencies are bundled inside the app. This makes for a bigger app, but hopefully eliminates any conflicts among dependency versions. No more separately installed “frameworks”. No more conflicts if you (or a program) install another version of Python or wxPython somewhere. And hopefully, no more issues with Apple’s ‘system integrity protection’ (SIP).

This test version does not include gettext for internationalization or libLAS. I wanted to test it as we’ve been developing the workflow, without adding anything else until I can confirm that it works. However, I think it will be easy to include gettext because there already is an Anaconda version available. LiDAR support may be trickier. I have previously compiled libLAS. I think it may be possible to work out how to link and bundle it in this Anaconda version. That said, there seems to be work in the dev team for substituting PDAL as a LiDAR support library, and Anaconda already supports PDAL. So if we can substitute PDAL functionality for libLAS functionality, we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual architecture 32/64 bit. This solves a number of compiling and running issues, and means that the GUI now must run in wxPython 3 and above (still Python 2.7). There are several GUI bugs that show up in switching from wxPython 2.8 to 3+. I’ve created tickets on the 3 I know of. The most annoying 2 of these should be pretty easy to solve for the people who are actively managing the GUI (the menu button bar does not properly revert back to 2D buttons after displaying 3D, and a custom pull-down list control does not recognize mouse clicks). I don’t know if the 3rd one is easy or difficult to solve (the interactive supervised classification module crashes GRASS).

Please feel free to distribute and get back in touch with me and Eric if you run into any issues.

Cheers
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 Jan 16, 2018, at 6:53 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on my new laptop in less than 10 minutes including download. On first double click it refused to open that it is not verfied but it allowed me to open it by clicking on it and selecting Open in the menu ( I remebered that trick from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but nviz and map swipe runs, g.gui.animation has a problem. Anyway it is fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an app, and created a dmg. It runs with a double click. This is great!! Tonight, I will test on my laptop at home with SIP turned on. Fingers crossed.

Cheers
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

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the 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-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

It would make life easier for people using GRASS. I’m not sure how that would be implemented, but if the QGIS folks do it, we should be able to do it too.

Michael

···

Am 18.01.2018 12:29 vorm. schrieb “Michael Barton” <Michael.Barton@asu.edu>:

Thanks Carlos,

Many recent versions seem to take a long time to initialize the first time opened. And of course this needs to be opened with a Ctrl-click because I have not paid Apple $100/year to be able to sign packages.

I was able to compile GRASS 7.4.0 RC2 and have just posted it to the GRASS Mac web site.

This is a clickable Mac *.app bundled with dependencies and Python. So it should work without conflicts. But it is not a full fledged version of Python that you can customize with new packages. For that, we will need to create versions that are Anaconda packages that can be installed with ‘conda install grass’

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 Jan 17, 2018, at 3:14 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

I’ve just posted a new GRASS 7.2.2 dmg to the GRASS for Mac web site (http://grassmac.wikidot.com). This one is compiled with gettext for internationalization. Please test.

I have not been able to get 7.4 to compile 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 Jan 16, 2018, at 9:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Helena,

I am very glad that it works for you so easily. A HUGE thanks is owed to Eric Hutton of the Community Surface Dynamics Modeling System (CSDMS), an NSF facility and scientific network for modeling in the earth sciences. It was Eric’s idea to try this through Anaconda. He provided guidance and I worked though a lot of testing it as an Anaconda build last summer, but was unable to get it to a point where GRASS could reliably be compiled and then distributed. Over the last couple months, Eric has worked out how to solve those problems, including making a launchable app and packaging it all in a dmg. There is a bit of fine tuning left to do in the workflow, but it is essentially distributable now–making it the first time I’ve been able to create a stable and easily installable binary in a year and a half.

Parallel to this, Eric proposes (and has worked out the protocol) of also making GRASS available as an Anaconda package. He has created an Anaconda ‘recipe’ to do this. After getting the app/dmg distributed, I will follow his lead to test how this works as an alternative for those who use Anaconda for Python.

This new build has a couple of characteristics quite different from previous Mac versions. Most importantly, all needed dependencies are bundled inside the app. This makes for a bigger app, but hopefully eliminates any conflicts among dependency versions. No more separately installed “frameworks”. No more conflicts if you (or a program) install another version of Python or wxPython somewhere. And hopefully, no more issues with Apple’s ‘system integrity protection’ (SIP).

This test version does not include gettext for internationalization or libLAS. I wanted to test it as we’ve been developing the workflow, without adding anything else until I can confirm that it works. However, I think it will be easy to include gettext because there already is an Anaconda version available. LiDAR support may be trickier. I have previously compiled libLAS. I think it may be possible to work out how to link and bundle it in this Anaconda version. That said, there seems to be work in the dev team for substituting PDAL as a LiDAR support library, and Anaconda already supports PDAL. So if we can substitute PDAL functionality for libLAS functionality, we can do it all within an Anaconda environment.

This is also a full 64 bit version of GRASS. No more need to compile it dual architecture 32/64 bit. This solves a number of compiling and running issues, and means that the GUI now must run in wxPython 3 and above (still Python 2.7). There are several GUI bugs that show up in switching from wxPython 2.8 to 3+. I’ve created tickets on the 3 I know of. The most annoying 2 of these should be pretty easy to solve for the people who are actively managing the GUI (the menu button bar does not properly revert back to 2D buttons after displaying 3D, and a custom pull-down list control does not recognize mouse clicks). I don’t know if the 3rd one is easy or difficult to solve (the interactive supervised classification module crashes GRASS).

Please feel free to distribute and get back in touch with me and Eric if you run into any issues.

Cheers
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 Jan 16, 2018, at 6:53 PM, Helena Mitasova <hmitaso@ncsu.edu> wrote:

Michael,

thank you for the dmg file - great news - I was able to get GRASS running on my new laptop in less than 10 minutes including download. On first double click it refused to open that it is not verfied but it allowed me to open it by clicking on it and selecting Open in the menu ( I remebered that trick from the past).

I noticed that it does not have r.in.lidar (I am aware of the issue) but nviz and map swipe runs, g.gui.animation has a problem. Anyway it is fantastic to have GRASS Mac binary back - thank you all for the effort,

Helena

On Jan 16, 2018, at 6:08 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

Hi Eric,

I just started from scratch and compiled GRASS under Anaconda, created an app, and created a dmg. It runs with a double click. This is great!! Tonight, I will test on my laptop at home with SIP turned on. Fingers crossed.

Cheers
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

Helena Mitasova
Professor at the Department of Marine,
Earth, and Atmospheric Sciences
Associate director and faculty fellow at the 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.”