Skip to content

Commit

Permalink
ENH/BF: Workaround for stderr confusion after importing sounddevice
Browse files Browse the repository at this point in the history
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 authored and peircej committed Jan 31, 2019
1 parent c0110db commit 1422fd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions psychopy/sound/backend_sounddevice.py
Expand Up @@ -18,6 +18,7 @@

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

0 comments on commit 1422fd7

Please sign in to comment.