[GRASS-dev] GRASS on Mac

Hi devs,

I'm trying to install GRASS on a MAC El Capitan version.

I read in a previous mail that Anna suggests to use Homebrew, I
followed that suggestion and at the end I got this error [0]. Do you
have any idea?

Is Homebrew the better/simpler way to install GRASS on MAC?

[0] https://github.com/OSGeo/homebrew-osgeo4mac/issues/239

--
ciao
Luca

www.lucadelu.org

On 10 July 2017 at 12:49, Rainer Krug <rainer_krug@icloud.com> wrote:

Hi Luca,

Hi Rainer,

thanks for the answer...

On 10 Jul 2017, at 12:08, Luca Delucchi <lucadeluge@gmail.com> wrote:

Hi devs,

I'm trying to install GRASS on a MAC El Capitan version.

I read in a previous mail that Anna suggests to use Homebrew, I
followed that suggestion and at the end I got this error [0]. Do you
have any idea?

Is Homebrew the better/simpler way to install GRASS on MAC?

It is the only way of installing GRASS on ElCapitan or newer without disabling SIP (as far as I am aware).

ok, but if SIP i disabled what can I test?

This just tells us that there was an error and where it was, but not what it was.

Please use the -d option when installing, and paste the whole command to let us know what options you used for installing grass7.

        If --debug (or -d) is passed and brewing fails, open an interactive debugging
        session with access to IRB or a shell inside the temporary build directory.Then when the error occurs, you can drop

Also, run

       brew doctor

to check you homwebrew installation.

ok, thanks for suggestions

--
ciao
Luca

www.lucadelu.org

On 10 July 2017 at 14:27, Rainer Krug <rainer_krug@icloud.com> wrote:

       If --debug (or -d) is passed and brewing fails, open an interactive
debugging
       session with access to IRB or a shell inside the temporary build
directory.Then when the error occurs, you can drop

I run with -d flag and I got this

Traceback (most recent call last):
  File "/private/tmp/grass7-20170711-8857-kgp90p/grass-7.2.0/dist.x86_64-apple-darwin15.6.0/scripts/t.vect.univar",
line 71, in <module>
    import grass.temporal as tgis
  File "/private/tmp/grass7-20170711-8857-kgp90p/grass-7.2.0/dist.x86_64-apple-darwin15.6.0/etc/python/grass/temporal/__init__.py",
line 3, in <module>
    from .core import *
  File "/private/tmp/grass7-20170711-8857-kgp90p/grass-7.2.0/dist.x86_64-apple-darwin15.6.0/etc/python/grass/temporal/core.py",
line 45, in <module>
    from .c_libraries_interface import *
  File "/private/tmp/grass7-20170711-8857-kgp90p/grass-7.2.0/dist.x86_64-apple-darwin15.6.0/etc/python/grass/temporal/c_libraries_interface.py",
line 28, in <module>
    from grass.pygrass.rpc.base import RPCServerBase
  File "/private/tmp/grass7-20170711-8857-kgp90p/grass-7.2.0/dist.x86_64-apple-darwin15.6.0/etc/python/grass/pygrass/rpc/__init__.py",
line 21, in <module>
    from grass.pygrass.vector import *
  File "/private/tmp/grass7-20170711-8857-kgp90p/grass-7.2.0/dist.x86_64-apple-darwin15.6.0/etc/python/grass/pygrass/vector/__init__.py",
line 13, in <module>
    from grass.pygrass.vector.vector_type import VTYPE
  File "/private/tmp/grass7-20170711-8857-kgp90p/grass-7.2.0/dist.x86_64-apple-darwin15.6.0/etc/python/grass/pygrass/vector/vector_type.py",
line 9, in <module>
    from grass.pygrass.vector import geometry as geo
  File "/private/tmp/grass7-20170711-8857-kgp90p/grass-7.2.0/dist.x86_64-apple-darwin15.6.0/etc/python/grass/pygrass/vector/geometry.py",
line 12, in <module>
    import numpy as np
ImportError: No module named numpy
make[1]: *** [t.vect.observe.strds.tmp.html] Error 1
rm t.vect.observe.strds.tmp.html
make[1]: *** [t.vect.import.tmp.html] Error 1
rm t.vect.import.tmp.html
make[1]: *** [t.vect.what.strds.tmp.html] Error 1
rm t.vect.what.strds.tmp.html
make[1]: *** [t.vect.univar.tmp.html] Error 1
rm t.vect.univar.tmp.html
bash-3.2$ python
Python 2.7.13 (default, Jul 3 2017, 10:42:44)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import numpy as np

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy

it seems that the Python version that we are using has no numpy, how
and where should I have to install it?

--
ciao
Luca

www.lucadelu.org

On 11 July 2017 at 18:34, Rainer Krug <rainer_krug@icloud.com> wrote:

After that, it should work.

ok, this is fine (pip install worked). Now we have a problem with
wxPython, it seems that is not there, but wxPython is installed...

Starting GRASS GIS...
ERROR: wxGUI requires wxPython. No module named wxversion
ERROR: Error in GUI startup. See messages above (if any) and if
necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI
package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the -text flag.
Use '--help' for further options
     grass72 --help
See also: https://grass.osgeo.org/grass72/manuals/helptext.html
Exiting...

pip search wx
..................
wxPython (4.0.0a3) - Cross platform GUI
toolkit for Python, "Phoenix" version
  INSTALLED: 3.0.2.0
  LATEST: 4.0.0a3
....................

any other useful suggestion?

Cheers,

Rainer

--
ciao
Luca

www.lucadelu.org