I just encountered a different error with the same surface level behavior. In sum: A picture is presented. We record a verbal response and the trial ends when the experimenter hits a button to advance to the next trial. Trials will randomly “freeze” with the stimulus on the screen. I realized info from the log file might be helpful…
Generating PsychoPy script…
2023-03-02 12:37:28.707 python[2176:32599] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/qf/p7986zss0vgg4hqypnx504rc0000gq/T/org.opensciencetools.psychopy.savedState
Traceback (most recent call last):
File “runpy.pyc”, line 194, in _run_module_as_main
File “runpy.pyc”, line 87, in _run_code
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 253, in
compileScript(args.infile, args.version, args.outfile)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 242, in compileScript
thisExp = _getExperiment(infile, version)
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 132, in _getExperiment
from psychopy.app.builder import experiment
File “/Users/cabin/.psychopy3/versions/psychopy/app/builder/init.py”, line 4, in
from … import experiment
File “/Users/cabin/.psychopy3/versions/psychopy/experiment/init.py”, line 20, in
from .components import getInitVals, getComponents, getAllComponents
File “/Users/cabin/.psychopy3/versions/psychopy/experiment/components/init.py”, line 18, in
from ._base import BaseVisualComponent, BaseComponent
File “/Users/cabin/.psychopy3/versions/psychopy/experiment/components/_base.py”, line 19, in
from psychopy.alerts import alerttools
File “/Users/cabin/.psychopy3/versions/psychopy/alerts/alerttools.py”, line 9, in
from psychopy.visual.textbox2.fontmanager import FontManager
File “/Users/cabin/.psychopy3/versions/psychopy/visual/init.py”, line 29, in
from psychopy.visual.backends import gamma
File “/Users/cabin/.psychopy3/versions/psychopy/visual/backends/init.py”, line 11, in
import psychopy.plugins as plugins
File “/Users/cabin/.psychopy3/versions/psychopy/plugins/init.py”, line 29, in
import psychopy.tools.pkgtools as pkgtools
File “/Users/cabin/.psychopy3/versions/psychopy/tools/pkgtools.py”, line 39, in
if prefs.paths[‘packages’] not in pkg_resources.working_set.entries:
KeyError: ‘packages’
Running: /Users/cabin/Desktop/psychopy/session001/PICTURE_NAMING_A/PICTURE_NAMING_A_lastrun.py
1867.9266 INFO Loaded monitor calibration from [‘2022_08_17 13:27’]
2023-03-02 12:37:31.703 python[2186:32680] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/qf/p7986zss0vgg4hqypnx504rc0000gq/T/org.opensciencetools.psychopy.savedState
################ Experiment ended with exit code -15 [pid:2186] ################