Throws filenot found as Windowserror, below is logs
127.0.0.1 - - [14/Mar/2018 19:58:32] "POST /api/media HTTP/1.1" 500 -
Traceback (most recent call last):
File "H:\Projects\live\mediastore\lib\site-packages\flask\app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
File "H:\Projects\live\mediastore\lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "H:\Projects\live\mediastore\lib\site-packages\flask_cors\extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "H:\Projects\live\mediastore\lib\site-packages\flask\app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "H:\Projects\live\mediastore\lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "H:\Projects\live\mediastore\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "H:\Projects\live\mediastore\lib\site-packages\flask_cors\extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "H:\Projects\live\mediastore\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "H:\Projects\live\mediastore\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "H:\Projects\live\mediastore\lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "H:\Projects\live\mediastore\mediastore\mediastore.py", line 23, in decorated
return f(*args, **kwargs)
File "H:\Projects\live\mediastore\mediastore\mediastore.py", line 77, in create_media
audio.export(os.path.join(userdir, filename))
File "H:\Projects\live\mediastore\lib\site-packages\pydub\audio_segment.py", line 667, in export
p = subprocess.Popen(conversion_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:\Python27\Lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Python27\Lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Throws filenot found as Windowserror, below is logs