Skip to content

[BUG] --use-template is not working #181

@abul4fia

Description

@abul4fia

Description

When the --use-template option is used, the error Option 'template': str type expected is produced.

Example:

manim-slides convert --use-template slides-template.html Test.html
[...]
Error: 1 error(s) occured with configuration options for 'html', see below.
Option 'template': str type expected

Apparently there is a conflict between the type which convert.convert() is receiving in its parameter template, which is of type Path, and the one Pydantic is expecting and validating, which is str.

The problem can be solved by adding these lines at the beginning of convert.convert():

    if template:
        template = str(template)

Version

manim-slides, version 4.13.0

Platform

Linux

Screenshots

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcliRelated to the command line interfacehtml-convertRelated to converting to HTML slides

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions