OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2020.2.8
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?:
I’m trying to display a simple questionnaire using the form component.
What did you try to make it work?:
I created a basic working example with a single form component, and a CSV file with the required column headers.
This can be viewed at: James Lewis-Cheetham / questionnaire_example · GitLab (pavlovia.org)
What specifically went wrong when you tried that?:
The code immediately exits with the following error:
Traceback (most recent call last):
File “C:\Users\jwlc1\OneDrive - University of St Andrews\Documents\questionnaire_example\questionnaire_example_lastrun.py”, line 90, in
itemPadding=0.05,)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\form.py”, line 144, in init
self._createItemCtrls()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\form.py”, line 670, in _createItemCtrls
self._setQuestion(item)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\form.py”, line 375, in _setQuestion
font=‘Arial’)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\textbox2\textbox2.py”, line 211, in init
self.text = text if text is not None else “”
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\tools\attributetools.py”, line 32, in set
newValue = self.func(obj, value)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\textbox2\textbox2.py”, line 293, in text
self._layout()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\textbox2\textbox2.py”, line 469, in _layout
self.glFont.upload()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\textbox2\fontmanager.py”, line 504, in upload
self.atlas.upload()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\textbox2\fontmanager.py”, line 301, in upload
gl.GL_ALPHA, gl.GL_UNSIGNED_BYTE, self.data)
ctypes.ArgumentError: argument 9: <class ‘TypeError’>: wrong type
Experiment ended.
Thanks!