It's related to my recently updating pyparsing.py...  It seems that it 
isn't Python 2.4 compatible anymore.

I'd like to workaround the definiciences in the new pyparsing.py if I 
can (rather than simply revert) as the error messages are much more 
specific with the new version.

I have submitted a workaround to this specific problem.  Can you please 
let me know if it resolves your issue?

Mike

John Hunter wrote:
> On Wed, Jun 11, 2008 at 11:24 AM, Michael Droettboom <[EMAIL PROTECTED]> 
> wrote:
>   
>> Thanks.  Done.
>>     
>
> I wonder is there is some python 2.5 is creeping in somewhere.  I am
> experiencing the same mathtext problem I pointed out earlier:  This
> isn't related to your recent commit, but was introduced in r5380
>
>   934  rm -rf build ~/dev/lib/python2.4/site-packages/matplotlib*
>   935  sudo rm -rf build ~/dev/lib/python2.4/site-packages/matplotlib*
>   936  rm -rf ~/.matplotlib/fontManager.cache ~/.matplotlib/tex.cache/
> ~/.matplotlib/ttffont.cache
>   937  cd ~/python/svn/
>   938  make local_mpl
>   939  cd ~/mpl/examples/pylab_examples/
>   940  python mathtext_demo.py
>
> I'm going to dig into this, but just wanted to let you know in case
> something jumps out at you.
>
> Traceback (most recent call last):
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
> line 331, in expose_event
>     self._render_figure(self._pixmap, w, h)
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py",
> line 75, in _render_figure
>     FigureCanvasAgg.draw(self)
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py",
> line 256, in draw
>     self.figure.draw(self.renderer)
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/figure.py",
> line 825, in draw
>     for a in self.axes: a.draw(renderer)
>   File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/axes.py",
> line 1502, in draw
>     a.draw(renderer)
>   File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/axis.py",
> line 687, in draw
>     self.label.draw(renderer)
>   File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/text.py",
> line 298, in draw
>     bbox, info = self._get_layout(renderer)
>   File "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/text.py",
> line 197, in _get_layout
>     w, h, d = renderer.get_text_width_height_descent(
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/backends/backend_agg.py",
> line 134, in get_text_width_height_descent
>     ox, oy, width, height, descent, fonts, used_characters = \
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/mathtext.py",
> line 2714, in parse
>     box = self._parser.parse(s, font_output, fontsize, dpi)
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/mathtext.py",
> line 2188, in parse
>     self._expression.parseString(s)
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 1049, in parseString    loc, tokens = self._parse( instring, 0 )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2560, in parseImpl
>     return self.expr._parse( instring, loc, doActions, callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2308, in parseImpl
>     loc, exprtokens = e._parse( instring, loc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2673, in parseImpl
>     loc, tokens = self.expr._parse( instring, loc, doActions,
> callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2308, in parseImpl
>     loc, exprtokens = e._parse( instring, loc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2757, in parseImpl
>     loc, tokens = self.expr._parse( instring, loc, doActions,
> callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2707, in parseImpl
>     loc, tokens = self.expr._parse( instring, loc, doActions,
> callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2354, in parseImpl
>     loc2 = e.tryParse( instring, loc )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 967, in tryParse
>     return self._parse( instring, loc, doActions=False )[0]
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2560, in parseImpl
>     return self.expr._parse( instring, loc, doActions, callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2417, in parseImpl
>     ret = e._parse( instring, loc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2560, in parseImpl
>     return self.expr._parse( instring, loc, doActions, callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2560, in parseImpl
>     return self.expr._parse( instring, loc, doActions, callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2417, in parseImpl
>     ret = e._parse( instring, loc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2294, in parseImpl
>     loc, resultlist = self.exprs[0]._parse( instring, loc, doActions,
> callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2757, in parseImpl
>     loc, tokens = self.expr._parse( instring, loc, doActions,
> callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2560, in parseImpl
>     return self.expr._parse( instring, loc, doActions, callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2354, in parseImpl
>     loc2 = e.tryParse( instring, loc )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 967, in tryParse
>     return self._parse( instring, loc, doActions=False )[0]
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2560, in parseImpl
>     return self.expr._parse( instring, loc, doActions, callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2294, in parseImpl
>     loc, resultlist = self.exprs[0]._parse( instring, loc, doActions,
> callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2294, in parseImpl
>     loc, resultlist = self.exprs[0]._parse( instring, loc, doActions,
> callPreParse=False )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 982, in _parseCache
>     value = self._parseNoCache( instring, loc, doActions, callPreParse )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 925, in _parseNoCache
>     loc,tokens = self.parseImpl( instring, preloc, doActions )
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 2304, in parseImpl
>     raise ParseSyntaxException(pe)
>   File 
> "/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/pyparsing.py",
> line 216, in __init__
>     super(ParseSyntaxException, self).__init__(
> TypeError: super() argument 1 must be type, not classobj
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to