← Back to team overview

sikuli-driver team mailing list archive

[Question #168892]: 'NoneType' object is not iterable?

 

New question #168892 on Sikuli:
https://answers.launchpad.net/sikuli/+question/168892

here is the message:
[profile] Finder.findAll START 
[profile] Finder.findAll END: 497ms 
[profile] Finder.findAll START 
[profile] Finder.findAll END: 509ms 
[profile] Finder.findAll START 
[profile] Finder.findAll END: 537ms 
[profile] Finder.findAll START 
[profile] Finder.findAll END: 516ms [error] Stopped [error] An error occurs at line 2 [error] Error message: Traceback (most recent call last):  File "C:\Users\.....\AppData\Local\Temp\sikuli-tmp8434612038004279852.py", line 2, in    for x in findAll(Pattern("I.png").similar(0.81)): TypeError: 'NoneType' object is not iterable

and here is the code:
setFindFailedResponse(SKIP)
for x in findAll(img1 ):
	setFindFailedResponse(SKIP)
	click(x)
	wait(2)
	click(image2 )
	wait(2)
	while exists(image3 ):
		sleep(5)
for x in findAll(image1a):
	click(x)
	wait(2)
	click(image2 )
	wait(2)
	while exists(image3 ):
		sleep(5)

why is it that i am geting a 'NoneType' object is not iterable? error

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.