Skip to content

When running on wsl, modifying the default value of the port is of no use. #1084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 2 tasks
SunJiayu-L opened this issue May 8, 2025 · 1 comment
Open
1 of 2 tasks
Labels
bug Something isn’t working correctly robots Issues concerning robots HW interfaces

Comments

@SunJiayu-L
Copy link

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

  • 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?

@CarolinePascal
Copy link
Collaborator

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.

@CarolinePascal CarolinePascal added bug Something isn’t working correctly robots Issues concerning robots HW interfaces labels May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working correctly robots Issues concerning robots HW interfaces
Projects
None yet
Development

No branches or pull requests

2 participants