-
-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Labels
bugSomething isn't workingSomething isn't workingcliRelated to the command line interfaceRelated to the command line interfacehtml-convertRelated to converting to HTML slidesRelated to converting to HTML slides
Description
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 expectedApparently 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
Labels
bugSomething isn't workingSomething isn't workingcliRelated to the command line interfaceRelated to the command line interfacehtml-convertRelated to converting to HTML slidesRelated to converting to HTML slides