From: Charlie M. <cw...@gm...> - 2006-02-02 01:56:36
|
The only thing I can guess is not everything was cleared out from your previous numarray installation. Maybe a conflict?! Try just deleting "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packa= ges/numarray/" completely and reinstalling. On 2/1/06, Samuel M. Smith <sm...@sa...> wrote: > > 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=3D"-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=3D1 > 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 ? > import ufunc > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ > python2.4/site-packages/numarray/ufunc.py", line 1658, in ? > _choose =3D _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? > > > |