-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Hi, I'm having some difficulty connecting to my MindWave Mobile- just blew the dust off of it, and am hoping it's not so far in the past it's unuseable.
Running:
import mindwave
headset = mindwave.Headset("/dev/tty.MindWaveMobile", '3A8B')
Yields:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Users/pizzmancer/miniconda3/envs/mindwaveproject/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
>>> self.run()
File "/Users/pizzmancer/_Code/python-mindwave/mindwave.py", line 122, in run
s.write(DISCONNECT)
File "/Users/pizzmancer/miniconda3/envs/mindwaveproject/lib/python3.11/site-packages/serial/serialposix.py", line 616, in write
d = to_bytes(data)
^^^^^^^^^^^^^^
File "/Users/pizzmancer/miniconda3/envs/mindwaveproject/lib/python3.11/site-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: 'Á'
I understand there is a difference between having
pip install serial
and
pip install pyserial
but neither library seems resolve this issue. Any help would be much appreciated!
(The NeuroSky drivers have been installed on my Mac, if that's a concern)
Metadata
Metadata
Assignees
Labels
No labels