Bug 507067

Summary: Tkinter does not install properly
Product: Red Hat Enterprise Linux 5 Reporter: Audrius Meskauskas <mike.pukuotukas>
Component: pythonAssignee: James Antill <james.antill>
Status: CLOSED NOTABUG QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: katzj
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-21 05:55:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The package manager showing the Tkinter is installed. Should not be strange that the list of files is emtpy? none

Description Audrius Meskauskas 2009-06-20 13:23:19 UTC
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>
    import Tkinter
  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):
python --version
Python 2.5.4

How reproducible:
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.
  
Actual results:
The program that uses Tkinter.py starts after I add Tkinter in the package manager.

Expected results:
The program that uses Tkinter.py crashes complaining that Python is not configured for it.

Additional info:
Rebooting does not fix this.

Comment 1 Audrius Meskauskas 2009-06-20 13:25:38 UTC
Created attachment 348744 [details]
The package manager showing the Tkinter is installed. Should not be strange that the list of files is emtpy?

Comment 2 James Antill 2009-06-21 05:55:14 UTC
> 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.