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

Query about your code #1

Open
KhadijaZahoor opened this issue Jul 18, 2019 · 1 comment
Open

Query about your code #1

KhadijaZahoor opened this issue Jul 18, 2019 · 1 comment

Comments

@KhadijaZahoor
Copy link

I am getting the following errors while running your code

"C:\Users\Khadija Zahoor\Anaconda3\python.exe" "C:/Users/Khadija Zahoor/Desktop/Neurosky projects Github/Mindwave-brainwaves-reader/main.py"
Nome dell'utente: rahama
Nome del task: fff
Durata del task(sec):7
Saving data...
Traceback (most recent call last):
File "C:/Users/Khadija Zahoor/Desktop/Neurosky projects Github/Mindwave-brainwaves-reader/main.py", line 20, in
record.start()
File "C:\Users\Khadija Zahoor\Desktop\Neurosky projects Github\Mindwave-brainwaves-reader\NeuroPy.py", line 44, in start
threading.Thread(target=self.__packetParser(self.srl)).start()
File "C:\Users\Khadija Zahoor\Desktop\Neurosky projects Github\Mindwave-brainwaves-reader\NeuroPy.py", line 52, in __packetParser
p2 = binascii.hexlify(srl.read(1)).decode('ascii')
File "C:\Users\Khadija Zahoor\Anaconda3\lib\site-packages\serial\serialwin32.py", line 283, in read
ctypes.byref(self._overlapped_read))
TypeError: byref() argument must be a ctypes instance, not 'NoneType'
Saved

Process finished with exit code 1

Kindly guide me to resolve these.

@LazyNeko1
Copy link

The self._overlapped_read is reading None, do you have everything set up properly?

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

2 participants