Page 1 of 1

I cant open Faceswap successfully ,UnicodeDecodeError

Posted: Fri May 13, 2022 3:46 pm
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'

Re: I cant open Faceswap successfully ,UnicodeDecodeError

Posted: Fri May 13, 2022 10:12 pm
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.


Re: I cant open Faceswap successfully ,UnicodeDecodeError

Posted: Sat May 14, 2022 1:01 pm
by YSX

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