Opened 10 years ago
Last modified 10 years ago
#45046 closed defect
Missing "numeric" dependency in wxpython-2.8 — at Initial Version
Reported by: | fhgwright (Fred Wright) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | py-wxpython-2.8 |
Description
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.