Inkscape.org
Beyond the Basics Cannot save file as lottie/JSON using TGS/lottie extension
  1. #1
    Sayse Sayse @Sayse

    I'm having trouble using the TGS/Lottie import/export extension by @mattia.basaglia on my windows 10 machine.  Whenever I try to save as a lottie, I get:

    Traceback (most recent call last):
      File "C:\Users\Me\AppData\Roaming\inkscape\extensions\tgs_output.py", line 52, in <module>
        import lottie
    ModuleNotFoundError: No module named 'lottie'
    

    I uninstalled and reinstalled the latest versions of Inkscape, Python, and the Lottie Python Module.  Inkscape and Python are added to PATH.  Still can't get it to work.

    When I try to save it, it asks for the path to the tgs installation path, which I'm assuming is

    C:\Users\Me\AppData\Local\Programs\Python\Python310\Lib\site-packages\

    or

    C:\Users\Me\AppData\Local\Programs\Python\Python310\Lib\site-packages\lottie\

    I've tried both and a few others.  Can't get it to work.
    Does anyone know what could be going wrong or going on?

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    I would try contacting the developer: https://gitlab.com/mattbas/python-lottie/-/issues

  3. #3
    Mattia Basaglia Mattia Basaglia @mattia.basaglia

    You do need to install `lottie` as a python package. if it's installed in Python310\Lib\site-packages that should work. it's a pure python package so it can be anywhere

    Also make sure you have the latest version of the addon, for some reason I can't manage to update the addon page on inkscape's website to you have to download it from here: https://gitlab.com/mattbas/python-lottie/-/releases

  4. #4
    Sayse Sayse @Sayse

    Updating to the latest version of the addon solved my issue.  Thank you! 

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Cannot save file as lottie/JSON using TGS/lottie extension