[GRASS-dev] [GRASS GIS] #2942: Startup after Novice Install

#2942: Startup after Novice Install
-----------------------+-------------------------
Reporter: pactriglo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.4
Component: Startup | Version: 7.0.3
Keywords: | CPU: OSX/Intel
Platform: MacOSX |
-----------------------+-------------------------
Last login: Sun Feb 28 19:57:43 on ttys000
BenjamiillosMBP:~ benjaminpezzillo$
'/Applications/GRASS-7.0.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
   Referenced from:
/Applications/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.3.dylib
   Reason: image not found
Traceback (most recent call last):
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/gis_set.py", line
31, in <module>
     from core import globalvar
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/globalvar.py",
line 29, in <module>
     from core.debug import Debug
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
line 66, in <module>
     Debug = DebugMsg()
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
line 37, in __init__
     self.SetLevel()
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
line 42, in SetLevel
     self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 934, in gisenv
     s = read_command("g.gisenv", flags='n')
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 442, in read_command
     process = pipe_command(*args, **kwargs)
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 417, in pipe_command
     return start_command(*args, **kwargs)
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 355, in start_command
     if debug_level() > 0:
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 1517, in debug_level
     _debug_level = int(gisenv().get('DEBUG', 0))
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 934, in gisenv
     s = read_command("g.gisenv", flags='n')
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 445, in read_command
     return handle_errors(returncode, stdout, args, kwargs)
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 312, in handle_errors
     returncode=returncode)
grass.exceptions.CalledModuleError: Module run None ['g.gisenv', '-n']
ended with error
Process ended with non-zero return code -5. See errors in the (error)
output.
Error in GUI startup. If necessary, please report this error to the GRASS
developers.
Switching to text mode now.

Hit RETURN to continue...

Traceback (most recent call last):
   File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 1438, in
<module>
     set_data()
   File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 681, in
set_data
     gui_startup(grass_gui == 'gtext')
   File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 703, in
gui_startup
     os.execlp(cmd_name, "-text")
   File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 329, in execlp
     execvp(file, args)
   File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 346, in execvp
     _execvpe(file, args)
   File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 382, in _execvpe
     func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2942&gt;
GRASS GIS <https://grass.osgeo.org>

#2942: Startup after Novice Install
------------------------+-------------------------
  Reporter: pactriglo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: Startup | Version: 7.0.3
Resolution: | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------
Description changed by neteler:

Old description:

Last login: Sun Feb 28 19:57:43 on ttys000
BenjamiillosMBP:~ benjaminpezzillo$
'/Applications/GRASS-7.0.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
  Referenced from:
/Applications/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.3.dylib
  Reason: image not found
Traceback (most recent call last):
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/gis_set.py",
line 31, in <module>
    from core import globalvar
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/globalvar.py",
line 29, in <module>
    from core.debug import Debug
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
line 66, in <module>
    Debug = DebugMsg()
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
line 37, in __init__
    self.SetLevel()
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
line 42, in SetLevel
    self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 934, in gisenv
    s = read_command("g.gisenv", flags='n')
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 442, in read_command
    process = pipe_command(*args, **kwargs)
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 417, in pipe_command
    return start_command(*args, **kwargs)
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 355, in start_command
    if debug_level() > 0:
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 1517, in debug_level
    _debug_level = int(gisenv().get('DEBUG', 0))
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 934, in gisenv
    s = read_command("g.gisenv", flags='n')
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 445, in read_command
    return handle_errors(returncode, stdout, args, kwargs)
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 312, in handle_errors
    returncode=returncode)
grass.exceptions.CalledModuleError: Module run None ['g.gisenv', '-n']
ended with error
Process ended with non-zero return code -5. See errors in the (error)
output.
Error in GUI startup. If necessary, please report this error to the GRASS
developers.
Switching to text mode now.

Hit RETURN to continue...

Traceback (most recent call last):
  File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 1438,
in <module>
    set_data()
  File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 681, in
set_data
    gui_startup(grass_gui == 'gtext')
  File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 703, in
gui_startup
    os.execlp(cmd_name, "-text")
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 329, in execlp
    execvp(file, args)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 346, in execvp
    _execvpe(file, args)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 382, in _execvpe
    func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

New description:

{{{
Last login: Sun Feb 28 19:57:43 on ttys000
BenjamiillosMBP:~ benjaminpezzillo$
'/Applications/GRASS-7.0.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.10 found.
Starting GRASS GIS...
dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
   Referenced from:
/Applications/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.3.dylib
   Reason: image not found
Traceback (most recent call last):
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/gis_set.py", line
31, in <module>
     from core import globalvar
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/globalvar.py",
line 29, in <module>
     from core.debug import Debug
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
line 66, in <module>
     Debug = DebugMsg()
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
line 37, in __init__
     self.SetLevel()
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/gui/wxpython/core/debug.py",
line 42, in SetLevel
     self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 934, in gisenv
     s = read_command("g.gisenv", flags='n')
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 442, in read_command
     process = pipe_command(*args, **kwargs)
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 417, in pipe_command
     return start_command(*args, **kwargs)
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 355, in start_command
     if debug_level() > 0:
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 1517, in debug_level
     _debug_level = int(gisenv().get('DEBUG', 0))
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 934, in gisenv
     s = read_command("g.gisenv", flags='n')
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 445, in read_command
     return handle_errors(returncode, stdout, args, kwargs)
   File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/script/core.py",
line 312, in handle_errors
     returncode=returncode)
grass.exceptions.CalledModuleError: Module run None ['g.gisenv', '-n']
ended with error
Process ended with non-zero return code -5. See errors in the (error)
output.
Error in GUI startup. If necessary, please report this error to the GRASS
developers.
Switching to text mode now.

Hit RETURN to continue...

Traceback (most recent call last):
   File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 1438, in
<module>
     set_data()
   File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 681, in
set_data
     gui_startup(grass_gui == 'gtext')
   File "/Applications/GRASS-7.0.app/Contents/MacOS/grass70", line 703, in
gui_startup
     os.execlp(cmd_name, "-text")
   File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 329, in execlp
     execvp(file, args)
   File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 346, in execvp
     _execvpe(file, args)
   File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py",
line 382, in _execvpe
     func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]
}}}

--

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#2942: Startup after Novice Install
------------------------+-------------------------
  Reporter: pactriglo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: Startup | Version: 7.0.3
Resolution: | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------

Comment (by neteler):

The reason is probably a known problem with Mac's System Integrity
Protection.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>

#2942: Startup after Novice Install
------------------------+-------------------------
  Reporter: pactriglo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: Startup | Version: 7.0.3
Resolution: | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------

Comment (by annakrat):

Use homebrew from osgeo4mac:

