TextStim lead to "Fatal Python error: (pygame parachute) Segmentation Fault" in Debian Testing

I am experiencing the same issue on Ubuntu 17.04. A very simple script triggers the error:

from psychopy import visual
w = visual.Window()
t = visual.TextStim(w) # this triggers the error

pyglet is generally preferable to pygame. What happens when you use a pyglet window?

This is with a pyglet window. Whenever PyGame is loaded and a segmentation fault occurs, PyGame captures the fault and wraps it in a ‘pygame parachute’. It seems that PsychoPy always imports pygame, regardless of the window type (although I don’t see why), and hence this error. But the problem (probably) doesn’t involve PyGame.

System info: