OS (Win10): PsychoPy version (2021.1.4):
**Standard Standalone? (y) What are you trying to achieve?:
I am using Builder and the included Cedrus component. The “store correct” option is enabled.
The experiment consists of a few tasks. Within each task, there are repeats of the same trial, ie they are built as looped routines.
The experiment works well, except when there is no response given (ie, no Cedrus key is pressed) in the first instance of the trial.
When there is no response in the first trial, PsychoPy would exit with the error
“…pyxid_impl.py”, line 371, in getattr
return getattr(self._impl, attrname)
AttributeError: ‘NoneType’ object has no attribute ‘corr’
However, if there is a response in the first trial, the experiment would continue even when there are no responses in subsequent trials.
What did you try to make it work?:
I tried unchecking the “store correct” box. It did not prevent the error.
What can I do to bypass this problem? If this is not fixed, I run the risk that participants will have to repeat previous tasks because they fail to press a button in the first trial of the last task.
Great thanks - I assume you hit this error in the r_Trial routine? where the trial ends at a set time rather than on a button press? I suspect this is a bug, a couple of Qs:
When you tried unchecking the “store correct” option - did you also clear the “Correct answer” field? (i.e. so that it did not read “corrButton” ?
If unchecking the store correct does not work what happens if you delete this cedrus component and make a fresh one?
If the above works - what happens if you add a code component and in the end routine tab type print(buttonBox_Trial.keys)?