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


Groups > comp.lang.python > #98150 > unrolled thread

python error

Started byRuud van Rooijen <ruudvnrooijen@gmail.com>
First post2015-11-03 14:07 +0100
Last post2015-11-03 14:07 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  python error Ruud van Rooijen <ruudvnrooijen@gmail.com> - 2015-11-03 14:07 +0100

#98150 — python error

FromRuud van Rooijen <ruudvnrooijen@gmail.com>
Date2015-11-03 14:07 +0100
Subjectpython error
Message-ID<mailman.17.1446556280.8789.python-list@python.org>
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 <module>

    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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web