Skip to content

Export to lottie format error #993

Open

Description

@ebarranco

Synfig version & platform:
Master
Linux
Issue description:
It is my first time trying to use this feature.

  1. I do a simple animation or use the sample file from the video demonstration
  2. I go to the menu Plug-Ins -> Export to Lottie format
  3. Synfig shows me this error:
synfig(20754) [08:20:45 PM] info: Python 3 binary found: python
synfig(20754) [08:20:47 PM] info: Traceback (most recent call last):
  File "/home/ebarranko/synfig.git/_production/build/share/synfig/plugins/lottie-exporter/lottie-exporter.py", line 15, in <module>
    from lxml import etree
ModuleNotFoundError: No module named 'lxml'

You can see the video here

Activity

  1. AnishGG commented on Oct 31, 2019

    @AnishGG
    Member

    This is unexpected behaviour as we are installing the lxml library for linux here:

    libxslt-devel python-devel python3-lxml\

    I am not sure what the problem is, @morevnaproject could you have a look please.
    @ebarranco in the mean time you can install lxml manually.
    You can refer to this documentation: https://lxml.de/installation.html

  2. ebarranco commented on Oct 31, 2019

    @ebarranco
    Author

    @AnishGG @morevnaproject I deleted my git folder and the Setup Script doesn't install lxml, I did it manually and my test animation still doesn't work, it has advance outline, but the example files works now as expected. Thanks

  3. AnishGG commented on Oct 31, 2019

    @AnishGG
    Member

    Advance outline is not supported yet. But the setup script should have installed lxml. I will have a look into it.

  4. ice0 commented on Oct 31, 2019

    @ice0
    Collaborator

    @ebarranco Which Linux you are using? Arch, Manjaro? As i see install script doesn't install python3-lxml for Linux with pacman package manager.

  5. ebarranco commented on Oct 31, 2019

    @ebarranco
    Author

    It's correct @ice0 I'm using pacman package manager and I use Manjaro Linux.

  6. ice0 commented on Nov 1, 2019

    @ice0
    Collaborator

    Ok, i fixed the installation script (#994), wait until @morevnaproject will review it.

  7. ebarranco commented on Nov 17, 2019

    @ebarranco
    Author

    I tested this in a new system and it works now. Thanks.

  8. hexemeister commented on Jan 28, 2021

    @hexemeister

    Having same issue here. Pop OS 20.10
    image

  9. ice0 commented on Jan 29, 2021

    @ice0
    Collaborator

    @hexemeister Hi! Are you using Flatpak version?

  10. reopened this on Jan 29, 2021
  11. hexemeister commented on Jan 29, 2021

    @hexemeister

    Actually, I tried both versions, appimage and flatpak. Screenshot above is from Flatpak version. Appimage version erros as shown.

    image

  12. jonaspereirar commented on Feb 7, 2021

    @jonaspereirar

    Hello! I made a donation of order # 22846152, and I want to do much more! I can only thank you for this wonderful software. i'm getting problems with lxml, synfig can't find it, but i already have the modules with python. I have linux focal 20.04 and the synfig is 1.4.0
    Thank you so much

    Issue synginf

  13. rodolforg commented on Feb 7, 2021

    @rodolforg
    Contributor

    I have linux focal 20.04 and the synfig is 1.4.0

    @jonaspereirar
    Are you using from Ubuntu official repositories or from AppImage or Flatpak images?

  14. jonaspereirar commented on Feb 10, 2021

    @jonaspereirar

    @rodolforg I'm using official ubuntu image! I installed it outside the official ubuntu images and got a lot more errors just like @hexemeister! so I opted for the official images

  15. 16 remaining items

  16. rodolforg commented on Jun 6, 2021

    @rodolforg
    Contributor

    But only for unsaved files, right?

    So it's probably something related to AppImage itself. I don't know how it works, but maybe this is related: AppImage/AppImageKit#191 ?

  17. AnishGG commented on Jun 8, 2021

    @AnishGG
    Member

    @rodolforg would you happen to have any simple example for this:

    Full ID string format would be something like
    [[file-path]#][canvas-id:][child-canvas-id:][child-canvas-id:]…value-node-id

    I tried using the examples from Link, but most of them use pasteCanvas and other layers which are not yet supported by the Lottie exporter. And I am not sure how to make such an example.

  18. rodolforg commented on Jun 8, 2021

    @rodolforg
    Contributor

    Aren't group layers supported? Ok

    Are link to external files supported?

    Anyway, I think it could already support that defs may contain canvas and nodes.

    Examples:
    path/to/file#my_value
    path/to/file#:my_value

    my_value
    :my_value

    :an_exported_canvas:a_value
    an_exported_canvas:a_value

  19. AnishGG commented on Jun 8, 2021

    @AnishGG
    Member

    Aren't group layers supported? Ok

    Are link to external files supported?

    Anyway, I think it could already support that defs may contain canvas and nodes.

    Examples:
    path/to/file#my_value
    path/to/file#:my_value

    my_value
    :my_value

    :an_exported_canvas:a_value
    an_exported_canvas:a_value

    Group layers are supported, yes. By examples, I meant any .sif file, which I can use for testing purposes.
    But thank you anyways for this ^__^

  20. rodolforg commented on Jun 8, 2021

    @rodolforg
    Contributor

    Group layers are supported, yes.

    Oh. I asked because you wrote about Layer_PasteCanvas (and there are only three Layers that are Layer_PasteCanvas: Group, Switch and FilterGroup). ;)

  21. AnishGG commented on Jun 9, 2021

    @AnishGG
    Member

    @rodolforg Thank you for the examples!
    But both these examples use only canvas-id in the use. Do you have any example which uses child-canvas-id too? That is the part I didn't understand.

    Full ID string format would be something like
    [[file-path]#][canvas-id:][child-canvas-id:][child-canvas-id:]…value-node-id

  22. rodolforg commented on Jun 9, 2021

    @rodolforg
    Contributor

    A child canvas with an exported value node.
    teste-value-node-names.zip

    And from external file (= the previous one)
    test-external-value-node.zip

  23. AnishGG commented on Jun 28, 2021

    @AnishGG
    Member

    Issue 3 is fixed by: #2182

    By the way, we have four different bugs reported here, all related to Lottie plugin:

    1. FlatPak without lxml embedded. ([Export to lottie format error #993 (comment)](https://github.com/synfig/synfig/issues/993#issuecomment-769141618)) ([Export to lottie format error #993 (comment)](https://github.com/synfig/synfig/issues/993#issuecomment-769779344))
    
    2. Ubuntu focal does not recognize the lxml too ([Export to lottie format error #993 (comment)](https://github.com/synfig/synfig/issues/993#issuecomment-774783030))
    
    3. AppImage/Windows 10 throws exception "anim is not None" (probably related to usage of exported valuenodes) https://github.com/synfig/synfig/blob/46ed36c9a100857b2f2b0a87de40c6ee734e5744/synfig-studio/plugins/lottie-exporter/common/Param.py#L51
        ([Export to lottie format error #993 (comment)](https://github.com/synfig/synfig/issues/993#issuecomment-769779344)) ([Export to lottie format error #993 (comment)](https://github.com/synfig/synfig/issues/993#issuecomment-780572168))
    
    4. AppImage has problem with non-saved file, probably an issue with current workdir or passing incomplete (not-absolute) file path as argument to python script ([Export to lottie format error #993 (comment)](https://github.com/synfig/synfig/issues/993#issuecomment-776927000))
    

    So the only issue left is Number 4. I am not sure how to fix that.

  24. rodolforg commented on Jul 11, 2021

    @rodolforg
    Contributor

    So the only issue left is Number 4. I am not sure how to fix that.

    It is an AppImage packaging problem. I don't know if it affects Snap and FlatPack too.

  25. rodolforg commented on Jul 13, 2021

    @rodolforg
    Contributor
    1. AppImage has problem with non-saved file, probably an issue with current workdir or passing incomplete (not-absolute) file path as argument to python script (Export to lottie format error #993 (comment))

    It is still an issue in 1.4.2 testing

    So it's probably something related to AppImage itself. I don't know how it works, but maybe this is related: AppImage/AppImageKit#191 ?

  26. removed this from the v1.4.2 milestone on Jul 30, 2021
  27. ginobean commented on Aug 29, 2023

    @ginobean

    My limited understanding of the AppImage format is that it's a self contained package, runnable under almost any reasonable Linux system. Would it make sense to simply make the lxml python package part of the AppImage? Users should NOT generally have to install external packages to run a "self-contained" package.

    As a workaround, in my case, I noticed that the Synfig python code was using '#!/usr/bin/env python' to reference python. I am using pyenv. I was able to resolve this issue by doing a 'pip install lxml' under my default pyenv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions