Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Tkinter Problem

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


corour01 at motorola

Mar 20, 2001, 10:47 AM

Post #1 of 14 (1007 views)
Permalink
Tkinter Problem

Hi all,

I hope someone can help me because this problem is driving me mad.....

I am creating a GUI system in Python.

Each window is a class and launches ok on it's own.

Classes: AuditResync.py* GuiSelection.py* System.py* Cell.py* InitialWin.py* EnvVar.py*

There is one Initial selection window (InitialWin.py) which contains several button each of which destroys the current window and launches a new one whcih is an instance of one of the other 4 classes.

self.destroy()
<CLASSNAME>(self.parent)

I am getting a NameError (below) even though the classes does exist and launch perfectly as a stand-alone. I have imported imported thef iles I am trying to access too. The first instance created of a window launches fine and when I replace that with another window everything is still fine. However if I go back to a window that I had already visited then this is where the error arises.

Exception in Tkinter callback
Traceback (innermost last):
File "/usr/vob/omc_reference/ThirdParty/scriptSources/lib/python1.5/lib-tk/Tkinter.py", line 764, in __call__
return apply(self.func, args)
File "AuditResync.py", line 54, in newGui
GuiSelection(self.parent)
NameError: GuiSelection

Has anyone else had any similar errors or knows of any possible causes?

Thanks a lot,
Clodagh O' Rourke


fredrik at pythonware

Oct 31, 2005, 6:36 AM

Post #2 of 14 (985 views)
Permalink
Re: Tkinter problem [In reply to]

"dale cooper" wrote:

> I've recently installed python2.4.2 on Fedora 4 (from downloaded
> sources), but it appeared, that I can't use Tkinter module:
>
>>>> import Tkinter
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python2.4/lib-tk/Tkinter.py", line 38, in ?
> import _tkinter # If this fails your Python may not be configured
> for Tk
> ImportError: libBLT24.so: cannot open shared object file: No such file
> or directory

this seems to indicate that the build process picked up the Tk BLT extension [1],
but that you haven't installed that extension properly.

</F>

1) http://sourceforge.net/projects/blt/



--
http://mail.python.org/mailman/listinfo/python-list


paschalis at interia

Oct 31, 2005, 3:17 PM

Post #3 of 14 (984 views)
Permalink
Re: Tkinter problem [In reply to]

Thanks, but I've got another question:

can't find Tcl configuration script "tclConfig.sh"

This is what I received trying to install TkBLT. What is tclConfig.sh?
I did installed tcl/tk 8.4.9-3 as I mentioned before, I tried to find
this file, but I don't have it in my filesystem. How to get it?

--
http://mail.python.org/mailman/listinfo/python-list


jepler at unpythonic

Oct 31, 2005, 5:26 PM

Post #4 of 14 (985 views)
Permalink
Re: Tkinter problem [In reply to]

On Mon, Oct 31, 2005 at 03:17:05PM -0800, dale cooper wrote:
> Thanks, but I've got another question:
>
> can't find Tcl configuration script "tclConfig.sh"

This file comes from the following package:
$ rpm -qf /usr/lib*/tclConfig.sh
tcl-devel-8.4.9-3

Fedora generally splits packages which are libraries into "foo" and "foo-devel"
(and maybe others).

Jeff


paschalis at interia

Nov 1, 2005, 1:01 PM

Post #5 of 14 (993 views)
Permalink
Re: Tkinter problem [In reply to]

Thanks!
At this moment I can see the first python generated Tk window on my
screen. It's great ;-)))

--
http://mail.python.org/mailman/listinfo/python-list


eugene_druker at yahoo

Mar 21, 2006, 7:27 AM

Post #6 of 14 (964 views)
Permalink
Re: TKinter problem [In reply to]

C D Wood wrote:
> To whom this may concern,
> Below is the source code, which
>
> demonstrates a
> problem I am having making a GUI for my python project work.
> 'table.txt'
> is a file that is read from the same folder.
>
> My code writes to a text file 'table.txt', and 'table.txt' is displayed
> in
> the GUI. The user can generate new data at the click of a button
> which re-writes 'table.txt', but I can only add the new table to the
> GUI
> window rather than 'update' the existing one.
>
> Any assistance would be much appreciated,
>
> Regards,
> Christian Wood.
> Part III Aerospace Engineering
> University of Southampton, UK.
>
> ##################################################################
> from Tkinter import *
>
> #Tkinter User Interface
> class MoC:
> def __init__(self, master):
> frame = Frame(master, width=600, height=800, bd=1)
> frame.pack()
>
> #Button frame
> iframe4 = Frame(frame, bd=2, relief=SUNKEN)
> #Using this button below, I want to update the text box in iframe5.
> Button(iframe4, text='Display table.txt',
> command=self.DisplayUpdate).pack(side=LEFT, padx=5)
> Button(iframe4, text='Quit', command=self.quit).pack(side=LEFT,
> padx=5)
> iframe4.pack(expand=1, fill=X, pady=10, padx=5)
>
> #Text box frame
> iframe5 = Frame(frame, bd=2, relief=SUNKEN)
> text=Text(iframe5, height=10, width =70)
> fd = open('table.txt') #table.txt must be in the same folder
> lines = fd.read()
> fd.close()
> text.insert(END, lines)
> text.pack(side=LEFT, fill=X, padx=5)
> sb = Scrollbar(iframe5, orient=VERTICAL, command=text.yview)
> sb.pack(side=RIGHT, fill=Y)
> text.configure(yscrollcommand=sb.set)
> iframe5.pack(expand=1, fill=X, pady=10, padx=5)
>
> #Command definitions
> def quit(self):
> root.destroy()
>
> def DisplayUpdate(self): #The command definition used to update the
> display.
> #Could I insert a line here to remove the existing frame/text
> box first? <<<<<=====
> iframe5 = Frame(root, bd=2, relief=SUNKEN)
> text = Text(iframe5, height=10, width =70)
> fd = open('table.txt')
> lines = fd.read()
> fd.close()
> text.insert(END, lines)
> text.pack(side=LEFT, fill=X, padx=5)
> sb = Scrollbar(iframe5, orient=VERTICAL, command=text.yview)
> sb.pack(side=RIGHT, fill=Y)
> text.configure(yscrollcommand=sb.set)
> iframe5.pack(expand=1, fill=X, pady=10, padx=5)
>
> root = Tk()
> root.option_add('*font', ('arial', 10))
> all = MoC(root)
> root.title('2D Method of Characteristics')
> root.update
> root.mainloop()

What you want probably looks like this:

from Tkinter import *
class MoC:
def __init__(self, master):
frame = Frame(master, width=600, height=800, bd=1)
frame.pack()
iframe4 = Frame(frame, bd=2, relief=SUNKEN)
Button(iframe4, text='Display table.txt',
command=self.DisplayUpdate).pack(side=LEFT, padx=5)
Button(iframe4, text='Quit',
command=self._quit).pack(side=LEFT, padx=5)
iframe4.pack(expand=1, fill=X, pady=10, padx=5)
iframe5 = Frame(frame, bd=2, relief=SUNKEN)
self.text=Text(iframe5, height=10, width =70)
# read the file in the update function; create Text & Scrollbar
only once
self.text.pack(side=LEFT, fill=X, padx=5)
sb = Scrollbar(iframe5, orient=VERTICAL,
command=self.text.yview)
sb.pack(side=RIGHT, fill=Y)
self.text.configure(yscrollcommand=sb.set)
iframe5.pack(expand=1, fill=X, pady=10, padx=5)
self.DisplayUpdate()
def _quit(self): # quit is a keyword in python 2.4 IDE
root.destroy()
def DisplayUpdate(self):
fd = open('table.txt')
lines = fd.read()
fd.close()
self.text.config(state=NORMAL)
self.text.delete(1.0, END)
self.text.insert(END, lines)
self.text.config(state=DISABLED)
# previous 4 lines are to make the text READONLY, see more in:
#
http://www.pythonware.com/library/tkinter/introduction/x8309-patterns.htm
root = Tk()
root.option_add('*font', ('arial', 10))
all = MoC(root)
root.title('2D Method of Characteristics')
root.update
root.mainloop()

ezd

--
http://mail.python.org/mailman/listinfo/python-list


nick at craig-wood

Jul 8, 2006, 10:32 PM

Post #7 of 14 (937 views)
Permalink
Re: Tkinter problem [In reply to]

Simon Forman <rogue_pedro [at] yahoo> wrote:
> Just an idea, but if you're sure that
> /usr/lib/python2.4/lib-dynload/_tkinter.so exists, check it's
> permissions and the permissions of /usr/lib/python2.4/lib-dynload/

Also run ldd on it - you could be missing a library

eg

$ ldd /usr/lib/python2.4/lib-dynload/_tkinter.so
linux-gate.so.1 => (0xffffe000)
libBLT.2.4.so.8.4 => /usr/lib/libBLT.2.4.so.8.4 (0xb7e80000)
libtk8.4.so.0 => /usr/lib/libtk8.4.so.0 (0xb7dab000)
libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0xb7cfc000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7c31000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7c1e000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ae6000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ac0000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7aa9000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7aa5000)
/lib/ld-linux.so.2 (0x80000000)

If there are any missing things then you need to re-install those
packages.

--
Nick Craig-Wood <nick [at] craig-wood> -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list


psimon at sonic

Jul 8, 2009, 5:16 PM

Post #8 of 14 (881 views)
Permalink
Re: tkinter problem [In reply to]

"Chris Rebert" <clp2 [at] rebertia> wrote in message
news:mailman.2863.1247095339.8015.python-list [at] python
On Wed, Jul 8, 2009 at 4:18 PM, Paul Simon<psimon [at] sonic> wrote:
> I have the "tkinter" problem and need some assistance to straighten it
> out.
> >From the web page "http://wiki.python.org/moin/TkInter" I tested as in
> >"step
> 1" and cannot import "_tkinter." I do not have that file on my computer,
> but
> do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well as the
> directories /usr/lib/tk8.5 and /usr/lib/tcl8.5.
> This python stuff is great, but the documentation frequently
> feels like it is just a bit out of my grasp. I realize that all of this is
> free but I understand the instructions on the web page to repair only to
> the
> point of confusion. I'm not an expert. How do I modify my python
> configuration? Is there a file that needs to be edited? Which setup.py
> file
> do I use? Make? or python setup.py build and python setup.py install?
> Thanks. I appreciate your help.

- How did you install Python?
- What Linux distro are you using?

Cheers,
Chris
--
http://blog.rebertia.com
I"m using Mandriva 2008.1. I have to tell you honestly that I'm not sure
exactly how I installed Python. Originally I had installed 2.5 from RPM but
2.6 was not available for my distro (2008.1) in RPM. I downloaded something
from python.org and installed. Not sure if it was tarball or zip file.

Paul


--
http://mail.python.org/mailman/listinfo/python-list


__peter__ at web

Jul 9, 2009, 12:59 AM

Post #9 of 14 (858 views)
Permalink
Re: tkinter problem [In reply to]

Paul Simon wrote:

> "Chris Rebert" <clp2 [at] rebertia> wrote in message
> news:mailman.2863.1247095339.8015.python-list [at] python
> On Wed, Jul 8, 2009 at 4:18 PM, Paul Simon<psimon [at] sonic> wrote:
>> I have the "tkinter" problem and need some assistance to straighten it
>> out.
>> >From the web page "http://wiki.python.org/moin/TkInter" I tested as in
>> >"step
>> 1" and cannot import "_tkinter." I do not have that file on my computer,
>> but
>> do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well as the
>> directories /usr/lib/tk8.5 and /usr/lib/tcl8.5.
>> This python stuff is great, but the documentation frequently
>> feels like it is just a bit out of my grasp. I realize that all of this
>> is free but I understand the instructions on the web page to repair only
>> to the
>> point of confusion. I'm not an expert. How do I modify my python
>> configuration? Is there a file that needs to be edited? Which setup.py
>> file
>> do I use? Make? or python setup.py build and python setup.py install?
>> Thanks. I appreciate your help.
>
> - How did you install Python?
> - What Linux distro are you using?
>
> Cheers,
> Chris
> http://blog.rebertia.com
> I"m using Mandriva 2008.1. I have to tell you honestly that I'm not sure
> exactly how I installed Python. Originally I had installed 2.5 from RPM
> but 2.6 was not available for my distro (2008.1) in RPM. I downloaded
> something from python.org and installed. Not sure if it was tarball or
> zip file.

Zip or tar doesn't matter, you are installing "from source".

Python has to find the necessary include files for tcl/tk. These are in
separate packages that you have to install before you invoke Python's
configure script.

I don't know what they are called on your system -- look for tk-dev.rpm,
tcl-dev.rpm or similar.

You may run into the same problem with other modules like readline.

Peter

--
http://mail.python.org/mailman/listinfo/python-list


psimon at sonic

Jul 9, 2009, 9:02 AM

Post #10 of 14 (852 views)
Permalink
Re: tkinter problem [In reply to]

"Peter Otten" <__peter__ [at] web> wrote in message
news:h3481q$d95$00$1 [at] news
> Paul Simon wrote:
>
>> "Chris Rebert" <clp2 [at] rebertia> wrote in message
>> news:mailman.2863.1247095339.8015.python-list [at] python
>> On Wed, Jul 8, 2009 at 4:18 PM, Paul Simon<psimon [at] sonic> wrote:
>>> I have the "tkinter" problem and need some assistance to straighten it
>>> out.
>>> >From the web page "http://wiki.python.org/moin/TkInter" I tested as in
>>> >"step
>>> 1" and cannot import "_tkinter." I do not have that file on my computer,
>>> but
>>> do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well as the
>>> directories /usr/lib/tk8.5 and /usr/lib/tcl8.5.
>>> This python stuff is great, but the documentation frequently
>>> feels like it is just a bit out of my grasp. I realize that all of this
>>> is free but I understand the instructions on the web page to repair only
>>> to the
>>> point of confusion. I'm not an expert. How do I modify my python
>>> configuration? Is there a file that needs to be edited? Which setup.py
>>> file
>>> do I use? Make? or python setup.py build and python setup.py install?
>>> Thanks. I appreciate your help.
>>
>> - How did you install Python?
>> - What Linux distro are you using?
>>
>> Cheers,
>> Chris
>> http://blog.rebertia.com
>> I"m using Mandriva 2008.1. I have to tell you honestly that I'm not sure
>> exactly how I installed Python. Originally I had installed 2.5 from RPM
>> but 2.6 was not available for my distro (2008.1) in RPM. I downloaded
>> something from python.org and installed. Not sure if it was tarball or
>> zip file.
>
> Zip or tar doesn't matter, you are installing "from source".
>
> Python has to find the necessary include files for tcl/tk. These are in
> separate packages that you have to install before you invoke Python's
> configure script.
>
> I don't know what they are called on your system -- look for tk-dev.rpm,
> tcl-dev.rpm or similar.
>
> You may run into the same problem with other modules like readline.
>
> Peter
>

Thank you Peter. I understand what you are saying but don't know how to do
it. Although I installed from source, I followed a "cookbook" recipe.
Could you tell me what files to execute, where they might be, and file
arguments? I'm just ignorant, not stupid. ;-).

Paul


--
http://mail.python.org/mailman/listinfo/python-list


__peter__ at web

Jul 9, 2009, 10:00 AM

Post #11 of 14 (857 views)
Permalink
Re: tkinter problem [In reply to]

Paul Simon wrote:

>
> "Peter Otten" <__peter__ [at] web> wrote in message
> news:h3481q$d95$00$1 [at] news
>> Paul Simon wrote:
>>
>>> "Chris Rebert" <clp2 [at] rebertia> wrote in message
>>> news:mailman.2863.1247095339.8015.python-list [at] python
>>> On Wed, Jul 8, 2009 at 4:18 PM, Paul Simon<psimon [at] sonic> wrote:
>>>> I have the "tkinter" problem and need some assistance to straighten it
>>>> out.
>>>> >From the web page "http://wiki.python.org/moin/TkInter" I tested as in
>>>> >"step
>>>> 1" and cannot import "_tkinter." I do not have that file on my
>>>> computer, but
>>>> do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well as the
>>>> directories /usr/lib/tk8.5 and /usr/lib/tcl8.5.
>>>> This python stuff is great, but the documentation frequently
>>>> feels like it is just a bit out of my grasp. I realize that all of this
>>>> is free but I understand the instructions on the web page to repair
>>>> only to the
>>>> point of confusion. I'm not an expert. How do I modify my python
>>>> configuration? Is there a file that needs to be edited? Which setup.py
>>>> file
>>>> do I use? Make? or python setup.py build and python setup.py install?
>>>> Thanks. I appreciate your help.
>>>
>>> - How did you install Python?
>>> - What Linux distro are you using?
>>>
>>> Cheers,
>>> Chris
>>> http://blog.rebertia.com
>>> I"m using Mandriva 2008.1. I have to tell you honestly that I'm not
>>> sure
>>> exactly how I installed Python. Originally I had installed 2.5 from RPM
>>> but 2.6 was not available for my distro (2008.1) in RPM. I downloaded
>>> something from python.org and installed. Not sure if it was tarball or
>>> zip file.
>>
>> Zip or tar doesn't matter, you are installing "from source".
>>
>> Python has to find the necessary include files for tcl/tk. These are in
>> separate packages that you have to install before you invoke Python's
>> configure script.
>>
>> I don't know what they are called on your system -- look for tk-dev.rpm,
>> tcl-dev.rpm or similar.
>>
>> You may run into the same problem with other modules like readline.
>>
>> Peter
>>
>
> Thank you Peter. I understand what you are saying but don't know how to
> do
> it. Although I installed from source, I followed a "cookbook" recipe.
> Could you tell me what files to execute, where they might be, and file
> arguments? I'm just ignorant, not stupid. ;-).
>
> Paul

Once you have the necessary development packages for tcl/tk just go into the
directory where you unzipped the source and

./configure
make
sudo make altinstall

Unfortunately I don't know the names of these packages nor how to install
them, and Google didn't turn up anything useful.

If you don't get any additional answers here you may try a Mandriva forum
since this is not a question that requires python knowlegde.

Peter

--
http://mail.python.org/mailman/listinfo/python-list


tjreedy at udel

Jul 9, 2009, 10:49 AM

Post #12 of 14 (853 views)
Permalink
Re: tkinter problem [In reply to]

Paul Simon wrote:
> "Peter Otten" <__peter__ [at] web> wrote in message
> news:h3481q$d95$00$1 [at] news
>> Paul Simon wrote:
>>

>>> I"m using Mandriva 2008.1. I have to tell you honestly that I'm not sure
>>> exactly how I installed Python. Originally I had installed 2.5 from RPM
>>> but 2.6 was not available for my distro (2008.1) in RPM. I downloaded
>>> something from python.org and installed. Not sure if it was tarball or
>>> zip file.
>> Zip or tar doesn't matter, you are installing "from source".
>>
>> Python has to find the necessary include files for tcl/tk. These are in
>> separate packages that you have to install before you invoke Python's
>> configure script.
>>
>> I don't know what they are called on your system -- look for tk-dev.rpm,
>> tcl-dev.rpm or similar.
>>
>> You may run into the same problem with other modules like readline.
>>
>> Peter
>>
>
> Thank you Peter. I understand what you are saying but don't know how to do
> it. Although I installed from source, I followed a "cookbook" recipe.
> Could you tell me what files to execute, where they might be, and file
> arguments? I'm just ignorant, not stupid. ;-).

Is there a Mandriva list where you can ask such distribution-specific
questions?

--
http://mail.python.org/mailman/listinfo/python-list


dns4 at cornell

Jul 9, 2009, 12:08 PM

Post #13 of 14 (862 views)
Permalink
Re: tkinter problem [In reply to]

Paul Simon wrote:
> "Peter Otten" <__peter__ [at] web> wrote in message
> news:h3481q$d95$00$1 [at] news
>> Paul Simon wrote:
>>
>>> "Chris Rebert" <clp2 [at] rebertia> wrote in message
>>> news:mailman.2863.1247095339.8015.python-list [at] python
>>> On Wed, Jul 8, 2009 at 4:18 PM, Paul Simon<psimon [at] sonic> wrote:
>>>> I have the "tkinter" problem and need some assistance to straighten it
>>>> out.
>>>> >From the web page "http://wiki.python.org/moin/TkInter" I tested as in
>>>>> "step
>>>> 1" and cannot import "_tkinter." I do not have that file on my computer,
>>>> but
>>>> do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well as the
>>>> directories /usr/lib/tk8.5 and /usr/lib/tcl8.5.
>>>> This python stuff is great, but the documentation frequently
>>>> feels like it is just a bit out of my grasp. I realize that all of this
>>>> is free but I understand the instructions on the web page to repair only
>>>> to the
>>>> point of confusion. I'm not an expert. How do I modify my python
>>>> configuration? Is there a file that needs to be edited? Which setup.py
>>>> file
>>>> do I use? Make? or python setup.py build and python setup.py install?
>>>> Thanks. I appreciate your help.
>>> - How did you install Python?
>>> - What Linux distro are you using?
>>>
>>> Cheers,
>>> Chris
>>> http://blog.rebertia.com
>>> I"m using Mandriva 2008.1. I have to tell you honestly that I'm not sure
>>> exactly how I installed Python. Originally I had installed 2.5 from RPM
>>> but 2.6 was not available for my distro (2008.1) in RPM. I downloaded
>>> something from python.org and installed. Not sure if it was tarball or
>>> zip file.
>> Zip or tar doesn't matter, you are installing "from source".
>>
>> Python has to find the necessary include files for tcl/tk. These are in
>> separate packages that you have to install before you invoke Python's
>> configure script.
>>
>> I don't know what they are called on your system -- look for tk-dev.rpm,
>> tcl-dev.rpm or similar.
>>
>> You may run into the same problem with other modules like readline.
>>
>> Peter
>>
>
> Thank you Peter. I understand what you are saying but don't know how to do
> it. Although I installed from source, I followed a "cookbook" recipe.
> Could you tell me what files to execute, where they might be, and file
> arguments? I'm just ignorant, not stupid. ;-).
>
> Paul
>
>

Just install the tkinter package from the Mandriva Linux Control
Center's Software Management system. I just did it, doing a search for
tkinter brought it right up. All done.

--David
--
http://mail.python.org/mailman/listinfo/python-list


psimon at sonic

Jul 10, 2009, 9:47 AM

Post #14 of 14 (844 views)
Permalink
Re: tkinter problem [In reply to]

"David Smith" <dns4 [at] cornell> wrote in message
news:h35f78$pts$1 [at] ruby
> Paul Simon wrote:
>> "Peter Otten" <__peter__ [at] web> wrote in message
>> news:h3481q$d95$00$1 [at] news
>>> Paul Simon wrote:
>>>
>>>> "Chris Rebert" <clp2 [at] rebertia> wrote in message
>>>> news:mailman.2863.1247095339.8015.python-list [at] python
>>>> On Wed, Jul 8, 2009 at 4:18 PM, Paul Simon<psimon [at] sonic> wrote:
>>>>> I have the "tkinter" problem and need some assistance to straighten it
>>>>> out.
>>>>> >From the web page "http://wiki.python.org/moin/TkInter" I tested as
>>>>> >in
>>>>>> "step
>>>>> 1" and cannot import "_tkinter." I do not have that file on my
>>>>> computer,
>>>>> but
>>>>> do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well as the
>>>>> directories /usr/lib/tk8.5 and /usr/lib/tcl8.5.
>>>>> This python stuff is great, but the documentation frequently
>>>>> feels like it is just a bit out of my grasp. I realize that all of
>>>>> this
>>>>> is free but I understand the instructions on the web page to repair
>>>>> only
>>>>> to the
>>>>> point of confusion. I'm not an expert. How do I modify my python
>>>>> configuration? Is there a file that needs to be edited? Which setup.py
>>>>> file
>>>>> do I use? Make? or python setup.py build and python setup.py install?
>>>>> Thanks. I appreciate your help.
>>>> - How did you install Python?
>>>> - What Linux distro are you using?
>>>>
>>>> Cheers,
>>>> Chris
>>>> http://blog.rebertia.com
>>>> I"m using Mandriva 2008.1. I have to tell you honestly that I'm not
>>>> sure
>>>> exactly how I installed Python. Originally I had installed 2.5 from
>>>> RPM
>>>> but 2.6 was not available for my distro (2008.1) in RPM. I downloaded
>>>> something from python.org and installed. Not sure if it was tarball or
>>>> zip file.
>>> Zip or tar doesn't matter, you are installing "from source".
>>>
>>> Python has to find the necessary include files for tcl/tk. These are in
>>> separate packages that you have to install before you invoke Python's
>>> configure script.
>>>
>>> I don't know what they are called on your system -- look for tk-dev.rpm,
>>> tcl-dev.rpm or similar.
>>>
>>> You may run into the same problem with other modules like readline.
>>>
>>> Peter
>>>
>>
>> Thank you Peter. I understand what you are saying but don't know how to
>> do
>> it. Although I installed from source, I followed a "cookbook" recipe.
>> Could you tell me what files to execute, where they might be, and file
>> arguments? I'm just ignorant, not stupid. ;-).
>>
>> Paul
>>
>>
>
> Just install the tkinter package from the Mandriva Linux Control
> Center's Software Management system. I just did it, doing a search for
> tkinter brought it right up. All done.
>
> --David

Thanks to all for your patient help. I have made some progress, but still
no success. I installed Active Tcl-8.5.7 and corrected the PATH
accordingly. However I still get a "missing" message on building Python.
"Failed to find the necessary bits (!) to build these modules:

....
_tkinter (among others)
To find the necessary bits, look in setup.py in detect_modules() for teh
module's name."

Not sure what bits are, euphemism? but am about to wipe the disk and
reinstall linux, etc.

Paul


--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.