sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #59724
[Question #822603]: TypeError ( an integer is required )
New question #822603 on SikuliX:
https://answers.launchpad.net/sikuli/+question/822603
I've got a weird situation with an if statement throwing errors. The statement gets the length of a list and uses it for the range:
for i in range(len(my_list)):
This produces: TypeError ( an integer is required ).
Even when I change the statement to simply be:
for i in range(10):
I still get the error, which makes no sense. I even added a similar for loop a few lines above this one and it worked. The function resides in a separate module called by the main SikluiX.py.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.