Sorry for creating two posts in two days, but I’m stumped here…
The following script should print “Hello”, allocate a TextStim, print “Survived!”, and exit. However, it crashes the interpreter when it tries to allocate the TextStim!
from psychopy import visual,core,event,logging,sound,microphone win = visual.Window(fullscr=True,color='black',screen=0) clock = core.Clock() microphone.switchOn(sampleRate=44100) print "Hello" visual.TextStim(win,"Hello") print "Survived!" assert False
The worrying thing is that, if you comment out the microphone line, it works without a problem!
This is on Win7 x64 using PsychoPy 1.84.2. It also happens on PsychoPy 1.85.2, but there you need to patch PsychoPy using instructions here: Voice capture crashes to work around AttributeError: 'NoneType' object has no attribute 'getSamplingRate'.
I could really, really use some help here
I really need both text and microphone!