Skip to content

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

Open
@34j

Description

@34j

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions