Advertisement
Narayan

err

Oct 2nd, 2022
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. $ python3 serialTest.py
  2. Traceback (most recent call last):
  3. File "/home/psysc0rpi0n/Arduino/SerialTest/serialTest.py", line 5, in <module>
  4. ser.write("getData")
  5. File "/home/psysc0rpi0n/.local/lib/python3.9/site-packages/serial/serialposix.py", line 616, in write
  6. d = to_bytes(data)
  7. File "/home/psysc0rpi0n/.local/lib/python3.9/site-packages/serial/serialutil.py", line 65, in to_bytes
  8. raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
  9. TypeError: unicode strings are not supported, please encode to bytes: 'getData'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement