[5980] in testers

home help back first fref pref prev next nref lref last post

Python tkinter library missing in 9.3

daemon@ATHENA.MIT.EDU (Mitchell E Berger)
Sat Jun 26 06:04:26 2004

Message-Id: <200406261004.i5QA4Il4004055@anhedonia.mit.edu>
To: testers@MIT.EDU
Date: Sat, 26 Jun 2004 06:04:18 -0400
From: Mitchell E Berger <mitchb@MIT.EDU>

Hi,

The following error happens if you try to import Tkinter in the Python
interpreter installed in /usr/athena/bin in 9.3:

Python 2.3.3 (#1, May  4 2004, 00:25:01) 
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-24)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/athena/lib/python2.3/lib-tk/Tkinter.py", line 38, in ?
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter

This seems to be due to the fact that the file
/usr/athena/lib/python2.3/lib-dynload/_tkinter.so is missing, despite that
Tkinter is at least partially installed (note the existence of
/usr/athena/lib/python2.3/lib-tk/Tkinter.py*).

Note that this problem doesn't happen when running the python2 binary in
/usr/bin, but that's an older version of Python.

Mitch


home help back first fref pref prev next nref lref last post