Again: Python Error <No module named Tkinter>
sferic
sferic at gmx.net
Tue May 18 22:22:09 CEST 2010
Thank you very much for updating!
The download and installation of python-tkinter and libtk8.4-0 have worked
without problems.
But I get at the start of python idle a new error message:
root at om-gta02 ~ $ idle
Traceback (most recent call last):
File "/usr/bin/idle", line 3, in <module>
from idlelib.PyShell import main
File "/usr/lib/python2.6/idlelib/PyShell.py", line 36, in <module>
import Debugger
File "/usr/lib/python2.6/idlelib/Debugger.py", line 2, in <module>
import bdb
ImportError: No module named bdb
I have installed python-debugger - now I got the following message after
calling idle:
root at om-gta02 ~ $ idle
Traceback (most recent call last):
File "/usr/bin/idle", line 5, in <module>
main()
File "/usr/lib/python2.6/idlelib/PyShell.py", line 1386, in main
root = Tk(className="Idle")
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1643, 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/lib/tcl8.4/tk8.4 /usr/lib/tk8.4 /lib/tk8.4 /usr/library /library
/tk8.4.19/library
This probably means that tk wasn't installed properly.
Now I found, that I have to install Tk and get the following:
root at om-gta02 ~ $ idle
Traceback (most recent call last):
File "/usr/bin/idle", line 5, in <module>
main()
File "/usr/lib/python2.6/idlelib/PyShell.py", line 1386, in main
root = Tk(className="Idle")
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1643, 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/lib/tcl8.4/tk8.4 /usr/lib/tk8.4 /lib/tk8.4 /usr/library /library
/tk8.4.19/library
/usr/lib/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] uni..."
(file "/usr/lib/tk8.4/listbox.tcl" line 181)
invoked from within
"source /usr/lib/tk8.4/listbox.tcl"
(in namespace eval "::" script line 1)
invoked from within
"namespace eval :: [list source [file join $::tk_library $file.tcl]]"
(procedure "SourceLibFile" line 2)
invoked from within
"SourceLibFile listbox"
(in namespace eval "::tk" script line 4)
invoked from within
"namespace eval ::tk {
SourceLibFile button
SourceLibFile entry
SourceLibFile listbox
SourceLibFile menu
SourceLibFile panedwindow
SourceLibFile ..."
invoked from within
"if {$::tk_library ne ""} {
if {$tcl_platform(platform) eq "macintosh"} {
proc ::tk::SourceLibFile {file} {
if {[catch {
namespace eval :: ..."
(file "/usr/lib/tk8.4/tk.tcl" line 407)
invoked from within
"source /usr/lib/tk8.4/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $file]"
This probably means that tk wasn't installed properly.
If I understand correctly tk.tcl is missing a button or a scroll wheel. I am
finished with my opportunities. What can I do now? (Do I have to do without
idle? Thanks in advance
--
View this message in context: http://openmoko-public-mailinglists.1958.n2.nabble.com/Again-Python-Error-No-module-named-Tkinter-tp5065357p5071912.html
Sent from the Openmoko Community mailing list archive at Nabble.com.
More information about the community
mailing list