Skip to content

Commit b522c3f

Browse files
fix(deps): constrain PyAV version to resolve OpenCV-python ffmpeg version conflict (huggingface#883)
Co-authored-by: Simon Alibert <[email protected]>
1 parent 313b2a3 commit b522c3f

File tree

7 files changed

+1
-46
lines changed

7 files changed

+1
-46
lines changed

examples/10_use_so100.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ git clone https://github.com/huggingface/lerobot.git ~/lerobot
6262
cd ~/lerobot && pip install -e ".[feetech]"
6363
```
6464

65-
*EXTRA: For Linux only (not Mac)*: install extra dependencies for recording datasets:
66-
```bash
67-
conda install -y -c conda-forge ffmpeg
68-
pip uninstall -y opencv-python
69-
conda install -y -c conda-forge "opencv>=4.10.0"
70-
```
7165
Great :hugs:! You are now done installing LeRobot and we can begin assembling the SO100 arms :robot:.
7266
Every time you now want to use LeRobot you can go to the `~/lerobot` folder where we installed LeRobot and run one of the commands.
7367

examples/11_use_lekiwi.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,6 @@ git clone https://github.com/huggingface/lerobot.git ~/lerobot
113113
cd ~/lerobot && pip install -e ".[feetech]"
114114
```
115115

116-
*EXTRA: For Linux only (not Mac)*: install extra dependencies for recording datasets:
117-
```bash
118-
conda install -y -c conda-forge ffmpeg
119-
pip uninstall -y opencv-python
120-
conda install -y -c conda-forge "opencv>=4.10.0"
121-
```
122116
Great :hugs:! You are now done installing LeRobot and we can begin assembling the SO100 arms and Mobile base :robot:.
123117
Every time you now want to use LeRobot you can go to the `~/lerobot` folder where we installed LeRobot and run one of the commands.
124118

examples/11_use_moss.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ git clone https://github.com/huggingface/lerobot.git ~/lerobot
3636
cd ~/lerobot && pip install -e ".[feetech]"
3737
```
3838

39-
For Linux only (not Mac), install extra dependencies for recording datasets:
40-
```bash
41-
conda install -y -c conda-forge ffmpeg
42-
pip uninstall -y opencv-python
43-
conda install -y -c conda-forge "opencv>=4.10.0"
44-
```
45-
4639
## Configure the motors
4740

4841
Follow steps 1 of the [assembly video](https://www.youtube.com/watch?v=DA91NJOtMic) which illustrates the use of our scripts below.

examples/7_get_started_with_real_robot.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ Using `uv`:
4646
uv sync --extra "dynamixel"
4747
```
4848

49-
/!\ For Linux only, ffmpeg and opencv requires conda install for now. Run this exact sequence of commands:
50-
```bash
51-
conda install -c conda-forge ffmpeg
52-
pip uninstall opencv-python
53-
conda install -c conda-forge "opencv>=4.10.0"
54-
```
55-
5649
You are now ready to plug the 5V power supply to the motor bus of the leader arm (the smaller one) since all its motors only require 5V.
5750

5851
Then plug the 12V power supply to the motor bus of the follower arm. It has two motors that need 12V, and the rest will be powered with 5V through the voltage convertor.
@@ -834,11 +827,6 @@ It contains:
834827
- `dtRphone:33.84 (29.5hz)` which is the delta time of capturing an image from the phone camera in the thread running asynchronously.
835828

836829
Troubleshooting:
837-
- On Linux, if you encounter a hanging issue when using cameras, uninstall opencv and re-install it with conda:
838-
```bash
839-
pip uninstall opencv-python
840-
conda install -c conda-forge opencv=4.10.0
841-
```
842830
- On Linux, if you encounter any issue during video encoding with `ffmpeg: unknown encoder libsvtav1`, you can:
843831
- install with conda-forge by running `conda install -c conda-forge ffmpeg` (it should be compiled with `libsvtav1`),
844832
- or, install [Homebrew](https://brew.sh) and run `brew install ffmpeg` (it should be compiled with `libsvtav1`),

examples/8_use_stretch.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ cd ~/lerobot && pip install -e ".[stretch]"
5050

5151
> **Note:** If you get this message, you can ignore it: `ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.`
5252
53-
For Linux only (not Mac), install extra dependencies for recording datasets:
54-
```bash
55-
conda install -y -c conda-forge ffmpeg
56-
pip uninstall -y opencv-python
57-
conda install -y -c conda-forge "opencv>=4.10.0"
58-
```
59-
6053
7. Run a [system check](https://docs.hello-robot.com/0.3/getting_started/stretch_hardware_overview/#system-check) to make sure your robot is ready:
6154
```bash
6255
stretch_system_check.py

examples/9_use_aloha.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ git clone https://github.com/huggingface/lerobot.git ~/lerobot
3535
cd ~/lerobot && pip install -e ".[dynamixel, intelrealsense]"
3636
```
3737

38-
For Linux only (not Mac), install extra dependencies for recording datasets:
39-
```bash
40-
conda install -y -c conda-forge ffmpeg
41-
pip uninstall -y opencv-python
42-
conda install -y -c conda-forge "opencv>=4.10.0"
43-
```
44-
4538
## Teleoperate
4639

4740
**/!\ FOR SAFETY, READ THIS /!\**

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ dependencies = [
6262
"omegaconf>=2.3.0",
6363
"opencv-python>=4.9.0",
6464
"packaging>=24.2",
65-
"av>=12.0.5",
65+
"av>=12.0.5,<13.0.0",
6666
"pymunk>=6.6.0",
6767
"pynput>=1.7.7",
6868
"pyzmq>=26.2.1",

0 commit comments

Comments
 (0)