" 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.
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.