wx script can't see numpy, but it's installed
Question: I had a wx script working on winxp (at work). it was upgraded to win7_64. I
installed python2 and wxpython (both 32bit). now my script doesn't want to
run. it says "ImportError: NumPy not found.". so I installed numpy from
numpy.org, but it didnt change anything. I can import wx, I can import numpy,
but when I try to run my wx script, it says that numpy is not installed. I
removed and reinstalled everything but nothing changed. what to do?


Answer: Presumably your `numpy` is too "new" or your `wxPython` is too old. For
example the combination wxPython < 3.0 and numpy > 1.9 will not work for the
plot module (2.9.5 + numpy 1.8.0 and 3.0.2 + numpy 1.9.2 **do** actually
work).

Reason should be file `<site-packages.wx>/lib/plot.py` (2.9.5):

    
    
    # Needs NumPy
    try:
        import numpy.oldnumeric as _Numeric
    except:
        msg= """
        This module requires the 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, "NumPy not found.\n" + msg
    

and as used in 3.0.2):

    
    
    # Needs NumPy
    try:
        import numpy as np
    except:
    

`numpy.oldnumeric` is no longer part of numpy 1.9.2, `wx.lib.plot` was
developed for ancient array libraries and you can clearly see its age.

