Unable to start Faceswap after updating

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
MedicentBias
Posts: 1
Joined: Sun Dec 18, 2022 7:34 pm
Has thanked: 1 time

Unable to start Faceswap after updating

Post 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>
Last edited by torzdf on Sat Jul 15, 2023 12:28 pm, edited 1 time in total.
User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: Unable to start Faceswap after updating

Post 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.

Last edited by torzdf on Sat Jul 15, 2023 12:30 pm, edited 1 time in total.

My word is final

Locked