Title: Tkinter not installed correctly on Windows 3.15.0b2 · Issue #150836 · python/cpython · GitHub
Open Graph Title: Tkinter not installed correctly on Windows 3.15.0b2 · Issue #150836 · python/cpython
X Title: Tkinter not installed correctly on Windows 3.15.0b2 · Issue #150836 · python/cpython
Description: Bug report Bug description: 3.15.0b1 was fine. 3.15.0b2 will not start tk/tcl. Difference must be incomplete upgrade to tk 9.0. If I run the REPL with either the Start icon or py in a console, import tkinter works but a subsequent t = tk...
Open Graph Description: Bug report Bug description: 3.15.0b1 was fine. 3.15.0b2 will not start tk/tcl. Difference must be incomplete upgrade to tk 9.0. If I run the REPL with either the Start icon or py in a console, impo...
X Description: Bug report Bug description: 3.15.0b1 was fine. 3.15.0b2 will not start tk/tcl. Difference must be incomplete upgrade to tk 9.0. If I run the REPL with either the Start icon or py in a console, impo...
Opengraph URL: https://github.com/python/cpython/issues/150836
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tkinter not installed correctly on Windows 3.15.0b2","articleBody":"# Bug report\n\n### Bug description:\n\n3.15.0b1 was fine. 3.15.0b2 will not start tk/tcl. Difference must be incomplete upgrade to tk 9.0.\n\nIf I run the REPL with either the Start icon or `py` in a console, `import tkinter` works but a subsequent `t = tkinter.Text()` fails with \n```pytb\nTraceback (most recent call last):\n File \"\u003cpython-input-2\u003e\", line 1, in \u003cmodule\u003e\n t = tkinter.Text()\n File \"C:\\Programs\\Python315\\Lib\\tkinter\\__init__.py\", line 3857, in __init__\n Widget.__init__(self, master, 'text', cnf, kw)\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Programs\\Python315\\Lib\\tkinter\\__init__.py\", line 2853, in __init__\n self._setup(master, cnf)\n ~~~~~~~~~~~^^^^^^^^^^^^^\n File \"C:\\Programs\\Python315\\Lib\\tkinter\\__init__.py\", line 2818, in _setup\n master = _get_default_root()\n File \"C:\\Programs\\Python315\\Lib\\tkinter\\__init__.py\", line 330, in _get_default_root\n root = Tk()\n File \"C:\\Programs\\Python315\\Lib\\tkinter\\__init__.py\", line 2535, in __init__\n self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n_tkinter.TclError: Can't find a usable tk.tcl in the following directories:\n //zipfs:/app/tk_library //zipfs:/lib/tk/tk_library //zipfs:/lib/tk //zipfs:/lib/tcl/tcl_library/tk9.0 //zipfs:/lib/tcl/tk9.0 C:/Programs/lib/tk9.0 C:/Programs/lib/tk9.0 C:/lib/tk9.0 C:/Programs/library\n```\nThis probably means that tk wasn't installed properly.\n\nThe IDLE icon in the start menu does not work. If I pin it to taskbar and click, the blue circle starts and quickly stops. The one for older versions start, quickly stop, and quickly restart until IDLE runs. In a console, `py -m idlelib` fails at the same _tkinter.create(...) call with the same message.\n\nI have seen a similar message before and I believe the list of directories is obsolete. In a local build, I believe the tcl/tk file needs to be in PCbuild/\u003cdirectory containing python.pyw\u003e. My 3.16 build works fine. Installations used to have DLLs/tcl86t.dll and tk86t.dll. 3.15.0b2 has tcl9tk90.dll and tcl90.dll (no t suffix). Is _tkinter.dll looking for those names?\n\n### CPython versions tested on:\n\n3.15\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-150888\n* gh-151562\n* gh-151735\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/terryjreedy","@type":"Person","name":"terryjreedy"},"datePublished":"2026-06-03T06:30:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/150836/cpython/issues/150836"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0502b24d-a2d7-e142-c652-a764acd4c536 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB08:17A244:5E6D25:7E8939:6A52FD63 |
| html-safe-nonce | 93bda8a4f22837e2ffd375ad29acab716ff6adf9515fc026fb58277676921cc8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjA4OjE3QTI0NDo1RTZEMjU6N0U4OTM5OjZBNTJGRDYzIiwidmlzaXRvcl9pZCI6IjkwNTUwNTI0MjkyMjIxNDk0NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bb831beee42db95e61bab7b5ff8aa1539348115328d7ec6fdee02291bd040e93 |
| hovercard-subject-tag | issue:4577488885 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/150836/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a8c3f6a8f46e30347d110ed5d009b0582e2fbbfaea8dd9c134cfe394fcec552/python/cpython/issues/150836 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a8c3f6a8f46e30347d110ed5d009b0582e2fbbfaea8dd9c134cfe394fcec552/python/cpython/issues/150836 |
| og:image:alt | Bug report Bug description: 3.15.0b1 was fine. 3.15.0b2 will not start tk/tcl. Difference must be incomplete upgrade to tk 9.0. If I run the REPL with either the Start icon or py in a console, impo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | terryjreedy |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width