D4RL
D4RL copied to clipboard
import d4rl error
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?
+1, same issue.
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.
- pip uninstall d4rl, dm_control, mujoco_py...
- 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. - 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.