Install incorrect?

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
water_35
Posts: 7
Joined: Sun Jul 25, 2021 10:41 am

Install incorrect?

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

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

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.

Go to full post
User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: Install incorrect?

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

My word is final

User avatar
water_35
Posts: 7
Joined: Sun Jul 25, 2021 10:41 am

Re: Install incorrect?

Post by water_35 »

Thanks, solved.

Locked