Page 1 of 1

Unable to start Faceswap after updating

Posted: Fri Jul 14, 2023 2:31 pm
by MedicentBias

Hi experts

I ran an update and now Faceswap won't start. Should I try to repair or uninstall/reinstall? Below is the output from my PC

Code: Select all

C:\Users\admin\faceswap>faceswap_win_launcher.bat

C:\Users\admin\faceswap>"C:\Users\admin\Miniconda3\scripts\activate.bat"   && conda activate "faceswap"   && python "C:\Users\admin\faceswap/faceswap.py" gui
Setting Faceswap backend to NVIDIA
Traceback (most recent call last):
  File "C:\Users\admin\faceswap\faceswap.py", line 12, in <module>
    from lib.cli import args as cli_args  # pylint:disable=wrong-import-position
  File "C:\Users\admin\faceswap\lib\cli\args.py", line 18, in <module>
    from .actions import (DirFullPaths, DirOrFileFullPaths, DirOrFilesFullPaths, FileFullPaths,
  File "C:\Users\admin\faceswap\lib\cli\actions.py", line 49, in <module>
    class FileFullPaths(_FullPaths):
  File "C:\Users\admin\faceswap\lib\cli\actions.py", line 72, in FileFullPaths
    def __init__(self, *args, filetypes: str | None = None, **kwargs) -> None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

(faceswap) C:\Users\admin\faceswap>

Re: Unable to start Faceswap after updating

Posted: Sat Jul 15, 2023 12:29 pm
by torzdf

You need to do a full reinstall. A recent update bumped the minimum version of Python. The version you are on is no longer supported. A full reinstall will fix this.. Just downloading and running the latest faceswap installer should suffice.