Skip to content

REx_stepper_mechaduino_menu.py Tool fails  #76

@hello-fazil

Description

@hello-fazil

Using tool REx_stepper_mechaduino_menu.py tool gives the following error output:

Traceback (most recent call last):
  File "/home/hello-robot/.local/bin/REx_stepper_mechaduino_menu.py", line 31, in <module>
    motor.menu_transaction(s)
  File "/home/hello-robot/repos/stretch_body/body/stretch_body/stepper.py", line 622, in menu_transaction
    self.transport.ser.write(x)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: '\n'

This tool is failing due to some changes in the Way firmware accesses the Mechaduino menu through stretch body.

TODO:

  • This tool needs to be deprecated/removed until this bug is fixed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions