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
{{ message }}
Repository navigation
3.13: cannot run python -m tkinter due to missing init.tcl #126592
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\ahmad\AppData\Roaming\uv\python\cpython-3.13.0-windows-x86_64-none\Lib\tkinter\__main__.py", line 7, in <module>
main()
~~~~^^
File "C:\Users\ahmad\AppData\Roaming\uv\python\cpython-3.13.0-windows-x86_64-none\Lib\tkinter\__init__.py", line 4957, in _test
root = Tk()
File "C:\Users\ahmad\AppData\Roaming\uv\python\cpython-3.13.0-windows-x86_64-none\Lib\tkinter\__init__.py", line 2459, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
C:/Users/ahmad/AppData/Roaming/uv/python/cpython-3.13.0-windows-x86_64-none/lib/tcl8.6
C:/Users/ahmad/AppData/Roaming/uv/python/lib/tcl8.6
C:/Users/ahmad/AppData/Roaming/uv/lib/tcl8.6
C:/Users/ahmad/AppData/Roaming/uv/python/library
C:/Users/ahmad/AppData/Roaming/uv/library
C:/Users/ahmad/AppData/Roaming/uv/tcl8.6.12/library
C:/Users/ahmad/AppData/Roaming/tcl8.6.12/library
This probably means that Tcl wasn't installed properly.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Output from running 'python -VV' on the command line:
Python 3.13.0 (main, Oct 16 2024, 00:33:24) [MSC v.1929 64 bit (AMD64)]
If you installed experimental no-gil build, known issue. If venv involved, though not apparant here, fix in 3.13.1. See #126549 closed yesterday and references therein. Unless this is a truly different issue, it should be closed.
Activity
[-]python 3.13: tkinter crash[/-][+]3.13: cannot run `python -m tkinter` due to missing `init.tcl`[/+]terryjreedy commentedon Nov 9, 2024
If you installed experimental no-gil build, known issue. If venv involved, though not apparant here, fix in 3.13.1. See #126549 closed yesterday and references therein. Unless this is a truly different issue, it should be closed.
picnixz commentedon Dec 1, 2024
Closing as a duplicate. If the issue persists, please open a new one. Thanks.