KeyError: ‘audioLib’

Thanks a lot, Jon!

I updated it to:

import psychopy
psychopy.useVersion(‘1.90.2’)
from psychopy import prefs
prefs.general[‘audioLib’] = [‘pygame’, ‘pyo’]
prefs.general[‘audioDevice’] = [‘portaudio’]

and that fixed the 'KeyError: ‘audioLib’; error

However, now I’m getting this:

import pygame
ModuleNotFoundError: No module named ‘pygame’

Does this error relate to this? If so then is there an idiot-proof way of paraphrasing ‘Workaround 2: you should be able to get pygame working by installing it to another python3 installation on your system and then pointing PsychoPy preference for additional libs to include that folder’?

I’m very conscious that you passionately hate pygame, but it’s the only way I could find to play MIDI files (crucial to my experiment, unfortunately…).