Skip to content

Error when using your code #3

@shougroup

Description

@shougroup

Thanks for writing a much-needed extension. However, when we installed and used it in Windows 10, we encountered a problem. We moved the INX and PY files to C:\Program Files\Inkscape\share\inkscape\extensions, and installed pdf2svg-x64 to C:\Program Files, and added the PATH environmental variable.

When we tried to render LaTex, we got this error (a similar error also occured in Mac)

DeprecationWarning: Effect.OptionParser or optparse has been deprecated and replaced with argparser. You must change self.OptionParser.add_option to self.arg_parser.add_argument; the arguments are similar.
self.OptionParser.add_option("-l", "--latexcmd",
C:\Program Files\Inkscape\share\inkscape\extensions\writetex2.py:320: DeprecationWarning: Effect.affect is now Effect.run(). The output argument has changed.
e.affect()
C:\Program Files\Inkscape\share\inkscape\extensions\writetex2.py:71: DeprecationWarning: Effect.selected is now a dict in the SvgDocumentElement class. Use self.svg.selected.
if len(self.selected) == 0:
C:\Program Files\Inkscape\share\inkscape\extensions\writetex2.py:74: DeprecationWarning: Effect.selected is now a dict in the SvgDocumentElement class. Use self.svg.selected.
node = self.selected[i]
Traceback (most recent call last):
File "C:\Program Files\Inkscape\share\inkscape\extensions\writetex2.py", line 320, in
e.affect()
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\deprecated\deprecatedeffect.py", line 220, in affect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions