I've just installed matplotlib on a 64 bit server running Suse Linux Enterprise Server 9. I followed the instructions on the Installing section from the webpage and everything seemed to install fine using the defaults. I installed the latest version of Numpy, 1.0.1, then proceeded to install matplotlib. (I had the devel packages of freetype, libpng, and zlib installed.) I don't need a GUI Backend so I wasn't worried about getting them installed properly. Everything seems fine, I can import numpy and matplotlib into python. However, I run into this problem when trying to do an import. Here's the sample code:
#!/usr/bin/env python import os import tempfile import matplotlib matplotlib.use('Agg') # force the antigrain backend from matplotlib import rc from matplotlib.backends.backend_agg import FigureCanvasAgg from matplotlib.figure import Figure from matplotlib.cbook import iterable import matplotlib.numerix as nx ***snip*** And here is the output: $ python test_matlib.py The import of the numpy version of the _image module, _ns_image, failed. This is is either because numpy was unavailable when matplotlib was compiled, because a dependency of _ns_image could not be satisfied, or because the build flag for this module was turned off in setup.py. If it appears that _ns_image was not built, make sure you have a working copy of numpy and then re-install matplotlib. Otherwise, the following traceback gives more details: Traceback (most recent call last): File "test_matlib.py", line 7, in ? from matplotlib.backends.backend_agg import FigureCanvasAgg File "/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_agg. py", line 77, in ? from matplotlib._image import fromarray File "/usr/local/lib/python2.3/site-packages/matplotlib/_image.py", line 17, in ? from matplotlib._ns_image import * ImportError: /usr/local/lib/python2.3/site-packages/matplotlib/_ns_image.so: undefined symbol: _ZNSs4_Rep20_S_empty_rep_storageE $ It seems like it's something very simple, but I can't seem to find what went wrong. Anybody have any ideas?? Thanks Josh -------------------------------------------------------- Information in this e-mail may be confidential. It is intended only for the addressee(s) identified above. If you are not the addressee(s), or an employee or agent of the addressee(s), please note that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender of the error. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users