You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like something has changed in Tkinter as a result of the new version. @terryjreedy is this something you can look into? You can see the build results on #117030
@zooba I have no record or recollection of receiving your Mar 20 note. I just read the release announcement and don't see any problem at least with IDLE. I will do some manual testing after updating. Glad to see update in both 3.13 and 3.14. Fine to leave 3.12 alone.
Is there a way for Windows and macOS users to update Tcl/Tk separately? If they can only use the version shipped with Python, we should provide the last stable bugfix release.
If they can only use the version shipped with Python, we should provide the last stable bugfix release.
Thanks for the reminder, @serhiy-storchaka. This should have been backported earlier to 3.12.x for the macOS installer but I guess I was waiting to see if any issues arose with the 3.13 alphas. PR #119922 will be merged for the upcoming 3.12.4 release.
The discussion under PR-s is confusing for me, so I'll ask here -- is Tcl/Tk 8.6.14 coming for Python 3.12 Windows installers? 3.12.4 seems to be still with 8.6.13.
I experienced this error using GHA for testing cx_Freeze.
So I installed it in a VM with W11 to test.
The difference may be that I didn't install python for all users, like GH.
The error in GHA:
File "C:\Users\runneradmin\.local\venv\cxfreeze_tkinter_win-amd64_313\Lib\site-packages\cx_Freeze\hooks\tkinter.py", line 35, in load_tkinter
root = tkinter.Tk(useTk=False)
File "C:\hostedtoolcache\windows\Python\3.13.0-rc.1\x64\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:/hostedtoolcache/windows/Python/3.13.0-rc.1/x64/lib/tcl8.6 C:/hostedtoolcache/windows/Python/3.13.0-rc.1/lib/tcl8.6 C:/hostedtoolcache/windows/Python/lib/tcl8.6 C:/hostedtoolcache/windows/Python/3.13.0-rc.1/library C:/hostedtoolcache/windows/Python/library C:/hostedtoolcache/windows/Python/tcl8.6.14/library C:/hostedtoolcache/windows/tcl8.6.14/library
This probably means that Tcl wasn't installed properly.
I'm going to go ahead and mark this as complete. For posterity, v3.13.0 shipped with Tcl/Tk v8.6.14 on Windows and macOS; v3.12.4-v3.12.7 have Tcl/Tk v8.6.14 on macOS and v8.6.13 on Windows. v3.13.1 and v3.12.8 will have Tcl/Tk v8.6.15 on both platforms; v3.12.8 will have Tix v8.4.3 as built against Tcl/Tk v8.6.13 on Windows.
Activity
pythongh-116145: Update macOS installer to Tcl/Tk 8.6.14
gh-116145: Update macOS installer to Tcl/Tk 8.6.14 (GH-116151)
hugovk commentedon Mar 15, 2024
The linked PR is merged, is there more to do or can this issue be closed? Thanks!
ned-deily commentedon Mar 15, 2024
I believe the Windows build needs to be updated to use the new version (
PCbuild/get_externals.batandPCbuild/tcltk.props). @zooba @zwarezooba commentedon Mar 19, 2024
Yeah, Windows is not done yet. I should have time later today to bring in the new sources and set the build up.
pythongh-116145: Updated bundled Tcl/Tk on Windows to 8.6.14
zooba commentedon Mar 19, 2024
It looks like something has changed in Tkinter as a result of the new version. @terryjreedy is this something you can look into? You can see the build results on #117030
pythongh-116145: Update macOS installer to Tcl/Tk 8.6.14 (pythonGH-11…
pythongh-116145: Update macOS installer to Tcl/Tk 8.6.14 (pythonGH-11…
Merge branch 'main' into pythongh-116145
gh-116145: Updated bundled Tcl/Tk on Windows to 8.6.14 (GH-117030)
pythongh-116145: Updated bundled Tcl/Tk on Windows to 8.6.14 (pythonG…
1 remaining item
terryjreedy commentedon May 31, 2024
@zooba I have no record or recollection of receiving your Mar 20 note. I just read the release announcement and don't see any problem at least with IDLE. I will do some manual testing after updating. Glad to see update in both 3.13 and 3.14. Fine to leave 3.12 alone.
serhiy-storchaka commentedon Jun 1, 2024
8.6.14 is a bugfix release, and it can contain changes affecting Tkinter users. https://wiki.tcl-lang.org/page/Changes+in+Tcl%2FTk+8%2E6%2E14
Is there a way for Windows and macOS users to update Tcl/Tk separately? If they can only use the version shipped with Python, we should provide the last stable bugfix release.
pythongh-116145: Update macOS installer to Tcl/Tk 8.6.14 (pythonGH-11…
ned-deily commentedon Jun 1, 2024
Thanks for the reminder, @serhiy-storchaka. This should have been backported earlier to 3.12.x for the macOS installer but I guess I was waiting to see if any issues arose with the 3.13 alphas. PR #119922 will be merged for the upcoming 3.12.4 release.
[3.12] gh-116145: Update macOS installer to Tcl/Tk 8.6.14 (GH-116151) (…
aivarannamaa commentedon Jun 12, 2024
The discussion under PR-s is confusing for me, so I'll ask here -- is Tcl/Tk 8.6.14 coming for Python 3.12 Windows installers? 3.12.4 seems to be still with 8.6.13.
[3.12] pythongh-116145: Updated bundled Tcl/Tk on Windows to 8.6.14 (p…
pythongh-116145: Updated bundled Tcl/Tk on Windows to 8.6.14 (pythonG…
pythongh-116145: Updated bundled Tcl/Tk on Windows to 8.6.14 (pythonG…
marcelotduarte commentedon Aug 6, 2024
There is an error in
tkinter.Tk()The correct path to search is
C:/Python313-64/tcl/tcl8.6. In python 3.12.4 isC:/Python312-64/tcl/tcl8.6also.terryjreedy commentedon Aug 7, 2024
Same binary, some Python commands, Win10, works fine for me.
No idea why the difference.
terryjreedy commentedon Aug 7, 2024
IDLE works normally and reports 8.6.14, as expected.
marcelotduarte commentedon Aug 7, 2024
I experienced this error using GHA for testing cx_Freeze.
So I installed it in a VM with W11 to test.
The difference may be that I didn't install python for all users, like GH.
The error in GHA:
File "C:\Users\runneradmin\.local\venv\cxfreeze_tkinter_win-amd64_313\Lib\site-packages\cx_Freeze\hooks\tkinter.py", line 35, in load_tkinter root = tkinter.Tk(useTk=False) File "C:\hostedtoolcache\windows\Python\3.13.0-rc.1\x64\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:/hostedtoolcache/windows/Python/3.13.0-rc.1/x64/lib/tcl8.6 C:/hostedtoolcache/windows/Python/3.13.0-rc.1/lib/tcl8.6 C:/hostedtoolcache/windows/Python/lib/tcl8.6 C:/hostedtoolcache/windows/Python/3.13.0-rc.1/library C:/hostedtoolcache/windows/Python/library C:/hostedtoolcache/windows/Python/tcl8.6.14/library C:/hostedtoolcache/windows/tcl8.6.14/library This probably means that Tcl wasn't installed properly.zware commentedon Oct 21, 2024
I'm going to go ahead and mark this as complete. For posterity, v3.13.0 shipped with Tcl/Tk v8.6.14 on Windows and macOS; v3.12.4-v3.12.7 have Tcl/Tk v8.6.14 on macOS and v8.6.13 on Windows. v3.13.1 and v3.12.8 will have Tcl/Tk v8.6.15 on both platforms; v3.12.8 will have Tix v8.4.3 as built against Tcl/Tk v8.6.13 on Windows.