can't find usable init.tcl

6 views
Skip to first unread message

Alex_C

unread,
Jun 21, 2008, 4:47:29 PM6/21/08
to python_inside_maya
from Tkinter import *
root = Tk()
# Error: Can't find a usable init.tcl in the following directories:
C:/Python25/lib/tcl8.4 {C:/Program Files/Autodesk/Maya2008/lib/
tcl8.4} {C:/Program Files/Autodesk/lib/tcl8.4} {C:/Program Files/
Autodesk/Maya2008/library} {C:/Program Files/Autodesk/library} {C:/
Program Files/Autodesk/tcl8.4.12/library} {C:/Program Files/tcl8.4.12/
library}



This probably means that Tcl wasn't installed properly.
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File "C:\Python25\lib\lib-tk\Tkinter.py", line 1636, in __init__
# self.tk = _tkinter.create(screenName, baseName, className,
interactive, wantobjects, useTk, sync, use)
# TclError: Can't find a usable init.tcl in the following
directories:
# C:/Python25/lib/tcl8.4 {C:/Program Files/Autodesk/Maya2008/lib/
tcl8.4} {C:/Program Files/Autodesk/lib/tcl8.4} {C:/Program Files/
Autodesk/Maya2008/library} {C:/Program Files/Autodesk/library} {C:/
Program Files/Autodesk/tcl8.4.12/library} {C:/Program Files/tcl8.4.12/
library}
#
#
#
# This probably means that Tcl wasn't installed properly.

It fails when I assign Tk() to root, but not when I import Tkinter,
kinda strange, any sugestions?

It happen when I use the maypy shell or the maya script editor, but
the standard shell that comes with python25 works as expected.
Reply all
Reply to author
Forward
0 new messages