[MathDOM] MathDOM 0.8 won't start
Brought to you by:
scoder
From: Mario C. <mar...@to...> - 2008-12-06 20:00:39
|
Hello, 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: __________________________________________________________ AttributeError Traceback (most recent call last) /home/whitehat/<ipython console> in <module>() /usr/lib/python2.5/site-packages/mathdom-0.8-py2.5.egg/mathml/lmathdom.py in <module>() 35 36 from mathml import MATHML_NAMESPACE_URI, UNARY_FUNCTIONS ---> 37 from mathml.xmlterm import SaxTerm, dom_to_tree, serialize_dom 38 from mathml.datatypes import Decimal, Complex, Rational, ENotation 39 /usr/lib/python2.5/site-packages/mathdom-0.8-py2.5.egg/mathml/xmlterm.py in <module>() 79 80 from mathml import MATHML_NAMESPACE_URI ---> 81 from mathml.termparser import term_parsers 82 from mathml.termbuilder import tree_converters 83 /usr/lib/python2.5/site-packages/mathdom-0.8-py2.5.egg/mathml/termparser.py in <module>() 537 term_parsers = TermParsing() 538 --> 539 parser = InfixTermParser().p_arithmetic_exp() 540 term_parsers.register_converter('infix_bool', InfixBoolExpressionParser().p_bool_exp()) 541 term_parsers.register_converter('infix_term', parser) /usr/lib/python2.5/site-packages/mathdom-0.8-py2.5.egg/mathml/termparser.py in __get__(self, instance, owner) 69 if instance is None: 70 return self ---> 71 result = self.function(instance) 72 def return_result(): 73 return result /usr/lib/python2.5/site-packages/mathdom-0.8-py2.5.egg/mathml/termparser.py in p_arithmetic_exp(self) 267 p_identifier = self.tokenizer.p_identifier() 268 p_function = self.p_function(p_arithmetic_exp) --> 269 p_case = self.p_case(p_arithmetic_exp, self.p_bool_expression) 270 271 # numeric values = attribute | number | expression /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')) But I don't know how to move on... Any help is greatly appreciated Thanks Mario |