8000 Python 3.11 + windows-latest → "Tcl wasn't installed properly." randomly happens · Issue #1102 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content

Python 3.11 + windows-latest → "Tcl wasn't installed properly." randomly happens #1102

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

Open
2 of 5 tasks
34j opened this issue May 11, 2025 · 1 comment
Open
2 of 5 tasks
Assignees
Labels
bug Something isn't working

Comments

@34j
Copy link
34j commented May 11, 2025

Description:

The following error sometimes (randomly) occurs (and sometimes does not) when trying to use maplotlib on GitHub Actions with Python 3.11 + windows-latest. Does not happen with Python 3.12, 3.10 and/or Linux, MacOS.

>       self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
E       _tkinter.TclError: Can't find a usable init.tcl in the following directories: 
E           {C:\hostedtoolcache\windows\Python\3.11.9\x64\tcl\tcl8.6}
E       
E       C:/hostedtoolcache/windows/Python/3.11.9/x64/tcl/tcl8.6/init.tcl: couldn't read file "C:/hostedtoolcache/windows/Python/3.11.9/x64/tcl/tcl8.6/init.tcl": No error
E       couldn't read file "C:/hostedtoolcache/windows/Python/3.11.9/x64/tcl/tcl8.6/init.tcl": No error
E           while executing
E       "source C:/hostedtoolcache/windows/Python/3.11.9/x64/tcl/tcl8.6/init.tcl"
E           ("uplevel" body line 1)
E           invoked from within
E       "uplevel #0 [list source $tclfile]"
E       
E       
E       This probably means that Tcl wasn't installed properly.

Action version:
5.6.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

3.11

Repro steps:
Same repo status and

Expected behavior:
Always succeed

Actual behavior:
Not always succeed, have to re-run until succeed

@34j 34j added bug Something isn't working needs triage labels May 11, 2025
@aparnajyothi-y
Copy link
Contributor

Hello @34j, Thank you for creating this issue and we will look into it :)

@priya-kinthali priya-kinthali self-assigned this May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
0