Skip to content

Issues installing on platform running Python3 ( Text with Latex [GTK3] ) #40

@Zipgit

Description

@Zipgit

Attempting to solve some problems with installing on Linux x86_64 debian (Mint).

  1. instructions don't seem to indicate that the package should be unzipped into the ~/.config/inkscape/extensions directory (eventually figured this out, and solved it)
  2. the Extension, as delivered, is **not set up to run with Python3** (which is current, and so it seems that this Extension is not up to date)
  3. Solved some installation problems by editing the install.sh file, changing "python" to "python3"
  4. Multiple errors generated when calling the Extension within Inkscape; here are some generated from the latextext.py program:
/home/username/.config/inkscape/extensions/LaTeXText-master/extension/latextext.py:472: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if self.options.math and latex_string[0] is not '$':

/home/username/.config/inkscape/extensions/LaTeXText-master/extension/latextext.py:639: 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.


  add_options(self.OptionParser)
/home/username/.config/inkscape/extensions/LaTeXText-master/extension/latextext.py:640: 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.set_conflict_handler("resolve")
Traceback (most recent call last):
  File "/home/username/.config/inkscape/extensions/LaTeXText-master/extension/latextext_gtk3.py", line 176, in <module>
    effect = RenderLatexEffectGTK3()
  File "/home/username/.config/inkscape/extensions/LaTeXText-master/extension/latextext.py", line 640, in __init__
    self.OptionParser.set_conflict_handler("resolve")
AttributeError: 'RenderLatexEffectGTK3' object has no attribute 'set_conflict_handler'

I was able to fix some of these errors, but other persist (due to my poor python3 skills, I guess)

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