Page 1 of 1

Weird Faceswap behaviour [ KeyError: 'faceswap' ]

Posted: Tue Sep 20, 2022 2:24 am
by bumrit

I've been using faceswap for quite some time and suddenly today, at first the training became super slow, so i Ctrl+C to stop and figure out what was happening.
Then, when I tried to run again i got the following error, not sure what this means, couldn't find another instance of this on the forum either.

I run faceswap on a 2070 Super

Code: Select all

Traceback (most recent call last):
  File "<frozen importlib._bootstrap_external>", line 1362, in _path_importer_cache
KeyError: 'faceswap'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "faceswap/faceswap.py", line 3, in <module>
    import gettext
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 982, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 925, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1423, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1392, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1364, in _path_importer_cache
  File "<frozen importlib._bootstrap_external>", line 1340, in _path_hooks
  File "<frozen importlib._bootstrap_external>", line 1610, in path_hook_for_FileFinder
  File "<frozen importlib._bootstrap_external>", line 1486, in __init__
FileNotFoundError: [Errno 2] No such file or directory

Help me out please, thanks.


Re: Weird Faceswap behaviour [ KeyError: 'faceswap' ]

Posted: Tue Sep 20, 2022 2:36 am
by bumrit

Wait, nevermind, restarted pc and it started working


Re: Weird Faceswap behaviour [ KeyError: 'faceswap' ]

Posted: Thu Sep 22, 2022 11:14 am
by torzdf

I'm glad, because I was struggling to understand what was causing the issue :wink: