| Reference | Downloads | Github

AttributeError: pyo server not created Error in microphone.AudioCapture()

I am trying to open the microphone to record using it.

from psychopy import microphone
ac = microphone.AudioCapture()

But I get the error:

Traceback (most recent call last):
  File "/Users/ok/anaconda3/envs/myEnv/lib/python3.5/site-packages/IPython/core/", line 2885, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-30-75b2a25e63ac>", line 1, in <module>
    ac = microphone.AudioCapture()
  File "/Users/ok/anaconda3/envs/myEnv/lib/python3.5/site-packages/psychopy/", line 170, in __init__
    raise AttributeError('pyo server not created')
AttributeError: pyo server not created

Any idea why?

Hi, perhaps you would like to follow a similar issue on GitHub:

@dvbridges Hi, I am using coding (not builder) and MAC (not windows) so I an not really sure if any solution there can be applied to my case…

Thats ok, there is no solution as of yet, we are trying to gain information about why people are seeing this error, considering we cannot recreate it here in our lab.

@dvbridges Sure , please let me know if there is any additional information you would like to to provide

If you would not mind, please go to the Github link and provide the details of you sound card, mic and drivers being used.

@dvbridges I used all defaults, didn’t change anything from the store mac…


@oren, did you test your mic input with another software?

@belangeo No, How would you suggest me to do so?

@oren audacity is a free and cross-platform audio editor. You can monitor and record from the microphone with it.