Page 1 of 1

Install incorrect?

Posted: Fri Sep 01, 2023 9:57 am
by water_35

I fetch faceswap use

Code: Select all

git clone https://github.com/deepfakes/faceswap.git

, and run

Code: Select all

pip install -r ./requirements/_requirements_base.txt
pip install -r ./requirements/requirements_nvidia.txt

then

Code: Select all

python faceswap.py gui

, appear:

Setting Faceswap backend to NVIDIA
Traceback (most recent call last):
File "/home/mc3/faceswap/faceswap.py", line 12, in <module>
from lib.cli import args as cli_args # pylint:disable=wrong-import-position
File "/home/mc3/faceswap/lib/cli/args.py", line 18, in <module>
from .actions import (DirFullPaths, DirOrFileFullPaths, DirOrFilesFullPaths, FileFullPaths,
File "/home/mc3/faceswap/lib/cli/actions.py", line 49, in <module>
class FileFullPaths(_FullPaths):
File "/home/mc3/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'

What's problem, how to solve it?


Re: Install incorrect?

Posted: Fri Sep 01, 2023 9:59 am
by torzdf

Use the installer.

Minimum python version is 3.10. You are using an older version. If you use the installer you won't have this issue.


Re: Install incorrect?

Posted: Sat Sep 02, 2023 6:30 pm
by water_35

Thanks, solved.