[MacPorts] #45046: py27-wxpython-2.8: Missing "numeric" dependency in wxpython-2.8 (was: Missing "numeric" dependency in wxpython-2.8)
MacPorts
noreply at macports.org
Thu Sep 18 18:28:29 PDT 2014
#45046: py27-wxpython-2.8: Missing "numeric" dependency in wxpython-2.8
--------------------------------+-------------------
Reporter: fw@… | Owner: jwa@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Resolution: | Keywords:
Port: py27-wxpython-2.8 |
--------------------------------+-------------------
Changes (by ryandesign@…):
* cc: mojca@… (added)
* owner: macports-tickets@… => jwa@…
* keywords: wxpython numpy numeric =>
Old 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.
New 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.
--
--
Ticket URL: <https://trac.macports.org/ticket/45046#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list