When I tried to change the window icon in the top left corner from the ugly red \"TK\" to my own favicon using the code below, Python threw an error:
from tk
Make sure the .ico file isn't corrupted as well. I got the same error which went away when I tried a different .ico file.