Page 1 of 1

ImportError: DLL load failed while importing win32console

Posted: Sat Oct 17, 2020 7:03 pm
by ZZHAN

I can't launch the program.
This is the run log.

code PS C:\Users\Zhang Zihan> python C:\GitHub\deepfakes\faceswap\tree\master\faceswap.py gui
First time configuration. Please select the required backend
1: AMD, 2: CPU, 3: NVIDIA: 3
Faceswap config written to: C:\GitHub\deepfakes\faceswap\tree\master\config\.faceswap
Setting Faceswap backend to NVIDIA
10/18/2020 02:45:24 INFO Log level set to: INFO
'C:\Users\Zhang' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
10/18/2020 02:45:28 ERROR Got Exception on main handler:
Traceback (most recent call last):
File "C:\GitHub\deepfakes\faceswap\tree\master\lib\cli\launcher.py", line 180, in execute_script
script = self._import_script()
File "C:\GitHub\deepfakes\faceswap\tree\master\lib\cli\launcher.py", line 46, in _import_script
module = import_module(mod)
File "C:\Users\Zhang Zihan\.conda\envs\faceswap\lib\importlib\__init.py", line 127, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in gcd_import
File "<frozen importlib.
bootstrap>", line 991, in find_and_load
File "<frozen importlib.
bootstrap>", line 975, in find_and_load_unlocked
File "<frozen importlib.
bootstrap>", line 671, in load_unlocked
File "<frozen importlib.
bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\GitHub\deepfakes\faceswap\tree\master\scripts\gui.py", line 9, in <module>
from lib.gui import (TaskBar, CliOptions, CommandNotebook, ConsoleOut, DisplayNotebook,
File "C:\GitHub\deepfakes\faceswap\tree\master\lib\gui\__init
.py", line 9, in <module>
from lib.gui.wrapper import ProcessWrapper
File "C:\GitHub\deepfakes\faceswap\tree\master\lib\gui\wrapper.py", line 18, in <module>
import win32console # pylint: disable=import-error
ImportError: DLL load failed while importing win32console: 找不到指定的模块。
10/18/2020 02:45:28 CRITICAL An unexpected crash has occurred. Crash report written to 'C:\GitHub\deepfakes\faceswap\tree\master\crash_report.2020.10.18.024527074726.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting[/code]


Re: ImportError: DLL load failed while importing win32console

Posted: Sat Oct 17, 2020 10:31 pm
by torzdf

There is a missing DLL file on your system. Unfortunately, I won't know what it is, but I would guess it is fairly fundamental if win32console is unable to import.

I can't really give you any more help than that, other than to try to google the error.