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

BUG: broken tcl on Python 3.13.0 for Windows #346

Closed
neutrinoceros opened this issue Oct 10, 2024 · 2 comments
Closed

BUG: broken tcl on Python 3.13.0 for Windows #346

neutrinoceros opened this issue Oct 10, 2024 · 2 comments

Comments

@neutrinoceros
Copy link

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.

@neutrinoceros
Copy link
Author

Actually this might be an upstream issue in CPython itself: python/cpython#125235
It is a bit far from my expertise to tell for sure, but feel free to close this.

@neutrinoceros
Copy link
Author

Nevermind, with a bit more work, I'm able to confirm that this has nothing to do with uv managed binaries: the true meaningful difference is the use of a venv.
see https://github.com/neutrinoceros/reprod-mpl-win-python-3.13-bug/actions/runs/11286703705/job/31391493350

Closing in favor of python/cpython#125235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant