Hi, I am trying to install matplotlib 0.90.1.  I have python 2.5 on a fresh
Mandriva 2007.1 installation.  I have installed numpy and scipy - I think
these are ok, they both import and the tests were largely successful.  I
believe I have all the background packages installed -

   - matplotlib core: zlib, zlib-devel, libpng, libpng-devel, freetype,
   freetype-devel, freetype-utils
   - gtk/gtkagg backend: gtk2-devel, gtk+-devel, pygtk2, glib-devel,
   pygtk2-devel, gnome-libs-devel, pygtk2-libglade
   - tk backend: tcl, tk, tkinter
   - wx/wxagg backends - the wxpython rpms from
wxpython<http://wxpython.org%3c/a>

apart from freetype-utils which I have not been able to find.


With mpl I get the following, having set the path like this:

In [2]: sys.path
Out[2]:
['',
 '/usr/bin',
 '/home/emason',
 '/usr/lib/python2.5/site-packages/numpy/lib',
 '/usr/lib/python2.5/site-packages/scipy/lib',
 '/usr/lib/python25.zip',
 '/usr/lib/python2.5',
 '/usr/lib/python2.5/plat-linux2',
 '/usr/lib/python2.5/lib-tk',
 '/usr/lib/python2.5/lib-dynload',
 '/usr/lib/python2.5/site-packages',
 '/usr/lib/python2.5/site-packages/Numeric',
 '/usr/lib/python2.5/site-packages/PIL',
 '/usr/lib/python2.5/site-packages/gtk-2.0',
 '/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode',
 '/usr/lib/python2.5/site-packages/IPython/Extensions',
 '/home/emason/.ipython']
[for PYTHONPATH in .bashrc I defined the paths to numpy/lib and scipy/lib; I
don't know if this is necessary, in any event it made no difference with
these not defined]

When I then try to build I get:

[EMAIL PROTECTED] matplotlib-0.90.1]# python setup.py build
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-i686-2.5
/matplotlib/mpl-data
running build_ext
building 'matplotlib._nc_transforms' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fomit-frame-pointer -march=i586
-mtune=generic -fasynchronous-unwind-tables -g -fPIC -Isrc -I.
-I/usr/local/include -I/usr/include -I. -I/usr/include/python2.5 -c
src/_nc_transforms.cpp -o build/temp.linux-i686-2.5/src/_nc_transforms.o
-DNUMERIC=1 -DVERBOSE
src/_nc_transforms.cpp:13:40: error: Numeric/arrayobject.h: No such file or
directory
src/_nc_transforms.cpp: In member function 'Py::Object
Bbox::update_numerix_xy(const Py::Tuple&)':
src/_nc_transforms.cpp:517: error: 'PyArrayObject' was not declared in this
scope
src/_nc_transforms.cpp:517: error: 'xyin' was not declared in this scope
src/_nc_transforms.cpp:517: error: expected primary-expression before ')'
token
src/_nc_transforms.cpp:517: error: expected `;' before 'PyArray_FromObject'
src/_nc_transforms.cpp: In member function 'Py::Object
Bbox::update_numerix(const Py::Tuple&)':
src/_nc_transforms.cpp:586: error: 'PyArrayObject' was not declared in this
scope

[snip]

src/_nc_transforms.cpp:1275: error: 'retmask' was not declared in this scope
src/_nc_transforms.cpp:1278: error: expected primary-expression before ')'
token
src/_nc_transforms.cpp:1278: error: expected `;' before 'PyArray_FromDims'
src/_nc_transforms.cpp: In function 'void init_nc_transforms()':
src/_nc_transforms.cpp:2428: error: 'import_array' was not declared in this
scope
error: command 'gcc' failed with exit status 1
[EMAIL PROTECTED] matplotlib-0.90.1]#


It seems to trip up when expecting a file 'arrayobject.h' in the /Numeric
directory; indeed that file is not there, though Numeric is on the path.
Numeric came as part of the Mandriva install.

I'd be grateful for any help with this, thanks in advance, Evan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to