Dear matplotlib Pundits, I am trying to install matplotlib-0.83.2 on my FedoraCore3 linux. It seems I got installed all required packages (including pygtk2 and gtk2) and the corresponding devel packages. After running python setup.py build I got many messages, terminated with the following error message: ++/3.4.4/functional:54, from src/_transforms.cpp:1: /usr/include/features.h:150:1: warning: this is the location of the previous definition src/_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory src/_transforms.cpp: In member function `Py::Object Bbox::update_numerix(const Py::Tuple&)': src/_transforms.cpp:436: error: `PyArrayObject' undeclared (first use this function) src/_transforms.cpp:436: error: (Each undeclared identifier is reported only once for each function it appears in.) ... src/_transforms.cpp:1974: error: `import_array' undeclared (first use this function) error: command 'gcc' failed with exit status 1 Do I miss some required package? Alex Schwarzenberg-Czerny
Aleksander Schwarzenberg-Czerny wrote: > Dear matplotlib Pundits, > I am trying to install matplotlib-0.83.2 on my FedoraCore3 linux. > It seems I got installed all required packages (including pygtk2 and gtk2) > and the corresponding devel packages. After running > python setup.py build > I got many messages, terminated with the following error message: > ++/3.4.4/functional:54, > from src/_transforms.cpp:1: > /usr/include/features.h:150:1: warning: this is the location of the > previous definition > src/_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory > Do I miss some required package? Numeric. http://numeric.scipy.org -- Robert Kern rk...@uc... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter
Aleksander Schwarzenberg-Czerny wrote: > src/_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory > Do I miss some required package? First, check whether you actually have numeric installed: planck[python]> python -c 'import Numeric;print Numeric.__version__' 23.7 If that works, it means that you have installed the Numeric headers in some non-standard location. On my system, they live in: planck[python]> locate arrayobject.h /usr/include/python2.3/Numeric/arrayobject.h I believe by default, distutils adds automatically /path/to/include/python to the include file search path (via -I), but if you've installed Numeric in some non-standard location, that automatic search may fail. I don't see immediately a way to tell distutils to add specific extra paths, but there may be one. The cheap fix is to copy the Numeric/*.h directory over to the standard python location for headers in your system. Cheers, f
Hi! Indeed, I misunderstood documentation and installed only one package from two (Numeric and numarray). After installation of Numeric and devels for tcl and tk installation went smoothly. Thank you Alex Schwarzenberg-Czerny On 2005年8月30日, Fernando Perez wrote: > Aleksander Schwarzenberg-Czerny wrote: > > > src/_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory > > > Do I miss some required package? > > First, check whether you actually have numeric installed: > > planck[python]> python -c 'import Numeric;print Numeric.__version__' > 23.7 > > If that works, it means that you have installed the Numeric headers in some > non-standard location. On my system, they live in: > > planck[python]> locate arrayobject.h > /usr/include/python2.3/Numeric/arrayobject.h > > > I believe by default, distutils adds automatically /path/to/include/python to > the include file search path (via -I), but if you've installed Numeric in some > non-standard location, that automatic search may fail. I don't see > immediately a way to tell distutils to add specific extra paths, but there may > be one. The cheap fix is to copy the Numeric/*.h directory over to the > standard python location for headers in your system. > > Cheers, > > f >