pysd library ParseError
<p>I'm using a library called <code>pysd</code> to translate <code>vensim</code> files to Python, but when I try to do it (library functions) I get a parse error but don't understand what it means.</p>

<p>This is my log.</p>

<hr>

<pre class="lang-none prettyprint-override"><code>ParseError                                Traceback (most recent call last)
&lt;ipython-input-1-9b0f6b9bac1f&gt; in &lt;module&gt;()
      1 get_ipython().magic(u'pylab inline')
      2 import pysd
----&gt; 3 model = pysd.read_vensim('201520_1A_Volare_Ev.Tecnica.itmx')

/Library/Python/2.7/site-packages/pysd/pysd.pyc in read_vensim(mdl_file)
     45     """
     46     from .vensim2py import translate_vensim
---&gt; 47     py_model_file = translate_vensim(mdl_file)
     48     model = PySD(py_model_file)
     49     model.mdl_file = mdl_file

/Library/Python/2.7/site-packages/pysd/vensim2py.pyc in translate_vensim(mdl_file)
    651     for section in file_sections:
    652         if section['name'] == 'main':
--&gt; 653             model_elements += get_model_elements(section['string'])
    654
    655     # extract equation components

/Library/Python/2.7/site-packages/pysd/vensim2py.pyc in get_model_elements(model_str)
    158     """
    159     parser = parsimonious.Grammar(model_structure_grammar)
--&gt; 160     tree = parser.parse(model_str)
    161
    162     class ModelParser(parsimonious.NodeVisitor):

/Library/Python/2.7/site-packages/parsimonious/grammar.pyc in parse(self, text, pos)
    121         """
    122         self._check_default_rule()
--&gt; 123         return self.default_rule.parse(text, pos=pos)
    124
    125     def match(self, text, pos=0):

/Library/Python/2.7/site-packages/parsimonious/expressions.pyc in parse(self, text, pos)
    108
    109         """
--&gt; 110         node = self.match(text, pos=pos)
    111         if node.end &lt; len(text):
    112             raise IncompleteParseError(text, node.end, self)

/Library/Python/2.7/site-packages/parsimonious/expressions.pyc in match(self, text, pos)
    125         node = self.match_core(text, pos, {}, error)
    126         if node is None:
--&gt; 127             raise error
    128         return node
    129

ParseError: Rule 'escape_group' didn't match at '' (line 1, column 20243).
</code></pre>

<p><code>.itmx</code> is an iThink extension, which unfortunately PySD doesn't support (yet). In the future, we'll work out a conversion pathway that lets you bring these in. </p>

python