[GIS] Trouble importing NumPy in GRASS. Architecture

grassnumpypython

I can't get GRASS to work on my system, and after doing some digging I think it is related to me using 64-bit python. I'm not really sure. I get this message…

        This module requires the Numeric/numarray or NumPy module,
        which could not be imported.  It probably is not installed
        (it's not part of the standard Python distribution). See the
        Numeric Python site (http://numpy.scipy.org) for information on
        downloading source or binaries.

when I try to import numpy from the GRASS shell I get:

ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/numpy/core/multiarray.so, 2): no suitable image found.  Did find:
    /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/numpy/core/multiarray.so: mach-o, but wrong architecture

I am using GRASS 7.0.0. I installed all of the required frameworks without a problem. I currently have python27-apple selected, but I have other versions on python from macports. Numpy imports fine into any version of python I select, but not into GRASS. Can anybody help?

Best Answer

You need to install the required frameworks first. The Numpy framework you can download where you (likely) also downloaded GRASS GIS 7.0.0 for Mac OSX, see:

http://grassmac.wikidot.com/frameworks

Related Question