I have a problem mwith the installation of matplotlib under redhat 9 and
python 2.3.2. I first updated all relevant packages (see ).
Building matplotlib with default setup.py seemd to be ok, except two
types of warnings (see ). Install showed no errors as well.
When importing matplotlib I get the following error:
>>> from matplotlib import matlab
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "matplotlib/matlab.py", line 142, in ?
from axes import Axes
File "matplotlib/axes.py", line 9, in ?
from artist import Artist
File "matplotlib/artist.py", line 4, in ?
from transforms import identity_transform
File "matplotlib/transforms.py", line 180, in ?
from _transforms import Value, Point, Bbox, Affine
ImportError: No module named _transforms
What could be the problem?
The directory /usr/lib/python2.3/site-packages/matplotlib/
contains transforms.py and _transforms.so but no _transforms.py - is
Thanks for any help,
: zlib, zlib-devel, libpng, libpng-devel, freetype, freetype-devel,
freetype-utils, gtk2-devel, gtk+-devel, pygtk2, glib-devel,
pygtk2-devel, gnome-libs-devel, pygtk2-libglade,
tcl, tk, tkinter
: In file included from /usr/include/python2.3/Python.h:8,
/usr/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE"
In file included from
/usr/include/features.h:131:1: warning: this is the location of the
From: John Hunter <jdhunter@ac...> - 2004-08-02 16:02:08
>>>>> "Mathias" == Mathias Franzius <mathias.franzius@...> writes:
Mathias> Dear NG, I have a problem mwith the installation of
Mathias> matplotlib under redhat 9 and python 2.3.2. I first
Mathias> updated all relevant packages (see ). Building
Mathias> matplotlib with default setup.py seemd to be ok, except
Mathias> two types of warnings (see ). Install showed no errors
Mathias> as well. When importing matplotlib I get the following
The warnings you posted are completely harmless.
Mathias> What could be the problem? The directory
Mathias> /usr/lib/python2.3/site-packages/matplotlib/ contains
Mathias> transforms.py and _transforms.so but no _transforms.py -
Mathias> is that ok?
Yes, this is OK. There is no _transforms.py
My guess is you are trying to run matplotlib from the build dir. You
cannot do this, because python finds the matplotlib src dir named
matplotlib and tries to load that. There is no _transforms module in
that dir, but there is in site-packages so you should be OK. cd into
another directory, ie your home dir or the examples dir, and try from
This problem bites a number of users. Perhaps we should rename the
base matplotlib python dir in the src tree to something like