2013-08-20 20:34:53 |
Patrick Wang |
description |
Environment: RHEL 6, Inkscape is installed w/ Gentoo Prefix (also is python-2.7.5)
When using Extensions->Render->LaTeX Formular, I got
'builtin_function_or_method' object has no attribute 'rsplit'
at line 72 in eqtexsvg.py
A workaround is to make such a modification, from:
c_tag = c.tag.rsplit('}',1)[-1]
to:
c_tag = str(c.tag).rsplit('}',1)[-1]
which makes the extension works normally.
I guess it is, prospectively, safer not to convert c.tag into a string using str(), but to guarantee that itself is a string... |
Environment: RHEL 6, Inkscape is installed w/ Gentoo Prefix (also is python-2.7.5)
When using Extensions->Render->LaTeX Formular, I got
'builtin_function_or_method' object has no attribute 'rsplit'
at line 72 in eqtexsvg.py
A workaround is to make such a modification, from:
c_tag = c.tag.rsplit('}',1)[-1]
to:
c_tag = str(c.tag).rsplit('}',1)[-1]
which makes the extension work normally.
I guess it is, prospectively, safer not to convert c.tag into a string using str(), but to guarantee that itself is a string... |
|