Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import d4rl error #144

Open
CodingNovice7 opened this issue Feb 14, 2022 · 2 comments
Open

import d4rl error #144

CodingNovice7 opened this issue Feb 14, 2022 · 2 comments

Comments

@CodingNovice7
Copy link

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?

@1860yk
Copy link

1860yk commented Feb 18, 2022

+1, same issue.

@qianchd
Copy link

qianchd commented Feb 22, 2022

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 #125 and a similar solution was given and discussed in #126.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants