Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Ruud van Rooijen Newsgroups: comp.lang.python Subject: python error Date: Tue, 3 Nov 2015 14:07:37 +0100 Lines: 45 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de R/tek8oV/QqBP/AyKFUd4weSJedIR4f1AdgPeJdU6g+Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'error:': 0.05; 'properly.': 0.07; '__init__': 0.09; 'skip:" 80': 0.09; 'python': 0.10; 'subject:error': 0.11; 'subject:python': 0.14; 'interactive,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'tk()': 0.16; 'tkinter': 0.22; 'import': 0.24; '(most': 0.24; 'installed': 0.26; 'skip:_ 20': 0.26; 'message- id:@mail.gmail.com': 0.27; 'skip:u 20': 0.28; 'tcl': 0.29; 'usable': 0.29; 'code:': 0.29; 'received:209.85.212': 0.29; 'window': 0.30; 'probably': 0.31; "can't": 0.32; 'skip:_ 10': 0.32; '8bit%:25': 0.33; 'traceback': 0.33; 'file': 0.34; 'received:google.com': 0.35; 'skip:c 30': 0.35; 'label': 0.35; 'skip:" 50': 0.35; 'skip:& 60': 0.35; 'received:209.85': 0.36; "wasn't": 0.36; 'to:addr:python-list': 0.36; 'skip:& 10': 0.37; 'received:209': 0.38; 'several': 0.38; 'means': 0.39; 'to:addr:python.org': 0.40; 'times': 0.63; 'url:self': 0.84; 'url:tk': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=csgtMSV37FSxqpb3ieRbtSuDTAk3RlR8zFXUGNAV83U=; b=ZEVSrFS2m7vFTGjQtUNqLieHJnktr0Yf8CeFMksitw17aRTbdkF/60Yc6N98WwgO1J 1fHtrsELV4GdszK0HOoRxgHuBxLmMz5f0oXVmRX39VrmIPyNnKTJcvUuwr2wVr+R7gNS 4qWarC+GqG2TpWCMW9gBOUsMnsfyUeL/mO8kvDaPKZbyT6ooIhAF6HrW3u6X1T8ECfc0 q/XZKxw9SHb9BRjdwDOToNMhjxq/jOuVNBu0kX5HmLDPEgxogC/CsEnnJES9X4F+gOar 6mDvZX7sGj36AUxmfkEMRD+WaMNrrbJgpdeqxrXdAhUGvq03sWaa6zXL8IG/nBl29jiH ethg== X-Received: by 10.194.184.81 with SMTP id es17mr28305076wjc.10.1446556057870; Tue, 03 Nov 2015 05:07:37 -0800 (PST) X-Mailman-Approved-At: Tue, 03 Nov 2015 08:11:18 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.20+ X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98150 my code: from tkinter import * window = Tk() label = Label(window, text="miniproject A1") label.pack() window.mainloop() given error: C:\Users\Ruud\Python35\Scripts\python.exe C:/Users/Ruud/PycharmProjects/School/project.py Traceback (most recent call last): File "C:/Users/Ruud/PycharmProjects/School/project.py", line 3, in window = Tk() File "C:\Users\Ruud\AppData\Local\Programs\Python\Python35-32\Lib\tkinter\__init__.py", line 1867, 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:/Users/Ruud/AppData/Local/Programs/Python/Python35-32/lib/tcl8.6 C:/Users/Ruud/Python35/lib/tcl8.6 C:/Users/Ruud/lib/tcl8.6 C:/Users/Ruud/Python35/library C:/Users/Ruud/library C:/Users/Ruud/tcl8.6.4/library C:/Users/tcl8.6.4/library This probably means that Tcl wasn't installed properly. i have repaired python several times and i can't find an answer online... please help Ruud