[GRASS-dev] wxpython/iclass fails to compile, missing numpy.oldnumeric

Glynn Clements glynn at gclements.plus.com
Sun Nov 9 23:05:45 PST 2014

Markus Neteler wrote:

> What is the relationship of numpy's oldnumeric and GRASS 7?

It's an issue with the wx.lib.plot module in wxPython. It wants a
"numeric" module, for which it tries:

    import numpy.oldnumeric as _Numeric
        import numarray as _Numeric  #if numarray is used it is renamed Numeric
            import Numeric as _Numeric
            msg= """
            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."""
            raise ImportError, "Numeric,numarray or NumPy not found. \n" + msg

Essentially, it tries three options from newest to oldest. But even
the newest is old enough that it's commonly unavailable (the
oldnumeric module was removed from NumPy in version 1.9).

Code should now be using the numpy interface. Apparently wxPython has
only recently done this:


Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list