Permalink
Browse files

ENH/BF: Workaround for stderr confusion after importing sounddevice

Fixes GH-2230.

Old behavior:
```
In [1]: from psychopy.sound import Sound
pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html

In [2]: input('foo> ')
bar.
Out[2]: 'bar.'
```

New behavior:
```
In [1]: from psychopy.sound import Sound
pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html

In [2]: input('foo> ')
foo> bar.
Out[2]: 'bar.'
```
  • Loading branch information...
hoechenberger committed Jan 30, 2019
1 parent 26dc8c9 commit f99bef4a9d0bd5a17586b8fb96fb539d390ea874
Showing with 1 addition and 0 deletions.
  1. +1 −0 psychopy/sound/backend_sounddevice.py
@@ -18,6 +18,7 @@

try:
import sounddevice as sd
import readline # Work around GH-2230.
except Exception:
raise DependencyError("sounddevice not working")
try:

0 comments on commit f99bef4

Please sign in to comment.