Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.8.3 throws error #10

Open
lazzarello opened this issue May 2, 2021 · 1 comment
Open

Python 3.8.3 throws error #10

lazzarello opened this issue May 2, 2021 · 1 comment

Comments

@lazzarello
Copy link

Not sure why this is happening yet, though this project has low activity so I'm gonna try and fork/debug myself.

lee@henry:~/funsrc/myoarmband/Myo4Linux/lib$ python test_myo.py 
Start Myo for Linux
Find Myo device...
Finished.
Traceback (most recent call last):
  File "test_myo.py", line 30, in <module>
    main()
  File "test_myo.py", line 15, in main
    myo.connect()
  File "/home/lee/funsrc/myoarmband/Myo4Linux/lib/myo.py", line 17, in connect
    address = self.find_myo_device()
  File "/home/lee/funsrc/myoarmband/Myo4Linux/lib/myo.py", line 94, in find_myo_device
    if packet.payload.endswith(b'\x06\x42\x48\x12\x4A\x7F\x2C\x48\x47\xB9\xDE\x04\xA9\x01\x00\x06\xD5'):
TypeError: endswith first arg must be str or a tuple of str, not bytes
@lazzarello
Copy link
Author

confirmed, the error is in a > python 2.7.18 syntax thing. otherwise it works great! Yea!

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

No branches or pull requests

1 participant