[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:

try:
    import numpy.oldnumeric as _Numeric
except:
    try:
        import numarray as _Numeric  #if numarray is used it is renamed Numeric
    except:
        try:
            import Numeric as _Numeric
        except:
            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:

	http://trac.wxwidgets.org/ticket/16590

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list