I’m trying to set up PsychoPy on my newer laptop to run small experiments for my classes this coming Fall. I’ve tried the demos a few years back with a lot of success on my old, larger laptop, but I’m struggling with even getting the Stroop experiment to run once a data file gets involved.
I was setting up Stroop as advised in Pierce, Hirst, & Macaskill’s text, and all was working fine until I was hitting arrow keys. Psychopy didn’t seem to recognize my arrow keys–once I selected different keys it seemed to work fine. Once I input an Excel file, which I named Conditions.xslx, the program couldn’t run, saying that letterColor and word were not recognized.
I tried using the Stroop demo, and it worked perfectly including recognizing the directional keys, so I tried to copy the demo’s setup. I started with setting up the .csv file before any other step (so I started by creating the loop without adding stim and keyboard input, if that makes a difference). I received this message:
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs_init_.py”, line 1684, in onBrowseTrialsFile
self.updateSummary()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs_init_.py”, line 1715, in updateSummary
_c, _n = data.importConditions(self.conditionsFileAbs.strip(),
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\data\utils.py”, line 406, in importConditions
trialList, fieldNames = _attemptImport(fileName=fileName)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\data\utils.py”, line 306, in _attemptImport
raise ValueError(
ValueError: Could not parse file C:\Users\agilc\Desktop\trialTypes.csv.
Is this an issue of where PsychoPy is stored and where my program files should be, similar to Matlab? I’d appreciate any help that can be provided!