# Not able to run the experiment -- might be related to warning message about font family

OS (e.g. Win10): win10

Hi,

I created an experiment in the latest PsychoPy version and was read to run it. However, although the experiment was successfully sent to the runner and listed there (both standout and the top part of runner screen), it stops and never run the experiment. I previously ran another similar experiment that was created in the older version of PsychoPy with no issue; however, now with this runner view I was stuck.

I have been reinstalling the program and recreated the experiment to figure out what is going on with this issue; yet, I do not know what else I should try at this time.

I was not sure if this is a related issue; whenever opening this latest version of PsychoPy program, I’ve been confronted with the persistent warning. That is, the very first screen of PsychoPy/Python.exe says “pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html

Does anyone mind helping me out this? Thanks in advance.

best,
Yoon

That message isn’t related I don’t think, it’s just warning you that some things will be rendered in DejaVu Sans. Could you share the experiment file so I can see what’s going wrong?

Two files: PsychoPy experiment (builder mode) & an excel file for stimuli
MRT_baseline.psyexp (67.4 KB) baseline.xlsx (15.0 KB)

FYI, when I send the experiment to runner it generated the script error. Please see below. I’ve been recently deleting and reinstalling the PsychoPy program several times just in case the issue relates to the version conflict.

Any feedback would be appreciated.

Generating PsychoPy script…

pygame 1.9.6
Hello from the pygame community. Contribute - pygame wiki
4.6581 WARNING Parameter ‘Data file delimiter’ is not known to this version of PsychoPy but has come from your experiment file (saved by a future version of PsychoPy?). This experiment may not run correctly in the current version.
4.6583 WARNING Parameter ‘Resources’ is not known to this version of PsychoPy but has come from your experiment file (saved by a future version of PsychoPy?). This experiment may not run correctly in the current version.
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “C:\Program Files\PsychoPy3\lib\runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 250, in
compileScript(args.infile, args.version, args.outfile)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 242, in compileScript
_makeTarget(thisExp, outfile, targetOutput)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 221, in makeTarget
script = thisExp.writeScript(outfile, target=targetOutput)
File “C:\Users\2jung\AppData\Roaming\psychopy3\versions\psychopy\experiment_experiment.py”, line 210, in writeScript
self_copy.flow.writeBody(script)
File “C:\Users\2jung\AppData\Roaming\psychopy3\versions\psychopy\experiment\flow.py”, line 243, in writeBody
entry.writeInitCode(script)
File “C:\Users\2jung\AppData\Roaming\psychopy3\versions\psychopy\experiment\routine.py”, line 99, in writeInitCode
thisCompon.writeInitCode(buff)
File "C:\Users\2jung\AppData\Roaming\psychopy3\versions\psychopy\experiment\components\text_init
.py", line 120, in writeInitCode
buff.writeIndentedLines(code % inits)
File “C:\Users\2jung\AppData\Roaming\psychopy3\versions\psychopy\experiment\params.py”, line 204, in str
self.valType)
TypeError: Can’t represent a Param of type extendedStr

## Running: C:\Users\2jung\Desktop\JMY2020_v.2\PsychoPy_Exp\MRT_baseline_lastrun.py

Generating PsychoPy script…

pygame 1.9.6
Hello from the pygame community. Contribute - pygame wiki
4.6711 WARNING Parameter ‘Data file delimiter’ is not known to this version of PsychoPy but has come from your experiment file (saved by a future version of PsychoPy?). This experiment may not run correctly in the current version.
4.6712 WARNING Parameter ‘Resources’ is not known to this version of PsychoPy but has come from your experiment file (saved by a future version of PsychoPy?). This experiment may not run correctly in the current version.
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “C:\Program Files\PsychoPy3\lib\runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 250, in
compileScript(args.infile, args.version, args.outfile)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 242, in compileScript
_makeTarget(thisExp, outfile, targetOutput)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 221, in makeTarget
script = thisExp.writeScript(outfile, target=targetOutput)
File “C:\Users\2jung\AppData\Roaming\psychopy3\versions\psychopy\experiment_experiment.py”, line 210, in writeScript
self_copy.flow.writeBody(script)
File “C:\Users\2jung\AppData\Roaming\psychopy3\versions\psychopy\experiment\flow.py”, line 243, in writeBody
entry.writeInitCode(script)
File “C:\Users\2jung\AppData\Roaming\psychopy3\versions\psychopy\experiment\routine.py”, line 99, in writeInitCode
thisCompon.writeInitCode(buff)
File "C:\Users\2jung\AppData\Roaming\psychopy3\versions\psychopy\experiment\components\text_init
.py", line 120, in writeInitCode
buff.writeIndentedLines(code % inits)
File “C:\Users\2jung\AppData\Roaming\psychopy3\versions\psychopy\experiment\params.py”, line 204, in str
self.valType)
TypeError: Can’t represent a Param of type extendedStr

## Running: C:\Users\2jung\Desktop\JMY2020_v.2\PsychoPy_Exp\MRT_baseline_lastrun.py

306.3314 INFO C:\Program Files\PsychoPy3\python.exe -m psychopy.scripts.psyexpCompile C:\Users\2jung\Desktop\JMY2020_v.2\PsychoPy_Exp\MRT_baseline.psyexp -o C:\Users\2jung\Desktop\JMY2020_v.2\PsychoPy_Exp\MRT_baseline_lastrun.py -v latest
314.5340 INFO C:\Program Files\PsychoPy3\python.exe -m psychopy.scripts.psyexpCompile C:\Users\2jung\Desktop\JMY2020_v.2\PsychoPy_Exp\MRT_baseline.psyexp -o C:\Users\2jung\Desktop\JMY2020_v.2\PsychoPy_Exp\MRT_baseline_lastrun.py -v latest
C:\Program Files\PsychoPy3\python.exe: can’t open file ‘C:\Users\2jung\Desktop\JMY2020_v.2\PsychoPy_Exp\MRT_baseline_lastrun.py’: [Errno 2] No such file or directory

##### Experiment ended.

What version of PsychoPy are you using? extendedStr is a param type recently added, if you’re running an experiment made in a newer version on an older version then that would explain that error.

It’s 3.2.5 and I checked the latest version in the builder setting when creating the experiment. Do you recommend I reinstall and recreate the experiment? I already went through the process and I thought the version conflict shouldn’t have caused this error…

Thanks,

If you upgrade to the newest version, in theory you shouldn’t need to recreate the experiment! Based on your error message, it looks as though the experiment was created in a newer version than you’re using - older experiments can open in the newer versions as we add bits in to handle old parameters, but we can’t go back and change older versions to handle parameters which didn’t exist when they were released, so new experiments don’t always work in old versions.

Hello,
I have the same problem with one of my experients. I have made it in early version of PsychoPy. After I upgrated psychophy I could run the experiment perfectly but now I can not open it directly. First I open a new untitled.psyexp then I open my experiment file by importing it. But when I run the experiment it stops running after a while. I have checked but I can’t find where the problem is. It was running before

1 Like

I have the same exact problem and this screwed a condition in my ongoing experiment.