Skip to content

Commit f6e588a

Browse files
committed
Do loose version checking
This should support versions like 1.11.1rc1
1 parent 68d17c8 commit f6e588a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mujoco_py/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ def check_mujoco_version():
4545
raise error.MujocoDependencyError("We expected your MUJOCO_PY_MJPRO_PATH final directory to be 'mjpro131', but you provided: {} ({}). MuJoCo often changes in incompatible ways between versions, so you must use MuJoCo 1.31. If you're using MuJoCo 1.31 but changed the directory name, simply change the name back.".format(mjpro, mjpro_path))
4646

4747
def check_numpy_version():
48-
if distutils.version.StrictVersion(numpy.__version__) < distutils.version.StrictVersion('1.10.4'):
48+
if distutils.version.LooseVersion(numpy.__version__) < distutils.version.LooseVersion('1.10.4'):
4949
raise error.MujocoDependencyError('You are running with numpy {}, but you must use >= 1.10.4. (In particular, earlier versions of numpy have been seen to cause mujoco-py to return different results from later ones.)'.format(numpy.__version__, '1.10.4'))

0 commit comments

Comments
 (0)