Tkinter in RH8.0

Stuart MacGregor stuart.191 at ntlworld.com
Sat Nov 2 15:38:11 EST 2002


Thomas Korb wrote:

> On Fri, 01 Nov 2002 21:33:41 +0000, Stuart MacGregor wrote:
> 
>> 
>> After installing RH8 the apps find 'from Tkinter import *' does not work.
>> RH 8 ships with python 2.2.1 and I have installed every shipped rpm that
>> might help.
>> 
> 
> I am also using Python 2.2.1 w/ Tkinter on RH 8.0 and have no
> problems at all. (Many of my apps use 'from Tkinter import *' etc.)
> 
> Are you sure you really did install all necessary RPMs?
> 
> When installing RH 8.0, I did not use one of the predefined
> setups like 'Personal Desktop' or 'Workstation', but did a
> customized install. So I do not know if Tcl, Tk, Tix and
> Tkinter will be installed when you use a predefined setup.
> (You know that you need Tcl/Tk for Tkinter, don't you? And
> RH 8.0 wants Tix to be installed together with Tk.)
> 
> It might be helpful to post your exact error-message (traceback).
> 
Thanks for the reply, and offer of hope of a simple resolution. I did use a 
workstation install, and then added all the possible related entries in the 
new redhat-config-packages tool.  Checking the rpms gives: -
$ rpm -q tk
tk-8.3.3-74
$ rpm -q tcl
tcl-8.3.3-74
$ rpm -q python
python-2.2.1-17
I understand Tkinter is integrated with the python distribution and does not 
require an rpm.

Runnung python gives: -
$ python
Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
[GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from Tkinter import *
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named Tkinter
>>>

I'll brows around the rpms directly, but if you have any ideas I would be 
glad of them.

Cheers
-- 
Stuart



More information about the Python-list mailing list