hmm, I did not use matplotlib recently, but looking at the library, I
would guess that I have the same issue :
[EMAIL PROTECTED] ~]$ ldd /usr/lib/python2.5/site-packages/matplotlib/ttconv.so
linux-gate.so.1 => (0x00110000)
libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0x001c1000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00308000)
libm.so.6 => /lib/libm.so.6 (0x0011f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00148000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00154000)
libc.so.6 => /lib/libc.so.6 (0x003f3000)
libdl.so.2 => /lib/libdl.so.2 (0x0016d000)
libutil.so.1 => /lib/libutil.so.1 (0x00172000)
/lib/ld-linux.so.2 (0x001a4000)
[EMAIL PROTECTED] ~]$ nm
/usr/lib/python2.5/site-packages/matplotlib/ttconv.so | grep
_ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE
U
_ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4
Arthur M. Greene wrote:
> Hello Matplotlib users,
>
> I'm having difficulty generating postscript, and receiving an error that
> I'm guessing reflects a version conflict, but I'm not sure exactly which
> version of what needs to be changed. If I generate a plot (backend is
> QtAGG, so I get a window), then click on the save button, I get a dialog
> saying:
>
> /path_to/matplotlib/ttconv.so: undefined symbol:
> _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE
>
> Alternatively, if I do
>
> import matplotlib; matplotlib.use('PS'); from pylab import *
>
> the result is as follows (essentially the same error):
>
> exceptions.ImportError
> Traceback (most recent call last)
>
> /home/amg/<ipython console>
>
> /home/amg/cdat4_1/lib/python2.4/site-packages/pylab.py
> ----> 1 from matplotlib.pylab import *
> 2 import matplotlib.pylab
> 3 __doc__ = matplotlib.pylab.__doc__
>
> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pylab.py
> 290
> 291
> --> 292 from matplotlib.pyplot import *
> 293
> 294
>
> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/pyplot.py
> 35
> 36 from matplotlib.backends import pylab_setup
> ---> 37 new_figure_manager, draw_if_interactive, show = pylab_setup()
> 38
> 39 def switch_backend(newbackend):
>
> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/__init__.py
> in pylab_setup()
> 22 backend_name = 'backend_'+backend.lower()
> 23 backend_mod = __import__('matplotlib.backends.'+backend_name,
> ---> 24 globals(),locals(),[backend_name])
> 25
> 26 # Things we pull in from all backends
>
> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/backends/backend_ps.py
>
>
> 22 from matplotlib.font_manager import findfont,
>
> is_opentype_cff_font
> 23 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT,
>
> LOAD_NO_HINTING
> ---> 24 from matplotlib.ttconv import convert_ttf_to_ps
> 25 from matplotlib.mathtext import MathTextParser
> 26 from matplotlib._mathtext_data import uni2type1
>
> ImportError:
> /home/amg/cdat4_1/lib/python2.4/site-packages/matplotlib/ttconv.so:
> undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE
>
> (The above backtrace is from iPython, but I get the same thing running
> from plain ol' Python.)
>
> Googling suggests that this might mean I have a version of Matplotlib
> that is too recent for the g++ compiler on my system, but I'm not really
> certain. I'm running as an unprivileged user on RHEL4, with most of the
> necessary libraries already present on the system. I've only had to add
> qt and PyQt, which are installed in my home directory, where Matplotlib
> can apparently find them. Version info is as follows:
>
> These are locally installed:
> Python 2.4
> qt-3.3.8b
> PyQt-3.17.4
> Matplotlib-0.91.2
>
> The following were already present:
> Kernel: 2.6.9-67.0.1.ELsmp, on i686
> glibc-2.3.4-2.39
> gcc-3.4.6-9
> tcl-8.4.7-2
> tk-8.4.7-3.el4_6.1
> freetype-2.1.9-6.el4
> libpng-1.2.7-3.el4_5.1
> zlib-1.2.1.2-1.2
> ghostscript-7.07-33.2.el4_6.1
> Output of 'gs --version': 8.50
>
> I tried switching to qt4/PyQt4, but then ipython -pylab hangs...
>
> Not sure what other info to supply; suggestions appreciated.
>
> Thanks!
>
> Arthur
>
> -------------------------------
> amg -at- iri -dot- columbia -dot- edu
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users