Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.13: cannot run python -m tkinter due to missing init.tcl #126592

Open
ahmadkakarr opened this issue Nov 8, 2024 · 1 comment
Open

3.13: cannot run python -m tkinter due to missing init.tcl #126592

ahmadkakarr opened this issue Nov 8, 2024 · 1 comment
Labels
OS-windows pending The issue will be closed if no feedback is provided topic-tkinter type-bug An unexpected behavior, bug, or error

Comments

@ahmadkakarr
Copy link

ahmadkakarr commented Nov 8, 2024

Bug report

What happened?

python -m tkinter
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)]

@ahmadkakarr ahmadkakarr added the type-crash A hard crash of the interpreter, possibly with a core dump label Nov 8, 2024
@picnixz picnixz added type-bug An unexpected behavior, bug, or error OS-windows topic-tkinter and removed type-crash A hard crash of the interpreter, possibly with a core dump labels Nov 8, 2024
@picnixz picnixz changed the title python 3.13: tkinter crash 3.13: cannot run python -m tkinter due to missing init.tcl Nov 8, 2024
@terryjreedy terryjreedy added the pending The issue will be closed if no feedback is provided label Nov 9, 2024
@terryjreedy
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows pending The issue will be closed if no feedback is provided topic-tkinter type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants