tkinter for my python program !!

K

karthikbalaguru

Hi,

One of my python program needs tkinter to be installed to run
successfully.
I am using Redhat 9.0 and hence tried installing by copying the
tkinter-2.2.2-36.i386.rpm
alone from the CD 3 to my pc. But, it is not getting installed and is
failing by throwing
the below errors. Should i need to configure / install any specific
files for resolving this issue ?

[root@localhost karthik]# rpm -ivh tkinter-2.2.2-26.i386.rpm
warning: tkinter-2.2.2-26.i386.rpm: Header V3 DSA signature: NOKEY,
key ID db42a
60e
error: Failed dependencies:
libtcl8.3.so is needed by tkinter-2.2.2-26.i386
libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
libtk8.3.so is needed by tkinter-2.2.2-26.i386

Any ideas ?

Thx in advans,
Karthik Balaguru
 
D

Diez B. Roggisch

karthikbalaguru said:
Hi,

One of my python program needs tkinter to be installed to run
successfully.
I am using Redhat 9.0 and hence tried installing by copying the
tkinter-2.2.2-36.i386.rpm
alone from the CD 3 to my pc. But, it is not getting installed and is
failing by throwing
the below errors. Should i need to configure / install any specific
files for resolving this issue ?

[root@localhost karthik]# rpm -ivh tkinter-2.2.2-26.i386.rpm
warning: tkinter-2.2.2-26.i386.rpm: Header V3 DSA signature: NOKEY,
key ID db42a
60e
error: Failed dependencies:
libtcl8.3.so is needed by tkinter-2.2.2-26.i386
libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
libtk8.3.so is needed by tkinter-2.2.2-26.i386

Any ideas ?

Yes: you should consider reading error-messages. What does

error: Failed dependencies:
libtcl8.3.so is needed by tkinter-2.2.2-26.i386
libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
libtk8.3.so is needed by tkinter-2.2.2-26.i386

look like for you?

Small hint: if you install something that depends on something else, you
need to .... the missing dependency first. Fill in the dots...

Diez
 
K

karthikbalaguru

karthikbalaguru said:
One of my python program needs tkinter to be installed to run
successfully.
I am using Redhat 9.0 and hence tried installing by copying the
tkinter-2.2.2-36.i386.rpm
alone from the CD 3 to my pc. But, it is not getting installed and is
failing by throwing
the below errors. Should i need to configure / install any specific
files for resolving this issue ?
[root@localhost karthik]# rpm -ivh tkinter-2.2.2-26.i386.rpm
warning: tkinter-2.2.2-26.i386.rpm: Header V3 DSA signature: NOKEY,
key ID db42a
60e
error: Failed dependencies:
libtcl8.3.so is needed by tkinter-2.2.2-26.i386
libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
libtk8.3.so is needed by tkinter-2.2.2-26.i386
Any ideas ?

Yes: you should consider reading error-messages. What does

error: Failed dependencies:
libtcl8.3.so is needed by tkinter-2.2.2-26.i386
libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
libtk8.3.so is needed by tkinter-2.2.2-26.i386

look like for you?

Small hint: if you install something that depends on something else, you
need to .... the missing dependency first. Fill in the dots...

I find that it needs python-2.2.2-26.i386 and hence i tried installing
python and i
land here :( :(

[root@localhost karthik]# rpm -ivh python-2.2.2-26.i386.rpm
warning: python-2.2.2-26.i386.rpm: Header V3 DSA signature: NOKEY, key
ID db42a60e
error: Failed dependencies:
libdb-4.0.so is needed by python-2.2.2-26.i386
python < 2.4.3-18.fc6 conflicts with python-
devel-2.4.3-18.fc6.i386
[root@localhost karthik]#


I find that python 2.4.3-18.fc6 is being used by many of applications.
But, the program i am trying to run needs python-2.2.2-26.
So, how to resolve this issue ?

Thx in advans,
Karthik Balaguru
 
D

Diez B. Roggisch

karthikbalaguru said:
karthikbalaguru said:
One of my python program needs tkinter to be installed to run
successfully.
I am using Redhat 9.0 and hence tried installing by copying the
tkinter-2.2.2-36.i386.rpm
alone from the CD 3 to my pc. But, it is not getting installed and is
failing by throwing
the below errors. Should i need to configure / install any specific
files for resolving this issue ?
[root@localhost karthik]# rpm -ivh tkinter-2.2.2-26.i386.rpm
warning: tkinter-2.2.2-26.i386.rpm: Header V3 DSA signature: NOKEY,
key ID db42a
60e
error: Failed dependencies:
libtcl8.3.so is needed by tkinter-2.2.2-26.i386
libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
libtk8.3.so is needed by tkinter-2.2.2-26.i386
Any ideas ?

Yes: you should consider reading error-messages. What does

error: Failed dependencies:
libtcl8.3.so is needed by tkinter-2.2.2-26.i386
libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
libtk8.3.so is needed by tkinter-2.2.2-26.i386

look like for you?

Small hint: if you install something that depends on something else, you
need to .... the missing dependency first. Fill in the dots...

I find that it needs python-2.2.2-26.i386 and hence i tried installing
python and i
land here :( :(

[root@localhost karthik]# rpm -ivh python-2.2.2-26.i386.rpm
warning: python-2.2.2-26.i386.rpm: Header V3 DSA signature: NOKEY, key
ID db42a60e
error: Failed dependencies:
libdb-4.0.so is needed by python-2.2.2-26.i386
python < 2.4.3-18.fc6 conflicts with python-
devel-2.4.3-18.fc6.i386
[root@localhost karthik]#


I find that python 2.4.3-18.fc6 is being used by many of applications.
But, the program i am trying to run needs python-2.2.2-26.
So, how to resolve this issue ?

Are you *sure* it requires python2.2? If yes, why can't fedora install
several python versions together? Ubuntu for sure can. But Python2.2 is
*ancient* - you might need to compile it yourself.

Diez
 
K

karthikbalaguru

karthikbalaguru said:
karthikbalaguru wrote:
Hi,
One of my python program needs tkinter to be installed to run
successfully.
I am using Redhat 9.0 and hence tried installing by copying the
tkinter-2.2.2-36.i386.rpm
alone from the CD 3 to my pc. But, it is not getting installed and is
failing by throwing
the below errors. Should i need to configure / install any specific
files for resolving this issue ?
[root@localhost karthik]# rpm -ivh tkinter-2.2.2-26.i386.rpm
warning: tkinter-2.2.2-26.i386.rpm: Header V3 DSA signature: NOKEY,
key ID db42a
60e
error: Failed dependencies:
libtcl8.3.so is needed by tkinter-2.2.2-26.i386
libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
libtk8.3.so is needed by tkinter-2.2.2-26.i386
Any ideas ?
Yes: you should consider reading error-messages. What does
error: Failed dependencies:
libtcl8.3.so is needed by tkinter-2.2.2-26.i386
libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
libtk8.3.so is needed by tkinter-2.2.2-26.i386
look like for you?
Small hint: if you install something that depends on something else, you
need to .... the missing dependency first. Fill in the dots...
I find that it needs python-2.2.2-26.i386 and hence i tried installing
python and i
land here :( :(
[root@localhost karthik]# rpm -ivh python-2.2.2-26.i386.rpm
warning: python-2.2.2-26.i386.rpm: Header V3 DSA signature: NOKEY, key
ID db42a60e
error: Failed dependencies:
libdb-4.0.so is needed by python-2.2.2-26.i386
python < 2.4.3-18.fc6 conflicts with python-
devel-2.4.3-18.fc6.i386
[root@localhost karthik]#
I find that python 2.4.3-18.fc6 is being used by many of applications.
But, the program i am trying to run needs python-2.2.2-26.
So, how to resolve this issue ?

Are you *sure* it requires python2.2? If yes, why can't fedora install
several python versions together? Ubuntu for sure can. But Python2.2 is
*ancient* - you might need to compile it yourself.

I did the following to resolve the errors, many errors
got resolved, but finally the python program is breaking
with different error.

I got the below errors when i invoked the python program -

[root@localhost processor]# Analyzer
The python module Tkinter is not installed properly.
Tkinter is required for this program.
Redhat 9
You need tkinter-2.2.2-26. This can be found on the Redhat
install CD 3
$ rpm -i /mnt/cdrom/RedHat/RPMS/tkinter-2.2.2-26.i386.rpm


When i tried to install tkinter, i got the below errors -

[root@localhost karthik]# rpm -ivh tkinter-2.2.2-26.i386.rpm
warning: tkinter-2.2.2-26.i386.rpm: Header V3 DSA signature:
NOKEY,
key ID db42a60e
error: Failed dependencies:
libtcl8.3.so is needed by tkinter-2.2.2-26.i386
libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
libtk8.3.so is needed by tkinter-2.2.2-26.i386

To resolve the conflicts and bring up the python program.
I did the following -

I downloaded python-devel-2.2.2-26.i386.rpm &
python-2.2.2-26.i386.rpm.
[root@localhost karthik]# rpm -e --nodeps python-
devel-2.4.3-18.fc6.i386
[root@localhost karthik]# rpm -e --nodeps python-2.4.3-18.fc6
[root@localhost karthik]# rpm -ivh python-devel-2.2.2-26.i386.rpm
warning: python-devel-2.2.2-26.i386.rpm: Header V3 DSA signature:
NOKEY, key ID db42a60e
Preparing...
########################################### [100%]
1:python-devel
########################################### [100%]

[root@localhost karthik]# rpm -ivh python-2.2.2-26.i386.rpm
warning: python-2.2.2-26.i386.rpm: Header V3 DSA signature:
NOKEY, key ID db42a60e
error: Failed dependencies: libdb-4.0.so is needed by
python-2.2.2-26.i386

To resolve the above dependency error , i downloaded
db4-4.0.14-20.i386.rpm
But, i got the below errors while installing -

[root@localhost karthik]# rpm -ivh db4-4.0.14-20.i386.rpm
warning: db4-4.0.14-20.i386.rpm: Header V3 DSA signature: NOKEY,
key ID db42a60e
Preparing...
########################################### [100%]
package db4-4.3.29-9.fc6 (which is newer than db4-4.0.14-20) is
already installed

To resolve the above error i did the following -

[root@localhost karthik]# rpm -e --nodeps db4-4.3.29-9.fc6.i386
[root@localhost karthik]# rpm -ivh db4-4.0.14-20.i386.rpm
warning: db4-4.0.14-20.i386.rpm: Header V3 DSA signature: NOKEY,
key ID db42a60e
Preparing...
########################################### [100%]
1:db4
########################################### [100%]

Now, i did the python-2.2.2-26.i386 installation.

[root@localhost karthik]# rpm -ivh python-2.2.2-26.i386.rpm
warning: python-2.2.2-26.i386.rpm: Header V3 DSA signature:
NOKEY, key ID db42a60e
Preparing...
########################################### [100%]
1:python
########################################### [100%]

As you would have noticed i linux spitted warning messages
during installations of various packages.
But, i wonder why i get the warnings and will those warnings
affect the working of python based programs ?

Further, finally when i invoke the python program by
giving the necessary input file, i get the following
errors .
Does it have any relation with the python version installed ?

[root@localhost processor]# Analyzer processorcycle
/usr/local/SDK/bin/../core/bin/processorlib.py:8
8: Warning: 'yield' will become a reserved keyword in the future
Traceback (most recent call last):
File "/usr/local/SDK/bin/Analyzer", line 48, in ?
from debuglib import ProcessorInfo
File "/usr/local/SDK/bin/../core/bin/processorlib.py", line 88
yield ProcessorObjectInfo(child, self.pt)
^
SyntaxError: invalid syntax



Any ideas ?

Thx in advans,
Karthik Balaguru
 
D

David

Further, finally when i invoke the python program by
giving the necessary input file, i get the following
errors .
Does it have any relation with the python version installed ?
yes

I am using Redhat 9.0
You may want to install a current Linux distro.
 
K

karthikbalaguru

You may want to install a current Linux distro.

I got the info from this usenet group. Thx for that info.

The problem got resolved after including 'from __future__ import
generators'
in the beginning of the file.

Karthik Balaguru
 
K

karthikbalaguru

karthikbalaguru said:
karthikbalaguru wrote:
Hi,
One of my python program needs tkinter to be installed to run
successfully.
I am using Redhat 9.0 and hence tried installing by copying the
tkinter-2.2.2-36.i386.rpm
alone from the CD 3 to my pc. But, it is not getting installed and is
failing by throwing
the below errors. Should i need to configure / install any specific
files for resolving this issue ?
[root@localhost karthik]# rpm -ivh tkinter-2.2.2-26.i386.rpm
warning: tkinter-2.2.2-26.i386.rpm: Header V3 DSA signature: NOKEY,
key ID db42a
60e
error: Failed dependencies:
        libtcl8.3.so is needed by tkinter-2.2.2-26.i386
        libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
        libtk8.3.so is needed by tkinter-2.2.2-26.i386
Any ideas ?
Yes: you should consider reading error-messages. What does
error: Failed dependencies:
         libtcl8.3.so is needed by tkinter-2.2.2-26.i386
         libtix8.1.8.3.so is needed by tkinter-2.2.2-26.i386
         libtk8.3.so is needed by tkinter-2.2.2-26.i386
look like for you?
Small hint: if you install something that depends on something else, you
need to .... the missing dependency first. Fill in the dots...
I find that it needs python-2.2.2-26.i386 and hence i tried installing
python and i
land here :( :(
[root@localhost karthik]# rpm -ivh python-2.2.2-26.i386.rpm
warning: python-2.2.2-26.i386.rpm: Header V3 DSA signature: NOKEY, key
ID db42a60e
error: Failed dependencies:
        libdb-4.0.so is needed by python-2.2.2-26.i386
        python < 2.4.3-18.fc6 conflicts with python-
devel-2.4.3-18.fc6.i386
[root@localhost karthik]#
I find that python 2.4.3-18.fc6 is being used by many of applications.
But, the program i am trying to run needs python-2.2.2-26.
So, how to resolve this issue ?

Are you *sure* it requires python2.2? If yes, why can't fedora install
several python versions together? Ubuntu for sure can. But Python2.2 is
*ancient* - you might need to compile it yourself.

Another method of resolving the whole problem
related to rpm dependencies was using
the 'yum' utility in Fedora Cores(I use FC2)
and 'up2date' utility in RedHat.

Karthik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top