You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a similar issue, only in Python 3.13.0 (Windows). But it doesn't seem like this problem will come up every time, it's weird.
At first, I thought it was something wrong with my environment, but now it seems that I'm not the only one who has encountered it. By the way, I ran into this issue when I was using pytest to test code related to tkinter.
terryjreedy
changed the title
When importing PySimpleGUI or FreeSimpleGUI, python ends with "_tkinter.TclError: Can't find a usable init.tcl in the following directories:"
tkinter.Tk() sometimes fails
Nov 7, 2024
Closing as a duplicate of #118973 (tkinter fails in installed free-threading build) or, more likely here, #125235 (tkinter fails in venv). Fix for latter in 3.13.1.
Bug report
Bug description:
or
results in the following Traceback (for import PySimpleGUI):
This does not occur using python 3.12.7
It can be worked around using the following code:
CPython versions tested on:
3.13
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: