469,306 Members | 1,872 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Help - my Tkinter is broken

Hi,

I'm running Mepix Linux, which is a Debian based distribution.
Python-2.3.4 is installed in /usr/lib. When I try to import Tkinter
into Python, I get the following error message:
ImportError: /usr/lib/python2.3/lib-dynload/_tkinter.so: undefined
symbol: PyFPE_jbuf
I've tried the following fixes:
1) Recompile Python from scratch. No good.
2) Delete _tkinter.so from /usr/lib/Python2.3/lib-dynload, then
recompile. However, when I did that there was no _tkinter.so rebuilt in
/usr/lib/Python2.3/lib-dynload. I have sub-directories for tcl-8.4 and
tk-8.4 under /usr/lib.
3) Thinking that the compilation process is looking for tk and tcl under
/usr/local/lib, I created symlinks there to /usr/lib/tcl-8.4 and
/usr/lib/tk-8.4, and then repeated step 2. Still no _tkinter.so.

Searching on google did not find anything useful.

Can anyone help, please.

Thanks,
Mike
Jul 18 '05 #1
3 1680
On Sat, 02 Oct 2004 17:39:57 +0000, Mike Moum wrote:
Hi,

I'm running Mepix Linux, which is a Debian based distribution.
Python-2.3.4 is installed in /usr/lib. When I try to import Tkinter
into Python, I get the following error message:
ImportError: /usr/lib/python2.3/lib-dynload/_tkinter.so: undefined
symbol: PyFPE_jbuf
I've tried the following fixes:
1) Recompile Python from scratch. No good.
2) Delete _tkinter.so from /usr/lib/Python2.3/lib-dynload, then
recompile. However, when I did that there was no _tkinter.so rebuilt in
/usr/lib/Python2.3/lib-dynload. I have sub-directories for tcl-8.4 and
tk-8.4 under /usr/lib.
3) Thinking that the compilation process is looking for tk and tcl under
/usr/local/lib, I created symlinks there to /usr/lib/tcl-8.4 and
/usr/lib/tk-8.4, and then repeated step 2. Still no _tkinter.so.


Last time I compiled python on Linux (it was the 1.6 ) in order to include
statically Tkinter (or other modules), you needed to tweak with one file
in the Setup sub-directory of the source tree. Given the sore state of my
brain RAM, I can't be more precise than that.

BTW I have Debian Testing and Tkinter works for python 2.3.4. Did you try
simply download and install official python and python-tk debian packages?
(assumed that Mepix is compatible enough with Debian).

HTH

Ciao
--------
FB
Jul 18 '05 #2
Hello Francesco,
3) Thinking that the compilation process is looking for tk and tcl under
/usr/local/lib, I created symlinks there to /usr/lib/tcl-8.4 and
/usr/lib/tk-8.4, and then repeated step 2. Still no _tkinter.so.

Last time I compiled python on Linux (it was the 1.6 ) in order to include
statically Tkinter (or other modules), you needed to tweak with one file
in the Setup sub-directory of the source tree. Given the sore state of my
brain RAM, I can't be more precise than that.

Just uncomment the lines in Modules/Setup that start with _tkinter.

HTH.
Bye.
--
------------------------------------------------------------------------
Miki Tebeka <mi*********@zoran.com>
http://tebeka.spymac.net
The only difference between children and adults is the price of the toys
Jul 18 '05 #3
A belated Thank You to both of you. Modifying Setup did the trick - it
works now.

Mike

Miki Tebeka wrote:
Hello Francesco,

3) Thinking that the compilation process is looking for tk and tcl under
/usr/local/lib, I created symlinks there to /usr/lib/tcl-8.4 and
/usr/lib/tk-8.4, and then repeated step 2. Still no _tkinter.so.


Last time I compiled python on Linux (it was the 1.6 ) in order to include
statically Tkinter (or other modules), you needed to tweak with one file
in the Setup sub-directory of the source tree. Given the sore state of my
brain RAM, I can't be more precise than that.


Just uncomment the lines in Modules/Setup that start with _tkinter.

HTH.
Bye.
--
------------------------------------------------------------------------
Miki Tebeka <mi*********@zoran.com>
http://tebeka.spymac.net
The only difference between children and adults is the price of the toys

Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Adelein and Jeremy | last post: by
1 post views Thread by Michael Yanowitz | last post: by
4 posts views Thread by Edward K. Ream | last post: by
6 posts views Thread by Eric_Dexter | last post: by
8 posts views Thread by rahulnag22 | last post: by
7 posts views Thread by Protected | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.