Skip to content

Conversation

@tanglisha
Copy link

I have a brand new Myo. I ran test_myo.py on it and got the following output:

Start Myo for Linux
Find Myo device...
Connected.
Firmware version: 1.0.2.2
Device name: Myo
Finished.
Traceback (most recent call last):
File "test_myo.py", line 30, in
main()
File "test_myo.py", line 19, in main
myo.run()
File "../lib/myo.py", line 51, in run
self.ble.receive_packet(timeout)
File "../lib/ble.py", line 23, in receive_packet
self.notify_event(packet)
File "../lib/ble.py", line 49, in notify_event
listener.handle_data(p)
File "../lib/device_listener.py", line 12, in handle_data
data_type, value, address, _, _, _ = unpack('6B', payload)
File "../lib/utilities.py", line 7, in unpack
return struct.unpack('<' + fmt, *args)
struct.error: unpack requires a string argument of length 6

Upgrading my firmware fixed the error and all was well, but the error was pretty frustrating.

Traceback (most recent call last):
  File "test_myo.py", line 30, in <module>
    main()
  File "test_myo.py", line 19, in main
    myo.run()
  File "../lib/myo.py", line 51, in run
    self.ble.receive_packet(timeout)
  File "../lib/ble.py", line 23, in receive_packet
    self.notify_event(packet)
  File "../lib/ble.py", line 49, in notify_event
    listener.handle_data(p)
  File "../lib/device_listener.py", line 12, in handle_data
    data_type, value, address, _, _, _ = unpack('6B', payload)
  File "../lib/utilities.py", line 7, in unpack
    return struct.unpack('<' + fmt, *args)
struct.error: unpack requires a string argument of length 6

Upgrading my firmware fixed it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant