GanerCodes / videoEditBot

Discord bot for video/photo editing
https://top.gg/bot/704169521509957703
The Unlicense
192 stars 63 forks source link

Unable to self-host (FileNotFoundError: [WinError 2] The system cannot find the file specified) #75

Open getCursorsExe opened 8 months ago

getCursorsExe commented 8 months ago

Traceback (most recent call last):
  File "C:\Users\mikol\Downloads\videoEditBot-dev\videoEditBot-dev\editor\videoEditor.py", line 1079, in videoEdit
    currentFilePath = edit(
                      ^^^^^
  File "C:\Users\mikol\Downloads\videoEditBot-dev\videoEditBot-dev\editor\videoEditor.py", line 308, in edit
    DURATION = getDur(newName)
               ^^^^^^^^^^^^^^^
  File "C:\Users\mikol\Downloads\videoEditBot-dev\videoEditBot-dev\editor\videoEditor.py", line 67, in getDur
    return get_output(["ffprobe", "-v", "error", "-show_entries", "format=duration", "-of", "default=noprint_wrappers=1:nokey=1", filename])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mikol\Downloads\videoEditBot-dev\videoEditBot-dev\editor\subprocessHelper.py", line 33, in get_output
    return Popen(command, shell = False, stdout = PIPE).communicate()[0].decode().strip()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python312\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Program Files\Python312\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] Nie można odnaleźć określonego pliku