openyou / emokit

Open source driver for accessing raw data from the Emotiv EPOC EEG headset
http://www.openyou.org
Other
524 stars 236 forks source link

SystemError: (libev) select: Unknown error (libev) select: Unknown error #113

Closed warrenarea closed 10 years ago

warrenarea commented 10 years ago

On a couple of occasions when I've set up an Emotiv project for python using greenlet / gevent, i seem to get this error:

SystemError: (libev) select: Unknown error (libev) select: Unknown error

" This problem will likely go away if you import socket or import _socket. The problem here is that libev uses winsock, which needs to be initialized with a proper WSAStartup call to work. In python, only the _socket module does necessary initialization, and by default gevent does not import it. Hence sleep starts to fail as soon as it hits winsock subsystem. "

this solution seems to have worked for me, seems the 'sleep' command for gevent may require the socket module.

Thought this might be helpful.