{{{
brew tap osgeo/osgeo4mac
brew install grass7
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

On 27/06/17 01:02, GRASS GIS wrote:

#2942: Startup after Novice Install
------------------------+-------------------------
  Reporter: pactriglo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: Startup | Version: 7.0.3
Resolution: | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------

Comment (by annakrat):

Use homebrew from osgeo4mac:

{{{
brew tap osgeo/osgeo4mac
brew install grass7
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

Is this the official recommendation on how to install GRASS GIS on Mac OSX these days ?

My students with MacOSX have been a bit confused about the different ways to download GRASS GIS, especially when they were trying to install it in parallel with QGIS for cross-usage (grass plugin and processing toolbox).

BTW, in the homebrew formula for grass7 [1] I see:

stable do
     url "https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz&quot;

i.e. 7.2.0, instead of 7.2.1.

Maybe we should create a symbolic link

https://grass.osgeo.org/grass72/source/current_stable.tar.gz ->
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

?

Or even

https://grass.osgeo.org/current_stable.tar.gz ->
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

to make it easier for build scripts such as these to always point to the latest stable version ?

Moritz

[1] https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/grass7.rb

On Tue, Jun 27, 2017 at 9:26 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 27/06/17 01:02, GRASS GIS wrote:

#2942: Startup after Novice Install
------------------------+-------------------------
  Reporter: pactriglo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: Startup | Version: 7.0.3
Resolution: | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------

Comment (by annakrat):

Use homebrew from osgeo4mac:

{{{
brew tap osgeo/osgeo4mac
brew install grass7
}}}

I just got asked what this "brew thing" means... Is there a "GRASS GIS
brew in a nutshell" anywhere?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

Is this the official recommendation on how to install GRASS GIS on Mac OSX
these days ?

My students with MacOSX have been a bit confused about the different ways to
download GRASS GIS, especially when they were trying to install it in
parallel with QGIS for cross-usage (grass plugin and processing toolbox).

BTW, in the homebrew formula for grass7 [1] I see:

stable do
    url "https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz&quot;

i.e. 7.2.0, instead of 7.2.1.

Maybe we should create a symbolic link

https://grass.osgeo.org/grass72/source/current_stable.tar.gz ->
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

?

Or even

https://grass.osgeo.org/current_stable.tar.gz ->
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

to make it easier for build scripts such as these to always point to the
latest stable version ?

We do have it for the snapshot which is script generated:

https://grass.osgeo.org/grass72/source/snapshot/grass-7.2.svn_src_snapshot_latest.tar.gz

but not yet for the stable releases which would require a manual
interaction by me on the server after a release.
OK, I have added that to the release procedure and have generated the link:

https://grass.osgeo.org/grass72/source/grass-7.2-latest.tar.gz
which points at time to the file "grass-7.2.1.tar.gz".

HTH,
Markus

Moritz

[1]
https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/grass7.rb
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

--
Markus Neteler, PhD
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog

On Tue, Jun 27, 2017 at 3:26 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 27/06/17 01:02, GRASS GIS wrote:

#2942: Startup after Novice Install
------------------------+-------------------------
  Reporter: pactriglo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: Startup | Version: 7.0.3
Resolution: | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------

Comment (by annakrat):

Use homebrew from osgeo4mac:

{{{
brew tap osgeo/osgeo4mac
brew install grass7
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

Is this the official recommendation on how to install GRASS GIS on Mac OSX
these days ?

I was recommending this way in our recent workshops because it's the
only way which works with SIP enabled. It's far from ideal because it
doesn't always work, sometimes people have several Python
installations on Mac which complicates things and for some reason,
ctypes don't work there (so no PyGRASS or digitizer or 3D view). And
the installation takes time on slower computers because it's compiling
everything.

Michael's binaries work only when SIP is disabled. It's fairly easy to
disable it, but still, you have to boot into recovery system, open
command line and run a command there, so it looks little scary for
most people.

Even your own compilation is fairly difficult, one reason is that
official wxPython 3 mac package is old and new macs refuse to open and
install. So in general I am getting sick of this issue and
unfortunately I don't have time nor knowledge to do anything about it.

My students with MacOSX have been a bit confused about the different ways to
download GRASS GIS, especially when they were trying to install it in
parallel with QGIS for cross-usage (grass plugin and processing toolbox).

this is something I haven't even tried. If some of your students find
better ways of installing GRASS, let me know.

Anna

BTW, in the homebrew formula for grass7 [1] I see:

stable do
    url "https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz&quot;

i.e. 7.2.0, instead of 7.2.1.

Maybe we should create a symbolic link

https://grass.osgeo.org/grass72/source/current_stable.tar.gz ->
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

?

Or even

https://grass.osgeo.org/current_stable.tar.gz ->
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

to make it easier for build scripts such as these to always point to the
latest stable version ?

Moritz

[1]
https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/grass7.rb
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Tue, Jun 27, 2017 at 2:32 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Tue, Jun 27, 2017 at 3:26 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 27/06/17 01:02, GRASS GIS wrote:

#2942: Startup after Novice Install
------------------------±------------------------
Reporter: pactriglo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.6
Component: Startup | Version: 7.0.3
Resolution: | Keywords:
CPU: OSX/Intel | Platform: MacOSX
------------------------±------------------------

Comment (by annakrat):

Use homebrew from osgeo4mac:

{{{
brew tap osgeo/osgeo4mac
brew install grass7
}}}


Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:5>
GRASS GIS <https://grass.osgeo.org>

Is this the official recommendation on how to install GRASS GIS on Mac OSX
these days ?

I was recommending this way in our recent workshops because it’s the
only way which works with SIP enabled. It’s far from ideal because it
doesn’t always work, sometimes people have several Python
installations on Mac which complicates things and for some reason,
ctypes don’t work there (so no PyGRASS or digitizer or 3D view). And
the installation takes time on slower computers because it’s compiling
everything.

Michael’s binaries work only when SIP is disabled. It’s fairly easy to
disable it, but still, you have to boot into recovery system, open
command line and run a command there, so it looks little scary for
most people.

Even your own compilation is fairly difficult, one reason is that
official wxPython 3 mac package is old

How much effort would it be to enable compatibility with the official wxPython 3 mac package? Maybe it is worth the effort?

GRASS tries hard to run on various different operating systems (alphabetically Android, BSD, Linux, Mac, Unix, Windows) and different versions of these.

Markus M

and new macs refuse to open and
install. So in general I am getting sick of this issue and
unfortunately I don’t have time nor knowledge to do anything about it.

My students with MacOSX have been a bit confused about the different ways to
download GRASS GIS, especially when they were trying to install it in
parallel with QGIS for cross-usage (grass plugin and processing toolbox).

this is something I haven’t even tried. If some of your students find
better ways of installing GRASS, let me know.

Anna

BTW, in the homebrew formula for grass7 [1] I see:

stable do
url “https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz

i.e. 7.2.0, instead of 7.2.1.

Maybe we should create a symbolic link

https://grass.osgeo.org/grass72/source/current_stable.tar.gz
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

?

Or even

https://grass.osgeo.org/current_stable.tar.gz
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

to make it easier for build scripts such as these to always point to the
latest stable version ?

Moritz

[1]
https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/grass7.rb


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


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

On Wed, Jun 28, 2017 at 3:17 AM, Rainer Krug <rainer_krug@icloud.com> wrote:

On 27 Jun 2017, at 14:32, Anna Petrášová <kratochanna@gmail.com> wrote:

On Tue, Jun 27, 2017 at 3:26 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 27/06/17 01:02, GRASS GIS wrote:

#2942: Startup after Novice Install
------------------------+-------------------------
Reporter: pactriglo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.6
Component: Startup | Version: 7.0.3
Resolution: | Keywords:
      CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------

Comment (by annakrat):

Use homebrew from osgeo4mac:

{{{
brew tap osgeo/osgeo4mac
brew install grass7
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

Is this the official recommendation on how to install GRASS GIS on Mac OSX
these days ?

I was recommending this way in our recent workshops because it's the
only way which works with SIP enabled. It's far from ideal because it
doesn't always work, sometimes people have several Python
installations on Mac which complicates things

I have the system python, Python 2 (home-brew) and python-3 (also home-brew
install), and it installs without problems. Maybe because I have the hebrew
python install.

It usually get’s tricky if you are mixing different approaches of installing
programs (same on Linux). That is the reason why, where possible, am using
home-brew. I have, for example, no idea how home-brew / grass works together
with python installed via the apple way go MacPorts. This is something which
should be asked on the home-brew mailing list, or better, stackexchange.

also people have Anaconda these days. You have to be careful about the
order of Pythons in your PATH. (It sort of brings the actual meaning
of word python to my mind...)

Related to this, GRASS uses GRASS_PYTHON to force which Python is used.

and for some reason, ctypes don't work there (so no PyGRASS or digitizer or
3D view).

Never used them, but how can I test? Could you give me an example and I
could try on my machine.

Pretty simple, run any of the examples here:

https://grass.osgeo.org/grass73/manuals/libpython/pygrass_vector.html

The rest is to be tested in the GUI, digitizer and 3D view are
switched on in Map Display.

And the installation takes time on slower computers because it's compiling
everything.

Actually, there is a bottle (binary) available for grass 7 Sierra

09:02:43 ~$ brew info grass7
osgeo/osgeo4mac/grass7: stable 7.2.0 (bottled)
Geographic Resources Analysis Support System
http://grass.osgeo.org/
/usr/local/Cellar/grass7/7.2.0 (3,751 files, 69.6MB) *
  Poured from bottle on 2017-06-28 at 08:54:11
From:
https://github.com/osgeo/homebrew-osgeo4mac/blob/master/Formula/grass7.rb
==> Dependencies
Build: pkg-config :heavy_check_mark:
Required: gettext :heavy_check_mark:, readline :heavy_check_mark:, flex :heavy_check_mark:, bison :heavy_check_mark:, lbzip2 :heavy_check_mark:, gdal2 :heavy_check_mark:, libtiff
:heavy_check_mark:, unixodbc :heavy_check_mark:, fftw :heavy_check_mark:, wxpython :heavy_check_mark:, cairo :heavy_check_mark:, ghostscript :heavy_check_mark:
Optional: openblas :heavy_check_mark:, liblas :heavy_check_mark:, netcdf :heavy_check_mark:, ffmpeg :heavy_check_mark:
==> Requirements
Required: unlinkedgrass7 ✘, python :heavy_check_mark:, numpy (python module) :heavy_check_mark:, x11 :heavy_check_mark:
Optional: postgresql :heavy_check_mark:, mysql :heavy_check_mark:
==> Options
--with-ffmpeg
Build with ffmpeg support
--with-gdal-1
Build with GDAL/OGR v1.x instead of v2.x
--with-liblas
Build with liblas support
--with-mysql
Build with mysql support
--with-netcdf
Build with netcdf support
--with-openblas
Build with openblas support
--with-postgresql
Build with postgresql support
--without-gui
Build without WxPython interface. Command line tools still available.
09:03:02 ~$

I just re-installed it. If you use non-default options, grass7 get’s usually
compiled - that is correct.

I see. On a recent workshop we did, a lot of people had problems with
installing GRASS with homebrew, and the most annoying part was that
they had all kinds of errors and we were able to figure out only some
of them.

Michael's binaries work only when SIP is disabled. It's fairly easy to
disable it, but still, you have to boot into recovery system, open
command line and run a command there, so it looks little scary for
most people.

Absolutely - It makes sense to have SIP, and I am not prepared to disable it
if I can avoid it - which I can by using homebrew.

Even your own compilation is fairly difficult, one reason is that
official wxPython 3 mac package is old and new macs refuse to open and
install. So in general I am getting sick of this issue and
unfortunately I don't have time nor knowledge to do anything about it.

You are running into the same problems as with the pre-build binaries from
Michael. I managed to get it to compile and run, but it was hackisch and not
all features worked - so no options. If you gave instructions once on this
mailing list but don’t have the mails at hand.

I used this:
https://stackoverflow.com/a/34622956/1058453

I haven't tried the new wxPython Phoenix on Mac yet.

My students with MacOSX have been a bit confused about the different ways to
download GRASS GIS, especially when they were trying to install it in
parallel with QGIS for cross-usage (grass plugin and processing toolbox).

this is something I haven't even tried. If some of your students find
better ways of installing GRASS, let me know.

As far as I know, you have to install both via home-brew (and if you are
mentioning the long compilation times of GRASS, start the compilation of
QGIS in home-brew in the evening! QGIS is beast to install via homebrew).

But: I haven’t used QGIS in a long time.

So to sum up:

1) mixed installs (Apple;e approach (.pkg, .dmg, Frameworks, …) combined
with home-brew, you likely will have problems.
2) grass 7 installs via home-brew from a binary on Sierra without
compilation
3) QGIS - grass under home-brew should work if both are installed under
home-brew, otherwise ask on the QGIS mailing list.

Thanks for any testing/advice. We should probably update official
instructions on the main website if we agree on what they should be.

Anna

Hope this helps,

Cheers,

Rainer

Anna

BTW, in the homebrew formula for grass7 [1] I see:

stable do
   url "https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz&quot;

i.e. 7.2.0, instead of 7.2.1.

Maybe we should create a symbolic link

https://grass.osgeo.org/grass72/source/current_stable.tar.gz ->
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

?

Or even

https://grass.osgeo.org/current_stable.tar.gz ->
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

to make it easier for build scripts such as these to always point to the
latest stable version ?

Moritz

[1]
https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/grass7.rb
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

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

Do you run this in GRASS session? Outside it won’t work.

Sorry, I meant Map Display toolbar. There is drop down widget to select digitizer and 3d view.

No, I should have, but most problems I encountered would be hard to reproduce anyway and I didn’t have access to their laptops. But the problem with ctypes should be reproducible.

This is wxpython 3, the new one is 4.
Sorry, I am traveling, so I can give only limited response.

Anna

···

On Jun 29, 2017 3:38 AM, “Rainer Krug” <rainer_krug@icloud.com> wrote:

On 29 Jun 2017, at 06:09, Anna Petrášová <kratochanna@gmail.com> wrote:

On Wed, Jun 28, 2017 at 3:17 AM, Rainer Krug <rainer_krug@icloud.com> wrote:

On 27 Jun 2017, at 14:32, Anna Petrášová <kratochanna@gmail.com> wrote:

On Tue, Jun 27, 2017 at 3:26 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 27/06/17 01:02, GRASS GIS wrote:

#2942: Startup after Novice Install
------------------------±------------------------
Reporter: pactriglo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.6
Component: Startup | Version: 7.0.3
Resolution: | Keywords:
CPU: OSX/Intel | Platform: MacOSX
------------------------±------------------------

Comment (by annakrat):

Use homebrew from osgeo4mac:

{{{
brew tap osgeo/osgeo4mac
brew install grass7
}}}


Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:5>
GRASS GIS <https://grass.osgeo.org>

Is this the official recommendation on how to install GRASS GIS on Mac OSX
these days ?

I was recommending this way in our recent workshops because it’s the
only way which works with SIP enabled. It’s far from ideal because it
doesn’t always work, sometimes people have several Python
installations on Mac which complicates things

I have the system python, Python 2 (home-brew) and python-3 (also home-brew
install), and it installs without problems. Maybe because I have the hebrew
python install.

It usually get’s tricky if you are mixing different approaches of installing
programs (same on Linux). That is the reason why, where possible, am using
home-brew. I have, for example, no idea how home-brew / grass works together
with python installed via the apple way go MacPorts. This is something which
should be asked on the home-brew mailing list, or better, stackexchange.

also people have Anaconda these days. You have to be careful about the
order of Pythons in your PATH. (It sort of brings the actual meaning

of word python to my mind…)

I have the following python defined:

08:53:45 ~$ which python

/usr/local/bin/python

09:15:36 ~$ python --version

Python 2.7.13

09:15:43 ~$

which is the home-brew python.

Related to this, GRASS uses GRASS_PYTHON to force which Python is used.

GRASS 7.2.0 (grass):~ > echo $GRASS_PYTHON

python

[Raster MASK present]

GRASS 7.2.0 (grass):~ > which python

/usr/local/bin/python

[Raster MASK present]

GRASS 7.2.0 (grass):~ > python --version

Python 2.7.13

[Raster MASK present]

GRASS 7.2.0 (grass):~ >

and for some reason, ctypes don’t work there (so no PyGRASS or digitizer or
3D view).

Never used them, but how can I test? Could you give me an example and I
could try on my machine.

Pretty simple, run any of the examples here:

https://grass.osgeo.org/grass73/manuals/libpython/pygrass_vector.html

OK - I am new to python (wrote my first lines of python code about two weeks ago…). So I am getting

importError: No module named grass.pygrass.vector

in a fresh python session.

The rest is to be tested in the GUI, digitizer and 3D view are
switched on in Map Display.

I see the following in the Map Display menu - does this mean, that they are not working?

And the installation takes time on slower computers because it’s compiling
everything.

Actually, there is a bottle (binary) available for grass 7 Sierra

09:02:43 ~$ brew info grass7
osgeo/osgeo4mac/grass7: stable 7.2.0 (bottled)
Geographic Resources Analysis Support System
http://grass.osgeo.org/
/usr/local/Cellar/grass7/7.2.0 (3,751 files, 69.6MB) *
Poured from bottle on 2017-06-28 at 08:54:11
From:
https://github.com/osgeo/homebrew-osgeo4mac/blob/master/Formula/grass7.rb
==> Dependencies
Build: pkg-config :heavy_check_mark:
Required: gettext :heavy_check_mark:, readline :heavy_check_mark:, flex :heavy_check_mark:, bison :heavy_check_mark:, lbzip2 :heavy_check_mark:, gdal2 :heavy_check_mark:, libtiff
:heavy_check_mark:, unixodbc :heavy_check_mark:, fftw :heavy_check_mark:, wxpython :heavy_check_mark:, cairo :heavy_check_mark:, ghostscript :heavy_check_mark:
Optional: openblas :heavy_check_mark:, liblas :heavy_check_mark:, netcdf :heavy_check_mark:, ffmpeg :heavy_check_mark:
==> Requirements
Required: unlinkedgrass7 ✘, python :heavy_check_mark:, numpy (python module) :heavy_check_mark:, x11 :heavy_check_mark:
Optional: postgresql :heavy_check_mark:, mysql :heavy_check_mark:
==> Options
–with-ffmpeg
Build with ffmpeg support
–with-gdal-1
Build with GDAL/OGR v1.x instead of v2.x
–with-liblas
Build with liblas support
–with-mysql
Build with mysql support
–with-netcdf
Build with netcdf support
–with-openblas
Build with openblas support
–with-postgresql
Build with postgresql support
–without-gui
Build without WxPython interface. Command line tools still available.
09:03:02 ~$

I just re-installed it. If you use non-default options, grass7 get’s usually
compiled - that is correct.

I see. On a recent workshop we did, a lot of people had problems with
installing GRASS with homebrew, and the most annoying part was that
they had all kinds of errors and we were able to figure out only some
of them.

Interesting. Did you raise these with Larry Shaffer https://github.com/dakcarto who is maintaining the osgeo4mac tap?

I will try to setup a VirtualBox VM running Sierra and go through the complete install from the clean system. I will report back - please remind if you don’t hear anything.

Michael’s binaries work only when SIP is disabled. It’s fairly easy to
disable it, but still, you have to boot into recovery system, open
command line and run a command there, so it looks little scary for
most people.

Absolutely - It makes sense to have SIP, and I am not prepared to disable it
if I can avoid it - which I can by using homebrew.

Even your own compilation is fairly difficult, one reason is that
official wxPython 3 mac package is old and new macs refuse to open and
install. So in general I am getting sick of this issue and
unfortunately I don’t have time nor knowledge to do anything about it.

You are running into the same problems as with the pre-build binaries from
Michael. I managed to get it to compile and run, but it was hackisch and not
all features worked - so no options. If you gave instructions once on this
mailing list but don’t have the mails at hand.

I used this:
https://stackoverflow.com/a/34622956/1058453

I haven’t tried the new wxPython Phoenix on Mac yet.

I have installed it from home-brew, if I am not completely mistaken:

$ pip2 search wx

wxPython-common (2.6.3.3) - Cross platform GUI toolkit for Python

INSTALLED: 3.0.2.0

LATEST: 2.6.3.3

and

9:32:24 ~/tmp$ brew info wxpython

wxpython: stable 3.0.2.0 (bottled)

Python bindings for wxWidgets

https://www.wxwidgets.org/

/usr/local/Cellar/wxpython/3.0.2.0 (992 files, 40MB) *

Poured from bottle on 2014-12-06 at 18:36:45

From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/wxpython.rb

==> Dependencies

Required: wxmac :heavy_check_mark:

09:34:42 ~/tmp$ brew info wxmac

wxmac: stable 3.0.2 (bottled), devel 3.1.0, HEAD

Cross-platform C++ GUI toolkit (wxWidgets for macOS)

https://www.wxwidgets.org

/usr/local/Cellar/wxmac/3.0.2_4 (810 files, 24.6MB) *

Poured from bottle on 2016-11-02 at 19:08:02

From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/wxmac.rb

==> Dependencies

Required: jpeg :heavy_check_mark:, libpng :heavy_check_mark:, libtiff :heavy_check_mark:

==> Options

–with-static

build static libraries

–with-stl

use standard C++ classes for everything

–devel

Install development version 3.1.0

–HEAD

Install HEAD version

09:34:47 ~/tmp$

My students with MacOSX have been a bit confused about the different ways to
download GRASS GIS, especially when they were trying to install it in
parallel with QGIS for cross-usage (grass plugin and processing toolbox).

this is something I haven’t even tried. If some of your students find
better ways of installing GRASS, let me know.

As far as I know, you have to install both via home-brew (and if you are
mentioning the long compilation times of GRASS, start the compilation of
QGIS in home-brew in the evening! QGIS is beast to install via homebrew).

But: I haven’t used QGIS in a long time.

So to sum up:

  1. mixed installs (Apple;e approach (.pkg, .dmg, Frameworks, …) combined
    with home-brew, you likely will have problems.
  2. grass 7 installs via home-brew from a binary on Sierra without
    compilation
  3. QGIS - grass under home-brew should work if both are installed under
    home-brew, otherwise ask on the QGIS mailing list.

Thanks for any testing/advice. We should probably update official
instructions on the main website if we agree on what they should be.

Yes - I am still wandering, why there is a SIP issue with a GIS program, but Michael and others explained it a few times here and definitively have a better understanding of this. Ih the long run, one should probably address this issue in the code base of GRASS so that installation via the official way is possible without hassles, but an approved / official installation procedure for using home-brew should be available.

Rainer

Anna

Hope this helps,

Cheers,

Rainer

Anna

BTW, in the homebrew formula for grass7 [1] I see:

stable do
url “https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz

i.e. 7.2.0, instead of 7.2.1.

Maybe we should create a symbolic link

https://grass.osgeo.org/grass72/source/current_stable.tar.gz
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

?

Or even

https://grass.osgeo.org/current_stable.tar.gz
https://grass.osgeo.org/grass72/source/grass-7.2.1.tar.gz

to make it easier for build scripts such as these to always point to the
latest stable version ?

Moritz

[1]
https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/grass7.rb


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


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

#2942: Startup after Novice Install
------------------------+-------------------------
  Reporter: pactriglo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.7
Component: Startup | Version: 7.0.3
Resolution: | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------

Comment (by martinl):

No activity. Feel free to re-open if needed.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:7&gt;
GRASS GIS <https://grass.osgeo.org>

#2942: Startup after Novice Install
------------------------+-------------------------
  Reporter: pactriglo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.7
Component: Startup | Version: 7.0.3
Resolution: wontfix | Keywords:
       CPU: OSX/Intel | Platform: MacOSX
------------------------+-------------------------
Changes (by martinl):

* status: new => closed
* resolution: => wontfix

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2942#comment:8&gt;
GRASS GIS <https://grass.osgeo.org>