lerobot icon indicating copy to clipboard operation
lerobot copied to clipboard

scservo_sdk's version issue??

Open lanseyege opened this issue 6 months ago • 1 comments

File "lerobot/common/motors/feetech/feetech.py", line 133, in init self.packet_handler = scs.PacketHandler(protocol_version) ^^^^^^^^^^^^^^^^^ AttributeError: module 'scservo_sdk' has no attribute 'PacketHandler'. Did you mean: 'PortHandler'?

File "lerobot/common/motors/feetech/feetech.py", line 75, in _split_into_byte_chunks data = [scs.SCS_LOBYTE(value), scs.SCS_HIBYTE(value)] ^^^^^^^^^^^^^^ AttributeError: module 'scservo_sdk' has no attribute 'SCS_LOBYTE'

while, scservo_sdk has scs_lobyte, scs_hibyte methods ...

It seems you adopt a different version of scservo_sdk ?? There is no 'scs.PacketHandler' function, no mater scservo_sdk v1.0 or v2.0.

lanseyege avatar Jun 09 '25 05:06 lanseyege

File "lerobot_so100/common/motors/feetech/feetech.py", line 133, in init self.packet_handler = scs.PacketHandler(protocol_version) ^^^^^^^^^^^^^^^^^ AttributeError: module 'scservo_sdk' has no attribute 'PacketHandler'. Did you mean: 'PortHandler'?

It seems you adopt a different version of scservo_sdk ?? There is no 'scs.PacketHandler' function, no mater scservo_sdk v1.0 or v2.0.

ok, it is scservo_sdk==1.0.0

lanseyege avatar Jun 09 '25 05:06 lanseyege

How did you install scservo_sdk==1.0.0? I'm not able to find it

siddhu003 avatar Jul 04 '25 11:07 siddhu003

I met this problem too. How did you solve it?

forwardyyy avatar Jul 21 '25 08:07 forwardyyy

How did you install scservo_sdk==1.0.0? I'm not able to find it

It should be "pip install feetech-servo-sdk==1.0.0". https://github.com/huggingface/lerobot/blob/17efa2ff8e71d3e9097ac32cb183e46919dea015/pyproject.toml#L101C13-L101C30

lanseyege avatar Jul 21 '25 09:07 lanseyege

I met this problem too. How did you solve it?

It should be "pip install feetech-servo-sdk==1.0.0"

https://github.com/huggingface/lerobot/blob/17efa2ff8e71d3e9097ac32cb183e46919dea015/pyproject.toml#L101C13-L101C30

lanseyege avatar Jul 21 '25 09:07 lanseyege