Open uicodee opened 1 month ago
@uicodee Have you found a solution to the error? I'm facing the same issue
Try: sudo apt-get install ffmpeg
same issue, ffmpeg is installed.
python3 run.py --execution-provider coreml
[DLC.CORE] ffmpeg is not installed.
Traceback (most recent call last):
File "/Users/xxx/Documents/deep/Deep-Live-Cam/run.py", line 6, in <module>
core.run()
File "/Users/xxx/Documents/deep/Deep-Live-Cam/modules/core.py", line 236, in run
if not pre_check():
File "/Users/xxx/Documents/deep/Deep-Live-Cam/modules/core.py", line 158, in pre_check
update_status('ffmpeg is not installed.')
File "/Users/xxx/Documents/deep/Deep-Live-Cam/modules/core.py", line 166, in update_status
ui.update_status(message)
File "/Users/xxx/Documents/deep/Deep-Live-Cam/modules/ui.py", line 137, in update_status
status_label.configure(text=text)
AttributeError: 'NoneType' object has no attribute 'configure'
If you're using Linux you should add ffmpeg to path. If you're on Windows install it following this guide: https://phoenixnap.com/kb/ffmpeg-windows
I'm on macOS, which path? @Jaie55
Use echo "$PATH"
and check if ffmpeg is there.
If not add the bin to it, for example, if the FFmpeg binary is in /Users/test/local, type:export PATH=$PATH:/Users/test/Local
when i install via pip3
pip3 install ffmpeg
Requirement already satisfied: ffmpeg in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (1.4)
it shows ffmpeg is in
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/ffmpeg
@Jaie55
I quit terminal, now that's disappeared, now see
Traceback (most recent call last):
File "/Users/xxx/Documents/deep/Deep-Live-Cam/run.py", line 3, in <module>
from modules import core
File "/Users/xxx/Documents/deep/Deep-Live-Cam/modules/core.py", line 14, in <module>
import torch
ModuleNotFoundError: No module named 'torch'
install ffmpeg,i use homebrew install,brew install ffmpeg,fixed it
在core.py修改一下def pre_check() -> bool: if sys.version_info < (3, 9): update_status('Python version is not supported - please upgrade to 3.9 or higher.') return False
ffmpeg_path = "C:\\ffmpeg\\bin\\ffmpeg.exe"
if not os.path.isfile(ffmpeg_path):
update_status('ffmpeg is not installed.')
return False
return True
AttributeError: 'NoneType' object has no attribute 'configure'