huggingface / lerobot

🤗 LeRobot: Making AI for Robotics more accessible with end-to-end learning
Apache License 2.0
7.65k stars 734 forks source link

Install Issues -> Add Devcontainer #427

Open MichaelrMentele opened 2 months ago

MichaelrMentele commented 2 months ago

System Info

- `lerobot` version: unknown
- Platform: Linux-6.8.0-39-generic-x86_64-with-glibc2.39
- Python version: 3.12.5
- Huggingface_hub version: N/A
- Dataset version: N/A
- Numpy version: 2.0.0
- PyTorch version (GPU?): N/A (N/A)
- Cuda version: N/A
- Using GPU in script?: n/a

Information

Reproduction

poetry install --sync --extras "dynamixel"

 - Installing evdev (1.7.1): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel

  running bdist_wheel
  running build
  running build_py
  creating build
...

Running the OpenCV install instructions also fails

conda install -c conda-forge ffmpeg
pip uninstall opencv-python
conda install -c conda-forge opencv>=4.10.0

Error:

conda install -c conda-forge ffmpeg
pip uninstall opencv-python
conda install -c conda-forge opencv>=4.10.0
Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

WARNING: Skipping opencv-python as it is not installed.
Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

Expected behavior

Rather than try to debug this particular issue and N others like, I'd like to suggest adding a docker dev container to sidestep these problems. It looks like you already have the docker files.

aliberts commented 2 months ago

Hi there,

- Installing evdev (1.7.1): Failed

Yes I've also had issues with evdev previously. Depending on your distribution, some header files are sometimes not in the correct location which make building the wheel fail (might be the issue). Take a look at their install doc, it can probably help

Running the OpenCV install instructions also fails

Can you try this? (with classic solver and no version constraint)

conda install --solver classic -c conda-forge opencv

Rather than try to debug this particular issue and N others like, I'd like to suggest adding a docker dev container to sidestep these problems. It looks like you already have the docker files.

We do have a dev docker file that is tailored for us to use on our cluster. You can still try to use it though, the image is available here. Unfortunately in general we've had a lot of issues making some of our dependencies (Mujoco in particular) work in containers.