Bug 507067 - Tkinter does not install properly
Summary: Tkinter does not install properly
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: python
Version: 5.5
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-20 13:23 UTC by Audrius Meskauskas
Modified: 2009-06-21 05:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-21 05:55:14 UTC
Target Upstream Version:
Embargoed:


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 13:25 UTC, Audrius Meskauskas
no flags Details

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.


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