I recently installed Python and IDLE from synaptic. However, when I test Tkinter I get the following error:
import Tkinter Tkinter._test() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 3790, in _test root = Tk() File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1767, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: Can't find a usable tk.tcl in the following directories: /usr/local/src/tcl8.6.1/library/tk8.6 /usr/local/src/tcl8.6.1/tk8.6 /usr/lib/tk8.6 /usr/local/lib/tk8.6 /lib/tk8.6 /usr/library This probably means that tk wasn't installed properly.
However, I have installed tk using the following command:
sudo apt-get install tk8.6 tk-dev
I have no idea what is going on. In order to install the module environment I have compiled
tcl8.6.1 from source in
/usr/local/src/tcl8.6.1. Could that be the problem?