bmcfee/muda

Running Error on Spyder in windows 10

cdyao opened this issue · 2 comments

cdyao commented

I've got the following error when I run this code on Spyder in Windows 10.
Did I miss anything from installation?
Thanks

drc = muda.deformers.DynamicRangeCompression(preset=preset)
for i, jam_out in enumerate(drc.transform(j_orig)):
   ....
 File "<ipython-input-36-e0cb52928d80>", line 1, in <module>
    runfile('Z:/tingyao.chen/2018_0503_ASC/muda/muda_test.py', wdir='Z:/tingyao.chen/2018_0503_ASC/muda')

  File "C:\Users\yao\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
    execfile(filename, namespace)

  File "C:\Users\yao\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "Z:/tingyao.chen/2018_0503_ASC/muda/muda_test.py", line 23, in <module>
    for i, jam_out in enumerate(drc.transform(j_orig)):

  File "C:\Users\yao\Anaconda3\lib\site-packages\muda\base.py", line 145, in transform
    yield self._transform(jam, state)

  File "C:\Users\yao\Anaconda3\lib\site-packages\muda\base.py", line 113, in _transform
    self.audio(jam_w.sandbox.muda, state)

  File "C:\Users\yao\Anaconda3\lib\site-packages\muda\deformers\sox.py", line 148, in audio
    state['preset'])

  File "C:\Users\yao\Anaconda3\lib\site-packages\muda\deformers\sox.py", line 93, in drc
    return __sox(y, sr, 'compand', *PRESETS[preset])

  File "C:\Users\yao\Anaconda3\lib\site-packages\muda\deformers\sox.py", line 59, in __sox
    subprocess.check_call(arguments)

  File "C:\Users\yao\Anaconda3\lib\subprocess.py", line 286, in check_call
    retcode = call(*popenargs, **kwargs)

  File "C:\Users\yao\Anaconda3\lib\subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:

  File "C:\Users\yao\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 210, in __init__
    super(SubprocessPopen, self).__init__(*args, **kwargs)

  File "C:\Users\yao\Anaconda3\lib\subprocess.py", line 709, in __init__
    restore_signals, start_new_session)

  File "C:\Users\yao\Anaconda3\lib\subprocess.py", line 997, in _execute_child
    startupinfo)

FileNotFoundError: [WinError 2] 系統找不到指定的檔案。                                              

Do you have sox installed? This is hard thing for pip to check at install time, because sox is not a python package and does not live in the pypi dependency namespace.

cdyao commented

Thanks!. After installing sox and place sox.exe in the same folder as my python code, it worked!