diff --git a/python/mujoco/__init__.py b/python/mujoco/__init__.py index e80dfff3..799a13a5 100644 --- a/python/mujoco/__init__.py +++ b/python/mujoco/__init__.py @@ -56,10 +56,14 @@ from mujoco._constants import * from mujoco._enums import * from mujoco._errors import * from mujoco._functions import * -from mujoco._render import * from mujoco._specs import * from mujoco._structs import * +try: + from mujoco._render import * # pytype: disable=import-error +except ImportError: + pass + try: from mujoco.rendering.classic.renderer import Renderer # pytype: disable=import-error except ImportError: