I had installed numarray 1.1.1 and Numeric 23.7 using package installers from http://pythonmac.org/packages/
I downloaded numarray 1.5 tarball and unpacked it. I used the following command pointing to the include directory
in the 1.5 distribution.
CPPFLAGS="-I/foo/bar/" sudo python setup.py build
My previous error went away but I go another similar error for Numeric.
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/install/python/macpython/python2.4.2/numerical/numarray-1.5.0/include -Isrc -I. -I/usr/local/include -I/usr/include -I. -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c src/_nc_transforms.cpp -o build/temp.darwin-8.4.0-Power_Macintosh-2.3/src/_nc_transforms.o -DNUMERIC=1
src/_nc_transforms.cpp:10:40: Numeric/arrayobject.h: No such file or directory
so I download Numeric 24.2 and decided to go ahead and install it. Which was successful
While I was at it I decided to install numarray 1.5 which installed without complaining but when I tried to import it to test
I get the following error
>>> import numarray
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/__init__.py", line 42, in ?
from numarrayall import *
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/numarrayall.py", line 2, in ?
from generic import *
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/generic.py", line 1036, in ?
import numarraycore as _nc
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/numarraycore.py", line 1472, in ?
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numarray/ufunc.py", line 1658, in ?
_choose = _ChooseUFunc()
TypeError: function takes exactly 5 arguments (0 given)
I then tried doing a python setup.py clean in the matplotlib distribution directory and the clean failed because
it also tries to import numarray.
So I guess now I have to fix numarray. Any Ideas what is broken?