Re: [MathDOM] MathDOM 0.8 won't start
Brought to you by:
scoder
|
From: Stefan B. <ste...@be...> - 2008-12-19 14:24:26
|
Hi,
sorry for the late reply.
Mario Ceresa wrote:
> I have a problem after I just downloaded and installed MathDOM 0.8.
>
> I tried to do:
>
> from mathml.lmathdom import MathDOM
>
> but it crashes with:
> /usr/lib/python2.5/site-packages/mathdom-0.8-py2.5.egg/mathml/termparser.py
> in p_case(self, p_arithmetic_exp, p_bool_expression)
> 289 Suppress(CaselessKeyword('END'))
> 290 )
> --> 291 p_case.setParseAction(self._parse_case)
> 292 return p_case
> 293
>
> AttributeError: 'NoneType' object has no attribute 'setParseAction'
> ________________________________________________________________
>
> It seems to me related to these warning that I receive just before the
> exception is thrown:
>
> /usr/lib/python2.5/site-packages/mathdom-0.8-py2.5.egg/mathml/termparser.py:288:
> SyntaxWarning: Cannot combine element of type <type 'NoneType'> with
> ParserElement
> Suppress(CaselessKeyword('ELSE')) + p_arithmetic_exp +
> /usr/lib/python2.5/site-packages/mathdom-0.8-py2.5.egg/mathml/termparser.py:289:
> SyntaxWarning: Cannot combine element of type <type 'NoneType'> with
> ParserElement
> Suppress(CaselessKeyword('END'))
I just tested and it works for me with pyparsing 1.4.2. What version of
pyparsing are you using?
Stefan
|