Issue with running form component in builder

OS (e.g. Win10): windows 10 pro
PsychoPy version (e.g. 1.84.x): Psychopy v2024.2.1post4
Standard Standalone? (y/n) If not then what?: Y
What are you trying to achieve?: Trying to make a form using form component in builder. I followed the BFI demo but i keep getting the error as mentioned below.

What did you try to make it work?: I tried both csv and xlsx files but both did not work. I am not sure what the issue is.

What specifically went wrong when you tried that?: When I run the experiment I get the following error.

Generating PsychoPy script…

######## Running: C:\Users\user\Desktop\vulnerability\scale_lastrun.py #########
9618.2290 INFO Loaded monitor calibration from [‘2024_09_22 02:03’]
9618.2406 INFO Loaded monitor calibration from [‘2024_09_22 02:03’]
Traceback (most recent call last):
3.7257 WARNING launchHubServer: If using the iohub mouse or eyetracker devices, fullScr should be True.
0.9569 WARNING Monitor specification not found. Creating a temporary one…
ioHub Server Process Completed With Code: 0
File “C:\Users\user\Desktop\vulnerability\scale_lastrun.py”, line 654, in
run(
File “C:\Users\user\Desktop\vulnerability\scale_lastrun.py”, line 523, in run
if defaultKeyboard.getKeys(keyList=[“escape”]):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\hardware\keyboard.py”, line 494, in getKeys
self.dispatchMessages()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\hardware\keyboard.py”, line 607, in dispatchMessages
key_events = KeyboardDevice._iohubKeyboard.getKeys(clear=True)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\client\keyboard.py”, line 329, in getKeys
self._syncDeviceState()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\client\keyboard.py”, line 232, in _syncDeviceState
events = {int(k): v for k, v in list(kb_state.get(‘events’).items())}
AttributeError: ‘NoneType’ object has no attribute ‘get’
################# Experiment ended with exit code 1 [pid:4192] #################

experiment-
scale.psyexp (12.2 KB)
xlsx file-
vulnerability.xlsx (6.4 KB)
csv file-
vulnerability.csv (1.2 KB)

That psyexp file works for me…I just added Show Mouse in Experiment Settings / Screen.

Try upgrading to 2024.2.2

1 Like

hello, i tried the above solution. I have updated the psychopy version and also tick marked the “show mouse” box. But still i am getting the same error.

######## Running: C:\Users\user\Desktop\vulnerability\scale_lastrun.py #########
218.7843 INFO Loaded monitor calibration from [‘2024_09_22 02:03’]
218.7949 INFO Loaded monitor calibration from [‘2024_09_22 02:03’]
Traceback (most recent call last):
File “C:\Users\user\Desktop\vulnerability\scale_lastrun.py”, line 654, in
run(
File “C:\Users\user\Desktop\vulnerability\scale_lastrun.py”, line 523, in run
if defaultKeyboard.getKeys(keyList=[“escape”]):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\hardware\keyboard.py”, line 494, in getKeys
self.dispatchMessages()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\hardware\keyboard.py”, line 607, in dispatchMessages
key_events = KeyboardDevice._iohubKeyboard.getKeys(clear=True)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\client\keyboard.py”, line 329, in getKeys
self._syncDeviceState()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\client\keyboard.py”, line 232, in _syncDeviceState
events = {int(k): v for k, v in list(kb_state.get(‘events’).items())}
AttributeError: ‘NoneType’ object has no attribute ‘get’
0.9896 WARNING Monitor specification not found. Creating a temporary one…
ioHub Server Process Completed With Code: 0
################ Experiment ended with exit code 1 [pid:18436] #################

Can you please help?

Try changing the keyboard backend.

1 Like

Thanks a ton. It works fine now. Also I used xlsx file because csv wasnt working.