TkInter not found

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
imsammyd
Posts: 1
Joined: Sun Aug 16, 2020 9:02 pm

TkInter not found

Post by imsammyd »

Hi, just starting out with this. I am on a mac and I am trying to start the GUI for the first time.

code (base) $ python3 faceswap.py gui
Setting Faceswap backend to AMD
08/16/2020 15:57:10 INFO Log level set to: INFO
08/16/2020 15:57:13 ERROR It looks like TkInter isn't installed for your OS, so the GUI has been disabled. To enable the GUI please install the TkInter application. You can try:
08/16/2020 15:57:13 INFO Anaconda: conda install tk
08/16/2020 15:57:13 INFO Windows/macOS: Install ActiveTcl Community Edition from http://www.activestate.com
08/16/2020 15:57:13 INFO Ubuntu/Mint/Debian: sudo apt install python3-tk
08/16/2020 15:57:13 INFO Arch: sudo pacman -S tk
08/16/2020 15:57:13 INFO CentOS/Redhat: sudo yum install tkinter
08/16/2020 15:57:13 INFO Fedora: sudo dnf install python3-tkinter
08/16/2020 15:57:13 ERROR TkInter not found

[/code]

I installed Tk with Conda and also again with brew. If I try to run the Conda install, it says it's already there.

Code: Select all

(faceswapenv) (base) $ conda install tk
Collecting package metadata (current_repodata.json): done
Solving environment: done

[b]# All requested packages already installed.[/b]

Any ideas?

User avatar
torzdf
Posts: 2671
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 131 times
Been thanked: 625 times

Re: TkInter not found

Post by torzdf »

Please open terminal, activate conda and enter your faceswap folder. Then please post the output of this command:

Code: Select all

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

My word is final

Locked