ImportError: DLL load failed while importing win32console

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.
Post Reply
User avatar
ZZHAN
Posts: 1
Joined: Sat Oct 17, 2020 6:49 pm

ImportError: DLL load failed while importing win32console

Post by ZZHAN »

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

Code: Select all

(faceswap) 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

User avatar
torzdf
Posts: 948
Joined: Fri Jul 12, 2019 12:53 am
Answers: 126
Has thanked: 26 times
Been thanked: 184 times

Re: ImportError: DLL load failed while importing win32console

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

My word is final


Post Reply