Bug 507067 - Tkinter does not install properly
Tkinter does not install properly
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: python (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: James Antill
Depends On:
  Show dependency treegraph
Reported: 2009-06-20 09:23 EDT by Audrius Meskauskas
Modified: 2009-06-21 01:55 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-06-21 01:55:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
The package manager showing the Tkinter is installed. Should not be strange that the list of files is emtpy? (28.74 KB, image/png)
2009-06-20 09:25 EDT, Audrius Meskauskas
no flags Details

  None (edit)
Description Audrius Meskauskas 2009-06-20 09:23:19 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>
    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 09:25:38 EDT
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 01:55:14 EDT
> 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.

Note You need to log in before you can comment on or make changes to this bug.