orionrobots / python_usb_robot_arm

Python code to interact with the maplin robot arm.
Other
16 stars 11 forks source link

Error Message #11

Closed RetroJimmyX closed 2 years ago

RetroJimmyX commented 2 years ago

I am getting the message regarding line 67 in the init.py file which is self.dev.set_configuration()

the error is:

AttributeError: 'NoneType' object has no attribute 'set_configuration'

I looked through the code and couldn't find this set_configuration method anywhere.

Please could you advise? Thanks in advance.

namllihs commented 2 years ago

It could be that your arm is not switched on or the batteries are dead.

dannystaple commented 2 years ago

I've added an exception to check that it has found the arm before trying set_configuration.

RetroJimmyX commented 2 years ago

Thank you. The arm seems to be like to be switched on and then plugged in via USB.