fix(deps): fix deps import error

This commit is contained in:
Jérome Eertmans
2022-09-07 23:34:33 +02:00
parent 9640605ae9
commit 2076d65944
2 changed files with 6 additions and 2 deletions

View File

@ -4,9 +4,14 @@ import platform
import shutil
import subprocess
from manim import Scene, ThreeDScene, config, logger
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
from manim.constants import FFMPEG_BIN as ffmpeg_executable
except ImportError: