mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-05-21 12:37:00 +08:00
fix(deps): fix deps import error
This commit is contained in:
@ -4,9 +4,14 @@ import platform
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from manim import Scene, ThreeDScene, config, logger
|
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
|
|
||||||
|
try:
|
||||||
|
from .manim import Scene, ThreeDScene, config, logger
|
||||||
|
except ImportError
|
||||||
|
Scene = ThreeDScene = config = logger = None
|
||||||
|
# TODO: manage both manim and manimgl
|
||||||
|
|
||||||
try: # For manim<v0.16.0.post0
|
try: # For manim<v0.16.0.post0
|
||||||
from manim.constants import FFMPEG_BIN as ffmpeg_executable
|
from manim.constants import FFMPEG_BIN as ffmpeg_executable
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
1
setup.py
1
setup.py
@ -29,7 +29,6 @@ setuptools.setup(
|
|||||||
install_requires=[
|
install_requires=[
|
||||||
"click>=8.0",
|
"click>=8.0",
|
||||||
"click-default-group>=1.2",
|
"click-default-group>=1.2",
|
||||||
"manim",
|
|
||||||
"numpy>=1.19.3",
|
"numpy>=1.19.3",
|
||||||
"pydantic>=1.9.1",
|
"pydantic>=1.9.1",
|
||||||
"opencv-python>=4.6",
|
"opencv-python>=4.6",
|
||||||
|
Reference in New Issue
Block a user