Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Terry Reedy Newsgroups: comp.lang.python Subject: Re: error with tkinter, help Date: Sun, 17 Apr 2016 00:29:18 -0400 Lines: 26 Message-ID: References: <47977d70-6208-4e68-aca3-e1f63aacfac7@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de l9cTxTBxwtBwCovVmd0+ag/U5xfyt3EhsbvDOBb3d4oA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'root': 0.04; 'error:': 0.05; 'properly.': 0.07; 'subject:help': 0.07; '__init__': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.11; 'subject:error': 0.11; 'psf': 0.12; '"checking': 0.16; 'interactive,': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'tk()': 0.16; 'wrote:': 0.16; 'python?': 0.18; 'windows': 0.20; 'skip:" 30': 0.20; '"",': 0.22; 'tkinter': 0.22; 'help.': 0.23; '(most': 0.24; 'header:In-Reply-To:1': 0.24; 'install': 0.25; 'header:User-Agent:1': 0.26; 'installed': 0.26; 'header:X-Complaints-To:1': 0.26; 'skip:_ 20': 0.26; 'url:moin': 0.27; 'tcl': 0.29; 'usable': 0.29; 'url:wiki': 0.30; 'probably': 0.31; "can't": 0.32; 'skip:_ 10': 0.32; 'url:python': 0.33; 'traceback': 0.33; 'file': 0.34; 'list': 0.34; 'python.org': 0.35; 'step': 0.36; 'should': 0.36; 'url:org': 0.36; "wasn't": 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'means': 0.39; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'your': 0.60; 'email addr:gmail.com': 0.62; 'received:96': 0.63; '301,': 0.84; 'url:tkinter': 0.84; 'received:fios.verizon.net': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: pool-96-227-207-81.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <47977d70-6208-4e68-aca3-e1f63aacfac7@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <47977d70-6208-4e68-aca3-e1f63aacfac7@googlegroups.com> Xref: csiph.com comp.lang.python:107158 On 4/16/2016 9:31 PM, blueridiculous@gmail.com wrote: > So I was reading https://wiki.python.org/moin/TkInter for help. > I got to step 3 under "Checking your Tkinter support." > Nothing happens when I do steps 1 or 2, and when I do step 3, > I get this error: > > Traceback (most recent call last): > File "", line 301, in runcode > File "", line 1, in > File "C:\Python34\lib\tkinter\__init__.py", line 3882, in _test > root = Tk() > File "C:\Python34\lib\tkinter\__init__.py", line 1856, 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:/Python34/lib/tcl8.6 C:/lib/tcl8.6 C:/lib/tcl8.6 C:/library C:/library C:/tcl8.6.1/library C:/tcl8.6.1/library > > This probably means that Tcl wasn't installed properly. > " The directory list is obsolete. You should have C:/Python34/tcl How did you install Python? The Windows PSF installer from python.org will create this directory unless you uncheck the box to include tcl/tk. -- Terry Jan Reedy