While matplotlib compiles fine with lower versions of pyparsing, some functions (at least savefig() when using mathtext) cause runtime errors that disappear after uprading to pyparsing-1.5.1. Normal plots (something like "show(plot(linspace(0,2*pi,100)))") still worked, though. If requested, I will post a test script. Reproducible: Always Steps to Reproduce: 1. emerge =dev-python/matplotlib-0.98.5.2-r1 with <dev-python/pyparsing-1.5.1 2. plot something with a mathtext label (r'$blah$') and save a figure with savefig() Actual Results: Traceback (most recent call last): File "signals.py", line 49, in <module> savefig(fname, dpi=150, papertype='a5', format='eps') File "//usr/lib64/python2.5/site-packages/matplotlib/pyplot.py", line 345, in savefig return fig.savefig(*args, **kwargs) File "//usr/lib64/python2.5/site-packages/matplotlib/figure.py", line 990, in savefig self.canvas.print_figure(*args, **kwargs) File "//usr/lib64/python2.5/site-packages/matplotlib/backend_bases.py", line 1419, in print_figure **kwargs) File "//usr/lib64/python2.5/site-packages/matplotlib/backend_bases.py", line 1308, in print_eps return ps.print_eps(*args, **kwargs) File "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_ps.py", line 869, in print_eps return self._print_ps(outfile, 'eps', *args, **kwargs) File "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_ps.py", line 895, in _print_ps orientation, isLandscape, papertype) File "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_ps.py", line 969, in _print_figure self.figure.draw(renderer) File "//usr/lib64/python2.5/site-packages/matplotlib/figure.py", line 772, in draw for a in self.axes: a.draw(renderer) File "//usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 1601, in draw a.draw(renderer) File "//usr/lib64/python2.5/site-packages/matplotlib/axis.py", line 710, in draw tick.draw(renderer) File "//usr/lib64/python2.5/site-packages/matplotlib/axis.py", line 193, in draw self.label1.draw(renderer) File "//usr/lib64/python2.5/site-packages/matplotlib/text.py", line 452, in draw bbox, info = self._get_layout(renderer) File "//usr/lib64/python2.5/site-packages/matplotlib/text.py", line 253, in _get_layout clean_line, self._fontproperties, ismath=ismath) File "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_ps.py", line 308, in get_text_width_height_descent self.mathtext_parser.parse(s, 72, prop) File "//usr/lib64/python2.5/site-packages/matplotlib/mathtext.py", line 2806, in parse self.__class__._parser = Parser() File "//usr/lib64/python2.5/site-packages/matplotlib/mathtext.py", line 2096, in __init__ start_group = (Optional(latexfont) - lbrace) TypeError: unsupported operand type(s) for -: 'Optional' and 'Suppress' Expected Results: The figure should have been saved. emerge --info: Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5 Timestamp of tree: Fri, 23 Jan 2009 21:45:02 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r7 dev-util/cmake: 2.4.8 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/share/config/kdm /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon64 -pipe -msse3" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FEATURES="buildpkg collision-protect distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.muntinternet.net/pub/gentoo/" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en_US en en_GB de" MAKEOPTS="-s -j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/pcsx2-overlay /usr/portage/local/layman/science /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac aalib accessibility acl acpi alsa amd64 audiofile avahi bash-completion berkdb blas branding bzip2 cairo caps cdda cdinstall cdr chipcard cjk cli consolekit cracklib crypt css cups dbus dga djvu dri dssi dts dvd dvdr dvdread dvi encode exif fbcon ffmpeg fftw flac fortran ftp fuse gdbm gif gimp glitz glut gmp gnuplot gnutls gpm gtk hal hbci iconv idn imlib ipv6 isdnlog jack java jpeg jpeg2k kde kipi ladspa lapack lash latex lcms libcaca libnotify libsamplerate lm_sensors logitech-mouse logrotate mad matroska midi mikmod mjpeg mmx mmxext mng modplug mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses nfs nls nntp nptl nptlonly nsplugin nvidia offensive ogg openal openexr opengl openmp pam pcre pdf perl plotutils png ppds pppd python qt3 qt4 quicktime rar readline reflection rtsp samba sasl sdl session sid slang slp smp sndfile speex spell spl sse sse2 ssl startup-notification svg sysfs taglib tcpd theora threads tiff timidity truetype unicode usb vcd vim-syntax visualization vorbis wma x264 xattr xcb xcomposite xface xft xml xorg xpm xscreensaver xulrunner xv xvid xvmc zeroconf zlib zsh-completion" ALSA_CARDS="ice1724 hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en en_GB de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
+ 25 Jan 2009; Patrick Lauer <patrick@gentoo.org> + +matplotlib-0.98.5.2-r2.ebuild: + Fixing pyparsing dep, closes #256256