Ошибка при импорте "Humanoid-V2" в opengym - PullRequest
0 голосов
/ 01 февраля 2019

У меня возникли проблемы при импорте "Humanoid-V2" из библиотеки opengym.

Может ли кто-нибудь помочь мне, пожалуйста:

Сообщение об ошибке:

>>> env = gym.make('Humanoid-v2')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/abhilash/.local/lib/python2.7/site-packages/gym/envs/registration.py", line 167, in make
    return registry.make(id)
  File "/home/abhilash/.local/lib/python2.7/site-packages/gym/envs/registration.py", line 119, in make
    env = spec.make()
  File "/home/abhilash/.local/lib/python2.7/site-packages/gym/envs/registration.py", line 85, in make
    cls = load(self._entry_point)
  File "/home/abhilash/.local/lib/python2.7/site-packages/gym/envs/registration.py", line 14, in load
    result = entry_point.load(False)
  File "/home/abhilash/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2346, in load
    return self.resolve()
  File "/home/abhilash/.local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2352, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/abhilash/.local/lib/python2.7/site-packages/gym/envs/mujoco/__init__.py", line 1, in <module>
    from gym.envs.mujoco.mujoco_env import MujocoEnv
  File "/home/abhilash/.local/lib/python2.7/site-packages/gym/envs/mujoco/mujoco_env.py", line 11, in <module>
    import mujoco_py
  File "/home/abhilash/gym/mujoco-py/mujoco_py/__init__.py", line 3, in <module>
    from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
  File "/home/abhilash/gym/mujoco-py/mujoco_py/builder.py", line 495
    print(MISSING_KEY_MESSAGE.format(key_path), file=sys.stderr)
                                                    ^
SyntaxError: invalid syntax

Как я могу решить эту проблему?

Заранее спасибо!

...