Open
Description
Description
When running the command from manim_slides import Slide
I get the following error
---------------------------------------------------------------------------
PydanticUserError Traceback (most recent call last)
[/home/martin/Documents/VSCode/Python/Manim/Thesis-P1.ipynb](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/Thesis-P1.ipynb) Cell 3 line 1
----> [1](vscode-notebook-cell:/home/martin/Documents/VSCode/Python/Manim/Thesis-P1.ipynb#W4sZmlsZQ%3D%3D?line=0) from manim_slides import Slide
File [~/.local/lib/python3.12/site-packages/manim_slides/__init__.py:3](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/__init__.py:3)
[1](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/__init__.py:1) # flake8: noqa: F401
[2](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/__init__.py:2) from .__version__ import __version__
----> [3](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/__init__.py:3) from .slide import Slide, ThreeDSlide
File [~/.local/lib/python3.12/site-packages/manim_slides/slide.py:9](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/slide.py:9)
[5](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/slide.py:5) from typing import Any, List, Optional
[7](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/slide.py:7) from tqdm import tqdm
----> [9](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/slide.py:9) from .config import PresentationConfig, SlideConfig, SlideType
[10](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/slide.py:10) from .defaults import FOLDER_PATH
[11](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/slide.py:11) from .manim import FFMPEG_BIN, MANIMGL, Scene, ThreeDScene, config, logger
File [~/.local/lib/python3.12/site-packages/manim_slides/config.py:51](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/config.py:51)
[46](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/config.py:46) logger.debug(f"Pressed key: {self.name}")
[48](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/config.py:48) return m
---> [51](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/config.py:51) class Config(BaseModel): # type: ignore
[52](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/config.py:52) """General Manim Slides config"""
[54](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/config.py:54) QUIT: Key = Key(ids=[Qt.Key_Q], name="QUIT")
File [~/.local/lib/python3.12/site-packages/manim_slides/config.py:62](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/manim_slides/config.py:62), in Config()
...
[245](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/VSCode/Python/Manim/~/.local/lib/python3.12/site-packages/pydantic/deprecated/class_validators.py:245) def dec(f: Callable[..., Any] | classmethod[Any, Any, Any] | staticmethod[Any, Any]) -> Any:
PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.
Version
I get the same error when running manim-slides --version
, but with pip list | grep manim-slides
i get the following output
manim-slides 4.7.0
Platform
OS: Fedora Linux 39 (Workstation Edition) x86_64
Kernel: 6.6.3-200.fc39.x86_64
pip is installed though rpm
Screenshots
No response
Additional information
No response