Install Issues -> Add Devcontainer
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
- [ ] One of the scripts in the examples/ folder of LeRobot
- [ ] My own task or dataset (give details below)
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.
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.
Feel free to also try https://github.com/huggingface/lerobot/pull/519, which is what I've been using to develop after giving up on trying to fix dependencies on linux.
To install evdev, it helped me to run the following commands:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
Try
sudo apt install python3-poetry
This helps building wheel for evdev
Try
sudo apt install python3-poetryThis helps building wheel for evdev
thanks!