This is how setAlarm
looks like
@staticmethod
def setAlarm(timeout):
osName = platform.system()
if osName.startswith('Windows'): # alarm is not implemented in Windows
return
signal.alarm(timeout)
so, it tries to identify that is Windows and then not invoking signal.alarm()
which is not implemented, but for some reason it fails in your case.
Try to print the result of osName
to see what went wrong.
UPDATE
Now I see, you are using monkeyrunner
as the interpreter but AndroidViewClient >= 4.0.0 is 100% pure python, so you should run your scripts using a python
2.x interpreter.