Re: [MathDOM] MathDOM 0.8 won't start
Brought to you by:
scoder
From: Mario C. <mar...@to...> - 2008-12-20 11:11:34
|
Hello Stefan, thanks for your reply: I was using pyparsing 1.5.1 (last version) I downgraded to 1.4.2 and now it works! Thanks a lot Mario On Fri, Dec 19, 2008 at 3:24 PM, Stefan Behnel <ste...@be...> wrote: > 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 > |