Hi everyone!
OS: OSX El Capitan 10.11.6
PsychoPy version: 1.85.1
Standard Standalone? (y/n): Yes
I just updated Psychopy 2 to version 1.85.1. When trying to check for proper hardware function by running the demo “voiceCapture”, I get the following error message:
2017-04-19 12:58:29.604 python[1137:221943] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/r_/cxrr8dr97dl2nc_vpnn7kbr40000gn/T/org.psychopy.PsychoPy2.savedState
Traceback (most recent call last):
File “/Users/marcos/Documents/PsychoPy2 Demos/voiceCapture/voiceCapture_lastrun.py”, line 199, in
mic = microphone.AdvAudioCapture(name=‘mic’, saveDir=wavDirName, stereo=False)
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/microphone.py”, line 357, in init
self.setMarker()
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/microphone.py”, line 402, in setMarker
sampleRate = sound.pyoSndServer.getSamplingRate()
AttributeError: ‘NoneType’ object has no attribute 'getSamplingRate’
Exception TypeError: “‘NoneType’ object is not callable” in <bound method Server.del of <pyolib.server.Server object at 0x1119c3c10>> ignored
I’d appreciate it if you could tell me what may not be set up properly to capture sound.
BTW, the mic is on and this did not happen with version 1.84.
I’m actually having the exact same problem. I’ve tried using ‘pyo’, ‘pygame’, ‘sounddevice’, and ‘pysoundcard’ in preferences > General, but for some reason it hasn’t been working. When I use ‘sounddevice’ or ‘pysoundcard’, it instead says ‘AttributeError: pyo server not created’. Are there any other audio library list entries that might be recommended?
Had the same issue (v1.85.1). Seems like pyoSndServer is not being created properly. You can try simply replacing the calls to sound.pyoSndServer.getSamplingRate() in microphone.py with the precise sample rate you’re using, most likely 48000. This gets it to record on my install at least. Haven’t checked that all the microphone methods work though.