coderholic/pyradio — Issue #4: Crash on playback
Author: jmccrohan
Created: 2011-12-16 10:33:05+00:00
State: open

Hi,

The latest master is crashing for me when I press enter to play a stream.
Tested on both Debian Stable and Debian Testing.

Regards,
Jon

```
user@host:/tmp/pyradio$ ./pyradio
Error, skipping # Find lots more stations at http://www.iheard.com
Traceback (most recent call last):
File "./pyradio", line 324, in
curses.wrapper(pyRadio.setup)
File "/usr/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "./pyradio", line 136, in setup
self.run()
File "./pyradio", line 213, in run
ret = self.keypress(c)
File "./pyradio", line 250, in keypress
self.playSelection()
File "./pyradio", line 238, in playSelection
self.player.play(stream_url)
File "./pyradio", line 73, in play
self.process = subprocess.Popen(opts, shell=False, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
```