I'm working on a project involving the sleep()
command, (running 2.7.2) and it's throwing errors that I've never seen before. Here's a test script I wrote:
from time import sleep
print '1'
sleep(2)
print '2'
It returns:
>> 1
>> Internal error: ReferenceError: _select is not defined
Any help is appreciated
time.sleep() uses
select
if it is available. For some reasonHAVE_SELECT
was defined when your Python was built, but now the library can't be found.From the docs
From the source:
Could be that your Python was compiled for a different environment to where it is running.
Where did your Python come from? How was it compiled?