Mouse point target no response

OS (e.g. Win10):
PsychoPy version (e.g. 2024.2.4 Py 3.8):
What are you trying to achieve?:

Choose target image.when mouse point image,image contrast will change.when choose target,there will have a feedback ‘right’ with green.But now,when mouse point target no response(mouse point distract response),and mouse click the program will wrong.

What did you try to make it work?:

Link to the most relevant existing thread you have found:

What specifically went wrong when you tried that?:

_corrAns = environmenttools.getFromNames(image_6,
namespace=locals())
NameError: name ‘image_6’ is not defined. Did you mean: ‘image_3’?

I have check detail carefully,didn’t find image_6.

Hello @Hl_Z

You can search your PsychoPy-file with Control-F.

Best wishes Jens

thanks for your reply.A new error here

adj = np.clip(self.rgb * contrast, -1, 1)
TypeError: unsupported operand type(s) for *: ‘int’ and ‘NoneType’

Here are minimal working example.

minimal working example.zip (171.5 KB)

Hello @Hl_Z

I do not now where the

comes from. It is not in your working example. The error message tells you that you use an operand that can not be used in this context. It could be that you see the error 'NoneType' because you have an operand or an object that is None when you were expecting something else. It could also be that you are trying to manipulate operands of different type, e.g. a string and an integer.

Best wishes Jens

1 Like

Thanks for your detailed explain.I find that I didnot fill a number in contrast,but I choose set every repeat.Now,I choose constant ,the error solved.

Have a good day!