Skip to content

Commit

Permalink
fixed import errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Jul 27, 2022
1 parent 788a378 commit 20ee644
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions smarts/env/wrappers/gif_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
# THE SOFTWARE.
import os
import sys
import subprocess

try:
from moviepy.editor import ImageClip
from moviepy.editor import ImageSequenceClip
except:
subprocess.check_call([sys.executable, "-m", "pip", "install", "moviepy"])
from moviepy.editor import ImageClip
from moviepy.editor import ImageSequenceClip
except (ImportError, ModuleNotFoundError):
print(sys.exc_info())
print(
"You may not have installed the [gym] dependencies required to capture the video. Install them first using the command `pip install -e .[gym]` at the source directory."
)
import shutil
import time
from pathlib import Path
Expand Down

0 comments on commit 20ee644

Please sign in to comment.