deepfakes / faceswap

Deepfakes Software For All
https://www.faceswap.dev
GNU General Public License v3.0
49.94k stars 13.01k forks source link

TypeError: 'type' object is not subscriptable #1351

Closed oolYang closed 10 months ago

oolYang commented 10 months ago

(faceswap3.9) zcb@zcb:~/ys1/faceswap-master$ python faceswap.py -h Setting Faceswap backend to CPU Traceback (most recent call last): File "faceswap.py", line 12, in from lib.cli import args as cli_args # pylint:disable=wrong-import-position File "/home/zcb/ys1/faceswap-master/lib/cli/args.py", line 14, in from lib.gpu_stats import GPUStats File "/home/zcb/ys1/faceswap-master/lib/gpu_stats/init.py", line 9, in from ._base import set_exclude_devices, GPUInfo File "/home/zcb/ys1/faceswap-master/lib/gpu_stats/_base.py", line 11, in _EXCLUDE_DEVICES: list[int] = [] TypeError: 'type' object is not subscriptable

YashIngle21 commented 10 months ago

please use just.... (_EXCLUDE_DEVICES = []) or (_EXCLUDE_DEVICES: List[int] = []) instead. I am new to open source so please pardon if its now the right way to contribute... for the second (from typing import List). Please tell me if it works or not.

deepfakes commented 10 months ago

You are using the wrong minimum Python version.

Minimum is 3.10

YashIngle21 commented 10 months ago

So can you please tell me what the solution was.

deepfakes commented 10 months ago

Install a new version of Python or, even easier, use our installer in https://github.com/deepfakes/faceswap/releases/latest as it handles all of this for you

YashIngle21 commented 10 months ago

ok thx.....Can you please give me any tips on how to start open source contributions and how to read large codebases. I tried to find answers online but didnt get any satisfactory answers?

deepfakes commented 10 months ago

This is not a support forum, it is for issues with the code. If you require support please use our forum or our Discord

YashIngle21 commented 10 months ago

ok