Comment 1 for bug 595946

Revision history for this message
Kymair Wu (kymair) wrote :

I've encountered the same error..
I was thinking maybe it was caused by space within the path, however it still didn't work after I changed the filename, checked the permission..

Handling request for /srv/music/10.Hey_Stephen.mp3
----------------------------------------
Exception happened during processing of request from ('::ffff:10.222.48.55', 48078, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "/srv/software/zeya/zeya.py", line 134, in do_GET
    self.serve_content(urllib.unquote(self.path[12:]))
  File "/srv/software/zeya/zeya.py", line 183, in serve_content
    backend.get_content(key, output_file, bitrate, buffered=True)
  File "/srv/software/zeya/backends.py", line 171, in get_content
    filename_to_stream(filename, out_stream, bitrate, buffered)
  File "/srv/software/zeya/backends.py", line 78, in filename_to_stream
    p2 = subprocess.Popen(encode_command, stdin=p1.stdout, stdout=subprocess.PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 621, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1126, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory