Sorry for the preceding mis-threaded version. Here it is again : I dont know if it is related, but I am actually failing an exemple : [EMAIL PROTECTED] matplotlib]$ ipython examples/pstest.py --------------------------------------------------------------------------- ImportError Traceback (most recent call last)
/home/cohen/data1/sources/python/matplotlib-svn/matplotlib/examples/pstest.py in <module>() 2 import matplotlib 3 matplotlib.use('PS') ----> 4 from pylab import * 5 6 def f(t): /usr/lib/python2.5/site-packages/pylab.py in <module>() ----> 1 2 3 from matplotlib.pylab import * 4 import matplotlib.pylab 5 __doc__ = matplotlib.pylab.__doc__ /usr/lib/python2.5/site-packages/matplotlib/pylab.py in <module>() 201 from numpy import ma 202 --> 203 from matplotlib import mpl # pulls in most modules 204 205 # catch more than an import error here, since the src could fail too, /usr/lib/python2.5/site-packages/matplotlib/mpl.py in <module>() 1 ----> 2 from matplotlib import artist 3 from matplotlib import axis 4 from matplotlib import axes 5 from matplotlib import cbook 6 from matplotlib import collections /usr/lib/python2.5/site-packages/matplotlib/axis.py in <module>() 12 from ticker import NullLocator, FixedLocator, AutoLocator 13 ---> 14 from font_manager import FontProperties 15 from text import Text, TextWithDash 16 from transforms import Affine2D, Bbox, blended_transform_factory, \ /usr/lib/python2.5/site-packages/matplotlib/font_manager.py in <module>() 38 import matplotlib 39 from matplotlib import afm ---> 40 from matplotlib import ft2font 41 from matplotlib import rcParams, get_configdir 42 from matplotlib.cbook import is_string_like ImportError: /usr/lib/python2.5/site-packages/matplotlib/ft2font.so: undefined symbol: inflateReset My config is : ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98pre python: 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] platform: linux2 REQUIRED DEPENDENCIES numpy: 1.1.0.dev5077 freetype2: 9.16.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.22 Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: 2.8.4.0 * WxAgg extension not required for wxPython >= 2.8 Gtk+: gtk+: 2.12.5, glib: 2.14.6, pygtk: 2.12.0, pygobject: 2.14.0 Qt: Qt: 3.3.8, PyQt: 3.17.4 Qt4: Qt: 4.3.3, PyQt4: 4.3.3 Cairo: 1.4.12 OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: 1.5 ghostscript: 8.61 latex: 3.141592 EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: matplotlib will provide best, Johann Johann Cohen-Tanugi wrote: > 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 >> Matplotlib-users@lists.sourceforge.net >> 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 > Matplotlib-users@lists.sourceforge.net > 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 Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users