Opened 10 years ago

Last modified 10 years ago

#45046 closed defect

py27-wxpython-2.8: Missing "numeric" dependency in wxpython-2.8 — at Version 1

Reported by: fhgwright (Fred Wright) Owned by: jwa@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mojca@…
Port: py-wxpython-2.8

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Grass stopped working, apparently due to the numpy upgrade from 1.8 to 1.9. The error is:

  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/lib/plot.py", line 132, in <module>
    raise ImportError, "Numeric,numarray or NumPy not found. \n" + msg
   ...

The relevant code is:

# Needs Numeric or numarray or NumPy
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:
           ...

It appears that numpy was able to satisfy this until the numpy port was upgraded to 1.9, where "oldnumeric" had been removed. I was able to work around the problem by installing py27-numeric.

The wxpython-2.8 package doesn't list either numpy or numeric as dependencies, which may have led to the failure to discover the downside of upgrading the numpy port.

It appears that there was a fix in wxwidgets 3.0 to fix the compatibility problem with numpy 1.9, but the only variant of grass that claims to work (experimentally) with V3.0 doesn't actually work.

Change History (1)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mojca@… added
Description: modified (diff)
Keywords: wxpython numpy numeric removed
Owner: changed from macports-tickets@… to jwa@…
Summary: Missing "numeric" dependency in wxpython-2.8py27-wxpython-2.8: Missing "numeric" dependency in wxpython-2.8
Note: See TracTickets for help on using tickets.