question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Current breakage of install due to not specifying dm_control version (or versions for any dependency)

See original GitHub issue

Hi folks, a few days ago, this worked, given a working underneath mujoco install:

pip install \
  mujoco_py==2.0.2.5 \
  git+https://github.com/rail-berkeley/d4rl@master#egg=d4rl

Although this repo’s master branch hasn’t been updated since July, the underlying dm_control dependency version is not specified, and it has since updated to mujoco 2.1: https://github.com/deepmind/dm_control/commit/420e2373d11681f9d78513b16db2ac8b5eb99381

(which doesn’t exist publicly yet: https://www.roboti.us/download.html)

This causes the following error when trying to run install d4rl:

Successfully built mujoco-py d4rl mjrl
Failed to build dm-control
Installing collected packages: mujoco-py, mjrl, dm-control, click, d4rl
    Running setup.py install for dm-control ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p1_maoog/dm-control_a87dbf57bef14d5bb352aa0e2a5bcad6/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p1_maoog/dm-control_a87dbf57bef14d5bb352aa0e2a5bcad6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-gr13f_14/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/peteflorence/.local/include/python3.8/dm-control
         cwd: /tmp/pip-install-p1_maoog/dm-control_a87dbf57bef14d5bb352aa0e2a5bcad6/
    Complete output (2 lines):
    running install
    error: Header file '/home/peteflorence/.mujoco/mujoco210/include/mjdata.h' does not exist.

Could someone add versions to all dependencies here? https://github.com/rail-berkeley/d4rl/blob/master/setup.py

Also, to clarify: although one could wait until mujoco 2.1 is available, it still seems that versioning the benchmark is required, or some other mechanism for not ensuring regressions?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

5reactions
Harimuscommented, Jun 29, 2022

had same issue but adding 210 just caused me this issue in dm_control https://github.com/deepmind/dm_control/issues/210

Edit: as a temporary workaround, setting dm-control==0.0.364896371in setup.py in d4rl worked for me. Edit2: Probably better with dm-control==0.0.425341097

3reactions
saran-tcommented, Oct 26, 2021

Can I ask why d4rl is depending on dm_control via git rather than PyPI?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Current breakage of install due to not specifying dm_control ...
This causes the following error when trying to run install d4rl: Successfully built mujoco-py d4rl mjrl Failed to build dm-control Installing ...
Read more >
dm_control: Software and Tasks - for Continuous Control - arXiv
The dm_control software package is a collection of Python libraries and task suites for reinforcement learning agents in an articulated-body ...
Read more >
Maven: how to override the dependency added by a library
Simply specify the version in your current pom. The version specified here will override other. Forcing a version. A version will always be ......
Read more >
RISC-V Debug Specification Version 1.0-STABLE ... - GitHub
We're trying to only make backwards-compatible changes, but sometimes it's unavoidable to change a corner case. If you implement this document, ...
Read more >
Lexium 32C - Servo Drive - User Guide - FlashCut CNC
1 For additional information, refer to NEMA ICS 1.1 (latest edition), “Safety Guidelines for the Application,. Installation, and Maintenance of Solid State ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found