Skip to content

Commit

Permalink
FEATURE: Setup checks for FFmpeg, and prompts with options to install…
Browse files Browse the repository at this point in the history
… if not found
  • Loading branch information
vikashplus committed Dec 25, 2023
1 parent 3b56770 commit 69c1303
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion robohive/renderer/mj_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import time

from typing import Union
from robohive.renderer.renderer import Renderer, RenderMode
from robohive.renderer.renderer import Renderer

# Default window dimensions.
DEFAULT_WINDOW_WIDTH = 640
Expand Down
15 changes: 12 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
import os
import sys
from setuptools import setup, find_packages
import shutil

# Check and warn if FFmpeg is not available
if shutil.which("ffmpeg") is None:
help = """FFmpeg not found in your system. Please install FFmpeg before proceeding
Options:
(1) LINUX: apt-get install ffmpeg
(2) OSX: brew install ffmpeg"""
raise ModuleNotFoundError(help)

if sys.version_info.major != 3:
print("This library is only compatible with Python 3, but you are running "
Expand All @@ -27,7 +36,7 @@ def package_files(directory):

setup(
name='robohive',
version='0.6.0',
version='0.7.0',
license='Apache 2.0',
packages=find_packages(),
package_data={"": extra_files+['../robohive_init.py']},
Expand All @@ -41,8 +50,8 @@ def package_files(directory):
install_requires=[
'click',
'gym==0.13',
'mujoco==2.3.7',
'dm-control==1.0.14',
'mujoco==3.1.1',
'dm-control==1.0.16',
'termcolor',
'sk-video',
'flatten_dict',
Expand Down

0 comments on commit 69c1303

Please sign in to comment.