seebk / LaTeXText

Inkscape extension to render text as Latex
GNU General Public License v3.0
140 stars 19 forks source link

ModuleNotFoundError: No module named 'gi' #32

Open phongnhhn92 opened 4 years ago

phongnhhn92 commented 4 years ago

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 !

andrek10 commented 4 years ago

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.