Hello all,
I am very new to PsychoPy and so I am very green to building and coding experiments in PsychoPy. I am trying to create a series of demographic questions in PsychoPy, however, my experiment keeps crashing after participants have typed their age (using the free response) and used the mouse to press a continue button. The error is the following:
Traceback (most recent call last):
File “/Users/paigekemp/Desktop/UNCG/UNCG Research/Current Experiments/OtherRaceEffect/Demo_PK_lastrun.py”, line 482, in
Age_Response1.reset()
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/textbox2.py”, line 542, in reset
self.text = self.startText
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/tools/attributetools.py”, line 32, in set
newValue = self.func(obj, value)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/textbox2.py”, line 293, in text
self._layout()
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/textbox2/textbox2.py”, line 302, in _layout
text = text.replace(’’, codes[‘ITAL_START’])
AttributeError: ‘NoneType’ object has no attribute ‘replace’
Experiment ended.
The code for this project along with the experiment file can be located on github: GitHub - PaigeKemp/Face-Project
Any help will be greatly appreciated!