I’ve spent much of this semester struggling to make a working Word Pronunciation Task. Along the way there have been some struggles with getting PsychoPy to run right on older (2009) computers.
BUG: "pyglet.gl.ContextException: Unable to share contexts […] “‘Window’ object has no attribute ‘useNativeGamma’”
SOLUTION: Add two lines to the top of the .py file, as explained here.
from __future__ import absolute_import, division # Fix pyglet 'shared environment' error import pyglet pyglet.options['shadow_window']=False # script continues as normal
BUG: “Portaudio not initialized” leads to crashes when using a microphone.
SOLUTION: Open Windows’ “Sound” panel, open the properties of your playback device, go to the advanced tab, and make sure that the default format is set to 44100Hz instead of 48000 Hz. As explained here.
For more details, see