AttributeError: ‘bool’ object has no attribute ‘reset’

I am creating an experiment and I am having an issue with the button component. The issue doesn’t appear to be with what I’m doing but with the code that PsychoPy is putting into the program. Upon getting to the part of the program where the button is being called, I receive this error: round1_1.reset()… AttributeError: ‘bool’ object has no attribute ‘reset’. This button determines which round the participant will enter (e.g., there is also a round1_2 and round 1_3). The code in the builder reads like this:

# update component parameters for each repeat
# reset round1_1 to account for continued clicks & clear times on/off
round1_1.reset()
# reset round1_2 to account for continued clicks & clear times on/off
round1_2.reset()..........

I am not sure why this reset function is holding up the program’s running. If anyone has any ideas or advice I would really appreciate it! If you would like more specific details on anything surrounding my use of the component, I can provide that if helpful. Just let me know, thanks to anyone who reads this in advance!

Hi.

Are you using round1_1 for anything other than the name of the button component?

The error message suggests that it is also a Boolean (True/False).