473,499 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1799
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1478
by: Adelein and Jeremy | last post by:
I have just installed Python 2.3.3, after first installing Tcl/Tk 8.4.6. After successful installation of Tcl/Tk (including passing configure the '--enable-shared' option), and testing both Tcl...
1
3835
by: corrado | last post by:
Hello I have an application running several thread to display some financial data; basically I have a thread displaying HTML tables by means of Tkhtml, another implementing a scrolling ticker...
1
1822
by: jean-marc | last post by:
I read that Tkinter and Python IDEs (PythonWin and Idle at least) makes for a bad mix in execution mode because they're fighting for the event loop, but this mode is usefull to use the debugger. ...
1
3581
by: Michael Yanowitz | last post by:
Hello: Below I have included a stripped down version of the GUI I am working on. It contains 2 dialog boxes - one main and one settings. It has the following problems, probably all related, that...
4
1946
by: Edward K. Ream | last post by:
Hello all, Creating a 'Help' menu 'by hand' on the Mac does not work, or rather, it creates a *second* Help menu. There are hints about how to do this at:
6
1862
by: Eric_Dexter | last post by:
Instead of creating my buttons and waiting for me to press them to execute they are executing when I create them and won't do my callback when I press them.. thanks for any help in advance ...
8
11198
by: rahulnag22 | last post by:
I have created a button widget with a button click binding. The button initially has a state=disabled. I can see the greyed out version of the button in the GUI. But If I click on the button it...
1
2421
by: alivip | last post by:
I integrat program to be GUI using Tkinter I try browser direction as you can see # a look at the Tkinter Text widget # use ctrl+c to copy, ctrl+x to cut selected text, # ctrl+v to...
7
3258
by: Protected | last post by:
Hello. I'm a complete newbie trying to learn Python. I decided to try some Tkinter examples, including the one from the library reference, but they don't seem to do anything! Shouldn't there be,...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7392
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.