Weird Faceswap behaviour [ KeyError: 'faceswap' ]

If training is failing to start, and you are not receiving an error message telling you what to do, tell us about it here


Forum rules

Read the FAQs and search the forum before posting a new topic.

This forum is for reporting errors with the Training process. If you want to get tips, or better understand the Training process, then you should look in the Training Discussion forum.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
bumrit
Posts: 2
Joined: Tue Sep 20, 2022 2:15 am

Weird Faceswap behaviour [ KeyError: 'faceswap' ]

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

User avatar
bumrit
Posts: 2
Joined: Tue Sep 20, 2022 2:15 am

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

Post by bumrit »

Wait, nevermind, restarted pc and it started working

User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

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

Post by torzdf »

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

My word is final

Locked