hacksider / Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image
GNU Affero General Public License v3.0
34.59k stars 4.88k forks source link

AttributeError: 'NoneType' object has no attribute 'configure' #123

Open uicodee opened 1 month ago

uicodee commented 1 month ago
status_label.configure(text=text)

AttributeError: 'NoneType' object has no attribute 'configure'

AlphaKh commented 1 month ago

@uicodee Have you found a solution to the error? I'm facing the same issue

fmros commented 4 weeks ago

Try: sudo apt-get install ffmpeg

klssland commented 3 weeks ago

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'
Jaie55 commented 3 weeks ago

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

klssland commented 3 weeks ago

I'm on macOS, which path? @Jaie55

Jaie55 commented 3 weeks ago

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

klssland commented 3 weeks ago

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'
wowker commented 3 weeks ago

install ffmpeg,i use homebrew install,brew install ffmpeg,fixed it

1574300748 commented 2 weeks ago

在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的路径

ffmpeg_path = "C:\\ffmpeg\\bin\\ffmpeg.exe"
if not os.path.isfile(ffmpeg_path):
    update_status('ffmpeg is not installed.')
    return False
return True