When running on wsl, modifying the default value of the port is of no use.
System Info
- `lerobot` version: 0.1.0
- Platform: Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.35
- Python version: 3.10.16
- Huggingface_hub version: 0.31.1
- Dataset version: 3.6.0
- Numpy version: 2.2.5
- PyTorch version (GPU?): 2.6.0+cu124 (False)
- Cuda version: 12040
- Using GPU in script?: <fill in>
Information
- [x] One of the scripts in the examples/ folder of LeRobot
- [ ] My own task or dataset (give details below)
Reproduction
I was trying lerobot on WSL2, but when I execute
python lerobot/scripts/control_robot.py \
--robot.type=so101 \
--robot.cameras='{}' \
--control.type=calibrate \
--control.arms='["main_follower"]'"
It reported that
"serial.serialutil.SerialException: [Errno 2] could not open port /dev/tty.usbmodem585A0076891: [Errno 2] No such file or directory: '/dev/tty.usbmodem585A0076891'"
I have already changed the port default values,and I have connected the usb from windows to wsl.
2-1 1a86:55d3 USB 串行设备 (COM11) Attached
leader_arms: dict[str, MotorsBusConfig] = field(
default_factory=lambda: {
"main": FeetechMotorsBusConfig(
port="/dev/ttyACM0",
motors={
# name: (index, model)
"shoulder_pan": [1, "sts3215"],
"shoulder_lift": [2, "sts3215"],
"elbow_flex": [3, "sts3215"],
"wrist_flex": [4, "sts3215"],
"wrist_roll": [5, "sts3215"],
"gripper": [6, "sts3215"],
},
),
}
)
But when I run it on Ubuntu ,it works. Please help me!!!
Expected behavior
I want to know why this happened ,did I miss some steps?
Hi @SunJiayu-L !
Could you check if the port you want to use is correctly reported in the configuration displayed when the script is launched ? With the unmodified default configs.py you should see :
INFO 2025-05-14 12:02:43 ol_robot.py:409 {'control': {'arms': ['main_follower']},
'robot': {'calibration_dir': '.cache/calibration/so101',
'cameras': {},
'follower_arms': {'main': {'mock': False,
'motors': {'elbow_flex': [3, 'sts3215'],
'gripper': [6, 'sts3215'],
'shoulder_lift': [2,
'sts3215'],
'shoulder_pan': [1, 'sts3215'],
'wrist_flex': [4, 'sts3215'],
'wrist_roll': [5, 'sts3215']},
'port': '/dev/tty.usbmodem585A0076891'}},
'gripper_open_degree': None,
'leader_arms': {'main': {'mock': False,
'motors': {'elbow_flex': [3, 'sts3215'],
'gripper': [6, 'sts3215'],
'shoulder_lift': [2, 'sts3215'],
'shoulder_pan': [1, 'sts3215'],
'wrist_flex': [4, 'sts3215'],
'wrist_roll': [5, 'sts3215']},
'port': '/dev/tty.usbmodem58760431091'}},
'max_relative_target': None,
'microphones': {},
'mock': False}}
If your modifications were correctly taken into account, the output should be modified accordingly.
Best,
Caroline.
same is happening to me. And in .cache/calibration/ dir there is only aloha_default folder. I don't know if that's expected or not.
And my configs are correctly set. Please try to reproduce this issue in a WSL env. Merci
This issue has been automatically marked as stale because it has not had recent activity (6 months). It will be closed if no further activity occurs. Any change, comment or update to this issue will reset this count. Thank you for your contributions.
This issue was closed because it has been stalled for 14 days with no activity. Feel free to reopen if is still relevant, or to ping a collaborator if you have any questions.