ffmpeg-python
ffmpeg-python copied to clipboard
AttributeError: module 'ffmpeg' has no attribute '_run'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\runpy.py", lin
e 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\runpy.py", lin
e 87, in run_code
exec(code, run_globals)
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\Scripts\spleeter.e
xe_main.py", line 7, in
spleeter_main
typer\main.py", line 214, in call
return get_command(self)(*args, **kwargs)
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\site-packages
click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\site-packages
click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\site-packages
click\core.py", line 1259, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\site-packages
click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\site-packages
click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\site-packages
typer\main.py", line 497, in wrapper
return callback(**use_params) # type: ignore
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\site-packages
spleeter_main.py", line 128, in separate
separator.separate_to_file(
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\site-packages
spleeter\separator.py", line 372, in separate_to_file
waveform, _ = audio_adapter.load(
File "C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\lib\site-packages
spleeter\audio\ffmpeg.py", line 102, in load
except ffmpeg._run.Error as e:
AttributeError: module 'ffmpeg' has no attribute '_run'
C:\Users\JohnDoe\AppData\Local\Programs\Python\Python38\Scripts>
same issue
AttributeError: module 'ffmpeg' has no attribute 'input'
brew install ffmpeg
poetry add ffmpeg-python
then try again