Red Hat Bugzilla – Bug 507067
Tkinter does not install properly
Last modified: 2009-06-21 01:55:14 EDT
Description of problem:
I am trying to run the Python program that requires Tkinter. Tkinter is not installed by default but can be installed from repository via Applications -> Add/Remove the software. However after this installation the program I try to use still complains that it is not available and the error message seems coming from the Python Tkinter wrapper itself:
Traceback (most recent call last):
File "/usr/local/bin/tkpftf", line 8, in <module>
load_entry_point('pftf==1.0', 'console_scripts', 'tkpftf')()
File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c3-py2.5.egg/pkg_resources.py", line 236, in load_entry_point
File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c3-py2.5.egg/pkg_resources.py", line 2097, in load_entry_point
File "/usr/local/lib/python2.5/site-packages/setuptools-0.6c3-py2.5.egg/pkg_resources.py", line 1830, in load
File "/usr/local/lib/python2.5/site-packages/pftf-1.0-py2.5.egg/pftf/timekeeper.py", line 12, in <module>
File "/usr/local/lib/python2.5/lib-tk/Tkinter.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
Version-Release number of selected component (if applicable):
Try to install and run the GUI of the tiny python program that can be found http://freshmeat.net/projects/pftf. The GUI is called tkpftf
. Exactly the same error message is produced.
The program that uses Tkinter.py starts after I add Tkinter in the package manager.
The program that uses Tkinter.py crashes complaining that Python is not configured for it.
Rebooting does not fix this.
Created attachment 348744 [details]
The package manager showing the Tkinter is installed. Should not be strange that the list of files is emtpy?
> python --version
> Python 2.5.4
RHEL-5 does not come with this version of python, if you use the python that comes with RHEL-5 then the version of tkinter that comes with RHEL-5 will work.