No module named facewap.plugins faceswap is not a package

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.

Locked
User avatar
oneduality
Posts: 2
Joined: Sat Dec 05, 2020 2:11 am

No module named facewap.plugins faceswap is not a package

Post by oneduality »

Code: Select all

Setting Faceswap backend to NVIDIA
Traceback (most recent call last):
  File "x:\faceswap/faceswap.py", line 48, in <module>
    _main()
  File "x:\faceswap/faceswap.py", line 33, in _main
    generate_configs()
  File "x:\faceswap\lib\config.py", line 364, in generate_configs
    mod.Config(None)
  File "x:\faceswap\lib\config.py", line 27, in __init__
    self.set_defaults()
  File "x:\faceswap\plugins\convert\_config.py", line 31, in set_defaults
    self.load_module(filename, import_path, plugin_type)
  File "x:\faceswap\plugins\convert\_config.py", line 40, in load_module
    mod = import_module("{}.{}".format(module_path, module))
  File "C:\Users\lonnie\MiniConda3\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 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 970, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'faceswap.plugins'; 'faceswap' is not a package

I just installed it ( Windows 10 64 bit ) I already had miniconda installed and it did create the environment, but I followed the windows install guide. And yes I do have an NVIDIA .. RTX2080 Ti

I've already tried updating deps with python update_deps.py

Any thoughts?

I've tried googling this error but haven't seen any result for this specifically.

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

Re: No module named facewap.plugins faceswap is not a package

Post by torzdf »

Ideally, could you try to follow these steps first to try to resolve any conflicts/improperly configured packages first:

app.php/faqpage#f1r1

If the problem persists we can look to go from there.

My word is final

User avatar
facepaws
Posts: 1
Joined: Mon Dec 21, 2020 2:12 pm

Help,Cant open GUI.

Post by facepaws »

Code: Select all

C:\Users\sand>"C:\Users\sand\Miniconda3\scripts\activate.bat" && conda activate "faceswap" && python "d:\faceswap/faceswap.py" gui
Setting Faceswap backend to NVIDIA
Traceback (most recent call last):
  File "d:\faceswap/faceswap.py", line 48, in <module>
    _main()
  File "d:\faceswap/faceswap.py", line 33, in _main
    generate_configs()
  File "d:\faceswap\lib\config.py", line 365, in generate_configs
    mod.Config(None)
  File "d:\faceswap\lib\config.py", line 27, in __init__
    self.set_defaults()
  File "d:\faceswap\plugins\convert\_config.py", line 31, in set_defaults
    self.load_module(filename, import_path, plugin_type)
  File "d:\faceswap\plugins\convert\_config.py", line 40, in load_module
    mod = import_module("{}.{}".format(module_path, module))
  File "C:\Users\GodsLife\MiniConda3\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 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 970, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'faceswap.plugins'; 'faceswap' is not a package

code d:\faceswap>python update_deps.py
INFO Updating dependencies...
Setting Faceswap backend to NVIDIA
INFO Setup in Windows 10
INFO Installed Python: 3.8.5 64bit
INFO Running in Conda
INFO Running in a Virtual Environment
INFO Encoding: cp936
INFO Installed pip: 20.3.3
INFO All Dependencies are up to date
INFO Dependencies updated[/code]

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

Re: No module named facewap.plugins faceswap is not a package

Post by torzdf »

My word is final

User avatar
AtlasRedux
Posts: 9
Joined: Tue Feb 16, 2021 11:05 pm
Has thanked: 3 times
Been thanked: 2 times

Re: No module named facewap.plugins faceswap is not a package

Post by AtlasRedux »

Have the same issue.
Have tried reinstalling everything, completely nuked everything before reinstalling, clean reinstall, still the same.
Tried manually installing different Python versions, still the same (currently on 3.8.0).

Running update_deps.py shows all dependencies are up to date.
Still pukes out ---> ModuleNotFoundError: No module named 'faceswap.plugins'; 'faceswap' is not a package

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

Re: No module named facewap.plugins faceswap is not a package

Post by torzdf »

Ultimately this is system related rather than faceswap related. The best I can suggest is googling around it to see if you can find a solution

My word is final

User avatar
AtlasRedux
Posts: 9
Joined: Tue Feb 16, 2021 11:05 pm
Has thanked: 3 times
Been thanked: 2 times

Re: No module named facewap.plugins faceswap is not a package

Post by AtlasRedux »

Did a manual install. Works just fine then. Installer simply won't work, and manual install isn't that hard anyways, so all good here now.

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

Re: No module named facewap.plugins faceswap is not a package

Post by torzdf »

I'm glad it's working. That is pretty strange.

My word is final

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

Re: No module named facewap.plugins faceswap is not a package

Post by torzdf »

Ok. There was a bug which happens on some windows installs. I have pushed an update which should address this.

My word is final

Locked