Due to this issue, I’m trying to run an experiment using the “Use PsychoPy Version” option.
Whenever I try to use any version number (other than leaving it blank, the default), I get the following error upon trying to either sync or pilot in browser:
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 1646, in onPavloviaDebug
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/runner/runner.py”, line 688, in runOnlineDebug
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/scripts/psyexpCompile.py”, line 78, in generateScript
psychopy.scripts.psyexpCompile.LegacyScriptError: Error: Script compile exited with code 1. Traceback:
Traceback (most recent call last):
File “runpy.pyc”, line 196, in _run_module_as_main
File “runpy.pyc”, line 86, in _run_code
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/scripts/psyexpCompile.py”, line 229, in <module>
compileScript(args.infile, args.version, args.outfile)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/scripts/psyexpCompile.py”, line 218, in compileScript
version = _setVersion(version)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/scripts/psyexpCompile.py”, line 117, in _setVersion
useVersion(version)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/tools/versionchooser.py”, line 276, in useVersion
reload(psychopy)
File “importlib/__init__.pyc”, line 169, in reload
File “<frozen importlib._bootstrap>”, line 619, in _exec
File “<frozen importlib._bootstrap_external>”, line 883, in exec_module
File “<frozen importlib._bootstrap>”, line 241, in _call_with_frames_removed
File “/Users/abraver/.psychopy3/versions/psychopy/__init__.py”, line 90, in <module>
os.environ.update(env)
File “_collections_abc.pyc”, line 999, in update
File “os.pyc”, line 685, in __setitem__
File “os.pyc”, line 757, in encode
TypeError: str expected, not PosixPath
If anyone has any suggestions I’d be most appreciative!
OS (e.g. Win10): MacOS 15.5
PsychoPy version (e.g. 2024.2.4 Py 3.8): 2025.1.1
Standard Standalone Installation? (y/n) If not then what?: yes
Do you want it to also run online? (y/n) yes