Error module

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
thenrique
Posts: 6
Joined: Tue Sep 29, 2020 4:50 pm

Error module

Post by thenrique »

Code: Select all

python faceswap.py -h
Traceback (most recent call last):
  File "/home/thenrique/faceswap/faceswap.py", line 6, in <module>
    from lib.cli import args as cli_args
  File "/home/thenrique/faceswap/lib/cli/args.py", line 12, in <module>
    from lib.utils import get_backend
  File "/home/thenrique/faceswap/lib/utils.py", line 17, in <module>
    from tqdm import tqdm
ModuleNotFoundError: No module named 'tqdm'

OS: Arch Linux

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: Error module

Post by bryanlyon »

The app.php/faqpage#f1r1 still applies, though it's written more for windows. Another option is to open the faceswap conda env and run update_deps.py to update all requirements.

User avatar
thenrique
Posts: 6
Joined: Tue Sep 29, 2020 4:50 pm

Re: Error module

Post by thenrique »

bryanlyon wrote: Tue Oct 26, 2021 2:34 pm

The app.php/faqpage#f1r1 still applies, though it's written more for windows. Another option is to open the faceswap conda env and run update_deps.py to update all requirements.

I entered the directory below and tried to run an update

Code: Select all

/home/thenrique/faceswap

Code: Select all

python update_deps.py
INFO    Updating dependencies...
Traceback (most recent call last):
  File "/home/thenrique/faceswap/update_deps.py", line 32, in <module>
    main()
  File "/home/thenrique/faceswap/update_deps.py", line 26, in main
    update = Environment(logger=logger, updater=True)
  File "/home/thenrique/faceswap/setup.py", line 50, in __init__
    self.process_arguments()
  File "/home/thenrique/faceswap/setup.py", line 106, in process_arguments
    from lib.utils import get_backend  # pylint:disable=import-outside-toplevel
  File "/home/thenrique/faceswap/lib/utils.py", line 17, in <module>
    from tqdm import tqdm
ModuleNotFoundError: No module named 'tqdm'
User avatar
thenrique
Posts: 6
Joined: Tue Sep 29, 2020 4:50 pm

Re: Error module

Post by thenrique »

bryanlyon wrote: Tue Oct 26, 2021 2:34 pm

The app.php/faqpage#f1r1 still applies, though it's written more for windows. Another option is to open the faceswap conda env and run update_deps.py to update all requirements.

I uninstalled and installed again, interface mode giving this error below, via terminal is going, I have not done the whole process yet to know if there will be future errors

Code: Select all

faceswap.py gui
Setting Faceswap backend to NVIDIA
10/27/2021 13:44:40 INFO     Log level set to: INFO
(Illegal instruction (core image saved)
User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: Error module

Post by torzdf »

The obvious question here is "are you in the faceswap virtual environment"? If not, that will be why tqdm won't load.

My word is final

Locked