Are you using the standalone version of PsychoPy?
If not, what version of pyglet do you have installed? See this thread:
pyglet