D4RL icon indicating copy to clipboard operation
D4RL copied to clipboard

import d4rl error

Open CodingNovice7 opened this issue 3 years ago • 2 comments

When I just finished installing d4rl, the following error will appear when importing d4rl: "oserror: cannot find mujoco library at / home / NOA /. Mujoco / lib / libmujoco. So. 2.1.1." Later I edited the DM_ control code (the get_mjlib function) and inserted a hard-coded path to the file in ~/. mujoco/mujoco210/bin/libmujoco210. so. The following errors appear again.:"AttributeError: /home/lyl/.mujoco/mujoco210/bin/libmujoco210.so: undefined symbol: mj_printFormattedModel." How should I solve them?

CodingNovice7 avatar Feb 14 '22 10:02 CodingNovice7

+1, same issue.

1860yk avatar Feb 18 '22 23:02 1860yk

I met the same issue. Actually, it is a version conflict of dm_control and mujoco_py. The dm_control needs mujoco-2.1.1 by default while mujoco_py only support mujoco210 by now. I fixed the issue temporarily be following steps.

  1. pip uninstall d4rl, dm_control, mujoco_py...
  2. edit line 17 of setup.py in d4rl source file as 'dm_control @ git+git://github.com/deepmind/dm_control@644d9e0047f68b35a6f8b79e5e8493e2910563af', which is the latest version of dm_control that support mujoco210.
  3. pip install -e .

and we are done,

BTW, it is related to https://github.com/rail-berkeley/d4rl/issues/125 and a similar solution was given and discussed in https://github.com/rail-berkeley/d4rl/pull/126.

qianchd avatar Feb 22 '22 04:02 qianchd