Sunday, March 12, 2017

Fixing textext 0.4.4 in Inkscape 0.91 with OSX

textext is a great Inkscape extension that allows to incrustante LaTeX formulas in the drawings. However, it seems that textext was last updated in 2010 (v0.4.4) and since then some python calls to the md5 package have become deprecated.
This is obviously an issue for recent OS. 
Traceback (most recent call last):
  File "", line 210, in cb_ok
    self.callback(self.text, self.preamble_file, self.scale_factor)
  File "", line 369, in
    converter_cls, old_node))
  File "", line 387, in do_convert
    new_node = converter.convert(text, preamble_file, scale_factor)
  File "", line 879, in convert
    return PdfConverterBase.convert(self, *a, **kw)
  File "", line 750, in convert
    self.tex_to_pdf(latex_text, preamble_file)
  File "", line 727, in tex_to_pdf
    exec_command(['pdflatex', self.tmp('tex')] + latexOpts)
  File "", line 592, in exec_command
    raise RuntimeError("Command %s failed: %s" % (' '.join(cmd), e))
RuntimeError: Command pdflatex /var/folders/2y/h0000gn/T/tmpUcu75l/tmp.tex -interaction=nonstopmode -halt-on-error failed: [Errno 2] No such file or directory

No comments:

Post a Comment