gentnerlab / pyoperant

python package for operant conditioning
BSD 3-Clause "New" or "Revised" License
13 stars 15 forks source link

suppress alsa warnings #107

Open neuromusic opened 8 years ago

neuromusic commented 8 years ago

see http://stackoverflow.com/questions/7088672/pyaudio-working-but-spits-out-error-messages-each-time

siriuslee commented 8 years ago

I'll take a go at this.

siriuslee commented 8 years ago

So, after working a bit on this, the solution suggested by Nils Werner in the stackoverflow thread works nicely. There are a few remaining warnings that are not produced by alsa that should perhaps also be suppressed, namely:

Cannot connect to server socket err = No such file or directory Cannot connect to server socket jack server is not running or cannot be started

Also, instead of completely suppressing these warnings, I propose we convert them to logging debug messages whenever we get around to implementing that.

siriuslee commented 8 years ago

This blog post is relevant: http://blog.yjl.im/2012/11/pyaudio-portaudio-and-alsa-messages.html