ccourson / xArmServoController

LewanSoul-Lobot-HiWonder 6-DOF xArm servo controller libraries
https://ccourson.github.io/xArmServoController/
MIT License
64 stars 30 forks source link

OSError: open failed #10

Closed dzianisv closed 12 months ago

dzianisv commented 12 months ago

xarm doesn't work with learm I bought on Amazon.

  File "/home/engineer/workspace/learm/demo.py", line 5, in <module>
    arm = xarm.Controller('USB')
  File "/home/engineer/.local/lib/python3.10/site-packages/xarm/controller.py", line 27, in __init__
    self._device.open(DID, VID)
  File "hid.pyx", line 142, in hid.device.open
OSError: open failed

Code snippet

import xarm
arm = xarm.Controller('USB')

How I can fix this?

dzianisv commented 12 months ago

Solved this This was a permissions issue running under sudo or adding a udev rule helps