How can I open a Task created with a very old Psychopy version?

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Windows Surface Pro
PsychoPy version (e.g. 1.84.x): old one was 3.0.2, new one is the latest one 2023.2.3
Standard Standalone? (y/n) If not then what?: Standalone
What are you trying to achieve?: I am trying to open a PsychoPy task I have created with a previous version (it was version 3.0.2) with the latest version (2023.2.3) and it does not open even after I have adjusted the version from ‘Settings’ as recommended by PsychoPy website.

What did you try to make it work?:
I tried to adjust the version from Settings, restarted, looked for similar problem in the forum and the PsychoPy website. I even tried with other versions i had in my older laptops

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.
I received this error below and advised to contact the developers:
Traceback (most recent call last):
File “C:\Users\GChronaki\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 1275, in runFile
self.app.runner.panel.runLocal(event)
File “C:\Users\GChronaki\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\app\runner\runner.py”, line 749, in runLocal
generateScript(experimentPath=currentFile.replace(‘.psyexp’, ‘_lastrun.py’),
File “C:\Users\GChronaki\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 86, in generateScript
raise LegacyScriptError(
psychopy.scripts.psyexpCompile.LegacyScriptError: Error: Script compile exited with code 1. Traceback:
Traceback (most recent call last):
File “C:\Users\GChronaki\AppData\Local\Programs\PsychoPy\lib\runpy.py”, line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File “C:\Users\GChronaki\AppData\Local\Programs\PsychoPy\lib\runpy.py”, line 87, in run_code
exec(code, run_globals)
File “C:\Users\GChronaki\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 237, in
compileScript(args.infile, args.version, args.outfile)
File “C:\Users\GChronaki\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 227, in compileScript
thisExp = getExperiment(infile, version)
File “C:\Users\GChronaki\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 154, in getExperiment
from psychopy.app.builder import experiment
File "C:\Users\GChronaki\AppData\Roaming\psychopy3\versions\psychopy\app\builder_init
.py", line 4, in
from … import experiment
File "C:\Users\GChronaki\AppData\Roaming\psychopy3\versions\psychopy\experiment_init
.py", line 20, in
from .components import getInitVals, getComponents, getAllComponents
File "C:\Users\GChronaki\AppData\Roaming\psychopy3\versions\psychopy\experiment\components_init
.py", line 17, in
from .base import BaseVisualComponent, BaseComponent
File “C:\Users\GChronaki\AppData\Roaming\psychopy3\versions\psychopy\experiment\components_base.py”, line 19, in
from psychopy.alerts import alerttools
File “C:\Users\GChronaki\AppData\Roaming\psychopy3\versions\psychopy\alerts\alerttools.py”, line 9, in
from psychopy.visual.textbox2.fontmanager import FontManager
File "C:\Users\GChronaki\AppData\Roaming\psychopy3\versions\psychopy\visual_init
.py", line 29, in
from psychopy.visual.backends import gamma
File “C:\Users\GChronaki\AppData\Roaming\psychopy3\versions\psychopy\visual\backends\gamma.py”, line 16, in
from psychopy.tests import _vmTesting
ModuleNotFoundError: No module named ‘psychopy.tests’

Please could you upload your psyexp file here. I might be able to open it with an intermediate version.

ProsodySemantics_Female_Task_V2.zip (5.6 MB)
Hello wakecarter, thank you so much for your response. I have managed to open the task with the latest version but when I run it I can no longer hear the sound file (voice) in the task (this is a task asking participants to hear voices of people and press a button to indicate how the person/voice feels, e.g. angry, happy, sad, scared, neutral). I have uploaded the task here (with only the practice voice stimuli otherwise the file is too big). I have checked my laptop sound settings and I can hear the sound (.wav extension) when I click on it in the folder. I would be extremely grateful if you could have a look and tell me what you think.
Thank you again,
Georgia
Manchester, UK

I just tried it in 2023.2.3 and it played all of the practice sound files.

I’m using a Dell laptop with Windows 10. The audio library was ptb with latency priority 3.

I’d recommend checking your sound settings in Experiment Settings / Audio and trying on a different computer. You could also try a simple experiment that just plays one of the sound files.

Thank you very much for your help. This reply has solved my problem. I can indeed play the the sound files from another computer which means the problem was my laptop. Thank you! Georgia