Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107158

Re: error with tkinter, help

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: error with tkinter, help
Date Sun, 17 Apr 2016 00:29:18 -0400
Lines 26
Message-ID <mailman.90.1460867418.6324.python-list@python.org> (permalink)
References <47977d70-6208-4e68-aca3-e1f63aacfac7@googlegroups.com> <nev3g2$a0m$1@ger.gmane.org>
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 <python-python-list@m.gmane.org>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <nev3g2$a0m$1@ger.gmane.org>
X-Mailman-Original-References <47977d70-6208-4e68-aca3-e1f63aacfac7@googlegroups.com>
Xref csiph.com comp.lang.python:107158

Show key headers only | View raw


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 "<string>", line 301, in runcode
>   File "<interactive input>", line 1, in <module>
>   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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

error with tkinter, help blueridiculous@gmail.com - 2016-04-16 18:31 -0700
  Re: error with tkinter, help Terry Reedy <tjreedy@udel.edu> - 2016-04-17 00:29 -0400
    Re: error with tkinter, help BlueRidiculous <blueridiculous@gmail.com> - 2016-04-17 10:17 -0700
      Re: error with tkinter, help BlueRidiculous <blueridiculous@gmail.com> - 2016-04-17 10:24 -0700
        Re: error with tkinter, help BlueRidiculous <blueridiculous@gmail.com> - 2016-04-18 21:26 -0700
      Re: error with tkinter, help Chris Angelico <rosuav@gmail.com> - 2016-04-18 05:08 +1000

csiph-web