ADL: Tkinter Problem

Ben Staley Ben.Staley at postgrad.manchester.ac.uk
Tue Oct 16 09:10:30 PDT 2007


Am running OS X 10.4.10 with X11 1.1 installed. Have installed
mgltools_i86Darwin8_1.4.6.dmg in view to run autodock4.
On running AutoDockTools-1.4.6 am presenting with the error message:

Traceback (most recent call last):
  File "/Library/MGLTools/1.4.6/MGLToolsPckgs/
AutoDockTools/__init__.py", line 303, in startADT
   from Tkinter import Tk
  File "/Library/MGLTools/1.4.6/share/lib/
python2.4/lib-tk/Tkinter.py",line 38 in ?
   import _

Looking at line 38 in full:

import _tkinter # If this fails your Python may not be configured for Tk

This would suggest that tkinter is not working for this install. Have got Python
2.5.1 installed and Tkinter is working correctly in that environment, but am I
to understand that the Python 2.4 included with the AutoDockTools is the one
that needs to be configured for the correct running of the Tkinter module?

If so - how is the best way to get the _tkinter import working correctly?

There are also similar message when running PMV-1.4.6 referring to the same line
38 in the Tkinter.py module. However running Vision-1.4.6 the error message is
slightly different:

Traceback (most recent call last):
  File "/Library/MGLTools/1.4.6/MGLToolsPckgs/
Vision/bin/runVision.py", line 8, in ?
   Vision.runVision(sys.argv)
  File "/Library/MGLTools/1.4.6/MGLToolsPckgs/
Vision/__init__.py", line 196, in runVision
   root = crea

The complete line 196 being:

 root = createRoot()

However on closer inspection line 39 of __init__.py reveals the same problem:

def createRoot():
    """ create a root and hide it
"""
    from Tkinter import Tk
    root = Tk()
    root.withdraw()
    return root

Have looked around for an answer for this, but so far have been unsuccessful.

Any suggestions would be gladly received. Thanks

Ben Staley


More information about the autodock mailing list