LaTeXText icon indicating copy to clipboard operation
LaTeXText copied to clipboard

ModuleNotFoundError: No module named 'gi'

Open phongnhhn92 opened this issue 5 years ago • 1 comments

Hello, I have been trying to use this plugin with Inkscape but when I receive this error:

Traceback (most recent call last):
  File "latextext_gtk3.py", line 6, in <module>
    import gi
ModuleNotFoundError: No module named 'gi'

image

I have tried to import in my terminal and gi can be imported. image

Please help me !

phongnhhn92 avatar Jun 24 '20 08:06 phongnhhn92

Hi,

As far as I know, this extension requires Python 2.7 and is currently only available for Inkscape version 0.92.5 or below. So you would have to check if gi can be imported in Python 2.7 instead. And check your Inkscape version if it is correct. Finally, I see you use Anaconda environment. LaTeXText will use system-wide Python 2.7, not an Anaconda environment.

andrek10 avatar Jun 24 '20 08:06 andrek10