I cant open Faceswap successfully ,UnicodeDecodeError

Getting errors or found a bug when converting faces from a trained model? Post about them here


Forum rules

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

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

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

Post Reply
User avatar
YSX
Posts: 2
Joined: Fri May 13, 2022 11:58 am
Answers: 1
Has thanked: 1 time

I cant open Faceswap successfully ,UnicodeDecodeError

Post by YSX »

Code: Select all

Traceback (most recent call last):
  File "C:\Users\USER\faceswap\lib\cli\launcher.py", line 181, in execute_script
    process = script(arguments)
  File "C:\Users\USER\faceswap\scripts\gui.py", line 179, in __init__
    self.root = FaceswapGui(arguments.debug)
  File "C:\Users\USER\faceswap\scripts\gui.py", line 34, in __init__
    self.build_gui()
  File "C:\Users\USER\faceswap\scripts\gui.py", line 58, in build_gui
    self.configure(menu=MainMenuBar(self))
  File "C:\Users\USER\faceswap\lib\gui\menu.py", line 47, in __init__
    self.help_menu = HelpMenu(self)
  File "C:\Users\USER\faceswap\lib\gui\menu.py", line 207, in __init__
    self.build()
  File "C:\Users\USER\faceswap\lib\gui\menu.py", line 220, in build
    if self._build_branches_menu():
  File "C:\Users\USER\faceswap\lib\gui\menu.py", line 241, in _build_branches_menu
    stdout = self._get_branches()
  File "C:\Users\USER\faceswap\lib\gui\menu.py", line 271, in _get_branches
    retcode, stdout.decode().strip().replace("\n", " - "))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 6: invalid start byte
Exception occured trying to retrieve sysinfo: 'C'
by YSX » Sat May 14, 2022 1:01 pm

Thank you!
you remind me to check my path
I can successfully open my faceswap now after deleted special characters in path

Go to full post

User avatar
torzdf
Posts: 1680
Joined: Fri Jul 12, 2019 12:53 am
Answers: 130
Has thanked: 70 times
Been thanked: 319 times

Re: I cant open Faceswap successfully ,UnicodeDecodeError

Post by torzdf »

Ok, this one is going to be hard to debug, as I expect there are special characters in your path. In the first instance please try to do this:

Start > Anaconda Prompt

In the terminal that pops up:

Code: Select all

conda activate faceswap
cd faceswap
python -c "from lib.sysinfo import sysinfo ; print(sysinfo)"

paste output here.

My word is final


User avatar
YSX
Posts: 2
Joined: Fri May 13, 2022 11:58 am
Answers: 1
Has thanked: 1 time

Re: I cant open Faceswap successfully ,UnicodeDecodeError

Post by YSX »

Thank you!
you remind me to check my path
I can successfully open my faceswap now after deleted special characters in path


Post Reply