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.
This is obviously an issue for recent OS.
- The md5 error is fixed by changing said package with hashlib as indicated in this post: https://laconsigna.wordpress.com/2010/11/13/fixing-textext-on-inkscape-0-48
- But there is also an issue (reported below) related to the location of pdflatex. In my system MacTeX left it in /Library/TeX/texbin/pdflatex, but Inkscape wasn't able to find it there. So the solution was to create a symbolic link in /urs/local/bin
File "textext.py", line 210, in cb_ok
self.callback(self.text, self.preamble_file, self.scale_factor)
File "textext.py", line 369, in
converter_cls, old_node))
File "textext.py", line 387, in do_convert
new_node = converter.convert(text, preamble_file, scale_factor)
File "textext.py", line 879, in convert
return PdfConverterBase.convert(self, *a, **kw)
File "textext.py", line 750, in convert
self.tex_to_pdf(latex_text, preamble_file)
File "textext.py", line 727, in tex_to_pdf
exec_command(['pdflatex', self.tmp('tex')] + latexOpts)
File "textext.py", 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