Advertisement
Guest User

pydub error

a guest
Dec 7th, 2013
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.22 KB | None | 0 0
  1.  
  2. doit()
  3. ---------------------------------------------------------------------------
  4. WindowsError                              Traceback (most recent call last)
  5. <ipython-input-5-e145d4b943d3> in <module>()
  6. ----> 1 doit()
  7.  
  8. <ipython-input-4-c0e1f54adbd6> in doit()
  9.       7 # g.es(r"d:\Dropbox\MY LEO FILES\LEO FILES\I_Programming\FILES\SCRIPTS\balabolka_console\0WavOut.wav")
  10.       8 #os.startfile(os.path.join(c.openDirectory,r"FILES\SCRIPTS\balabolka_console")+r'\0WavOut.wav')
  11. ----> 9     wav.export(r"d:\Dropbox\MY LEO FILES\LEO FILES\I_Programming\FILES\SCRIPTS\balabolka_console\5WavOut.mp3",format="mp3")
  12.      10
  13.  
  14. c:\python27\lib\site-packages\pydub-0.8.3-py2.7.egg\pydub\audio_segment.pyc in export(self, out_f, format, codec, bitrate, parameters, tags, id3v2_version)
  15.     360         subprocess.call(convertion_command,
  16.     361                         # make converter shut up
  17. --> 362                         stderr=open(os.devnull)
  18.     363                         )
  19.     364
  20.  
  21. c:\python27\lib\subprocess.pyc in call(*popenargs, **kwargs)
  22.     522     retcode = call(["ls", "-l"])
  23.     523     """
  24. --> 524     return Popen(*popenargs, **kwargs).wait()
  25.    525
  26.    526
  27.  
  28. c:\python27\lib\subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
  29.    709                                 p2cread, p2cwrite,
  30.    710                                 c2pread, c2pwrite,
  31. --> 711                                 errread, errwrite)
  32.    712         except Exception:
  33.    713             # Preserve original exception in case os.close raises.
  34.  
  35. c:\python27\lib\subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)
  36.    946                                          env,
  37.    947                                          cwd,
  38. --> 948                                          startupinfo)
  39.    949             except pywintypes.error, e:
  40.    950                 # Translate pywintypes.error to WindowsError, which is
  41.  
  42. WindowsError: [Error 2] The system cannot find the file specified
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement