Skip to content

BUG: broken tcl on Python 3.13.0 for Windows #346

Closed
@neutrinoceros

Description

@neutrinoceros

Hi !
I ran into a crash as I tried upgrading some uv-powered CIs to Python 3.13.0, specifically on Windows.
In short, here's the error message I'm getting

E       _tkinter.TclError: Can't find a usable init.tcl in the following directories: 
E           C:/Users/runneradmin/AppData/Roaming/uv/python/cpython-3.13.0-windows-x86_64-none/lib/tcl8.6 C:/Users/runneradmin/AppData/Roaming/uv/python/lib/tcl8.6 C:/Users/runneradmin/AppData/Roaming/uv/lib/tcl8.6 C:/Users/runneradmin/AppData/Roaming/uv/python/library C:/Users/runneradmin/AppData/Roaming/uv/library C:/Users/runneradmin/AppData/Roaming/uv/tcl8.6.12/library C:/Users/runneradmin/AppData/Roaming/tcl8.6.12/library
E       
E       
E       
E       This probably means that Tcl wasn't installed properly.

See a complete minimal reproducer workflow run at
https://github.com/neutrinoceros/reprod-mpl-win-python-3.13-bug/actions/runs/11267957255/job/31333940631

where I run 6 combos:

  • ubuntu-latest + Python 3.13 (from GHA)
  • ubuntu-latest + Python 3.13 (from uv)
  • windows-latest + Python 3.12 (from GHA)
  • windows-latest + Python 3.12 (from uv)
  • windows-latest + Python 3.13 (from GHA)
  • windows-latest + Python 3.13 (from uv)

and only the last one fails

possibly related to #313

For reference, I do have a workaround for this problem in the real life application I want to test, so this is not necessarily high priority for me, but it seems likely that others might bump into this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions