473,761 Members | 6,993 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

_tkinter fails when installing Python 2.4.4

I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) [RedHat
Enterprise Linux 4.6] 64-bit machine. Running "./configure --prefix="/
usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but
I get the following error message when I run "make":

building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/_tkinter.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/_tkinter.o
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/tkappinit.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.5/usr/local/yosi/
Python-2.5.2/Modules/_tkinter.o build/temp.linux-x86_64-2.5/usr/local/
yosi/Python-2.5.2/Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/
lib -L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -L. -ltk8.5 -
ltcl8.5 -lX11 -lpython2.5 -o build/lib.linux-x86_64-2.5/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it failed: build/
lib.linux-x86_64-2.5/_tkinter.so: undefined symbol: XftGlyphExtents

Any suggestions / ideas as to what is going wrong? I don't get any
other warnings or errors on the other modules. Thanks -- Yosi
Mar 25 '08 #1
5 2205
jgelfand schrieb:
I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) [RedHat
Enterprise Linux 4.6] 64-bit machine. Running "./configure --prefix="/
usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but
I get the following error message when I run "make":

building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/_tkinter.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/_tkinter.o
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/tkappinit.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.5/usr/local/yosi/
Python-2.5.2/Modules/_tkinter.o build/temp.linux-x86_64-2.5/usr/local/
yosi/Python-2.5.2/Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/
lib -L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -L. -ltk8.5 -
ltcl8.5 -lX11 -lpython2.5 -o build/lib.linux-x86_64-2.5/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it failed: build/
lib.linux-x86_64-2.5/_tkinter.so: undefined symbol: XftGlyphExtents

Any suggestions / ideas as to what is going wrong? I don't get any
other warnings or errors on the other modules. Thanks -- Yosi
You are aware that the above shows python 2.5 as the version that is
being used for compilation?

Diez
Mar 25 '08 #2
On Mar 25, 5:52 pm, "Diez B. Roggisch" <de...@nospam.w eb.dewrote:
jgelfand schrieb:
I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) [RedHat
Enterprise Linux 4.6] 64-bit machine. Running "./configure --prefix="/
usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but
I get the following error message when I run "make":
building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/_tkinter.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/_tkinter.o
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/tkappinit.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.5/usr/local/yosi/
Python-2.5.2/Modules/_tkinter.o build/temp.linux-x86_64-2.5/usr/local/
yosi/Python-2.5.2/Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/
lib -L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -L. -ltk8.5 -
ltcl8.5 -lX11 -lpython2.5 -o build/lib.linux-x86_64-2.5/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it failed: build/
lib.linux-x86_64-2.5/_tkinter.so: undefined symbol: XftGlyphExtents
Any suggestions / ideas as to what is going wrong? I don't get any
other warnings or errors on the other modules. Thanks -- Yosi

You are aware that the above shows python 2.5 as the version that is
being used for compilation?

Diez
Sorry. I get the same error messages for Python 2.4.4, Python 2.4.5,
and Python 2.5. The software package I'm trying to build from source
requests that I install Python 2.4.4, so I'm interesting in solutions
for that particular distribution.

Thanks -- Yosi
Mar 25 '08 #3
jgelfand wrote:
On Mar 25, 5:52 pm, "Diez B. Roggisch" <de...@nospam.w eb.dewrote:
>jgelfand schrieb:
I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) [RedHat
Enterprise Linux 4.6] 64-bit machine. Running "./configure --prefix="/
usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but
I get the following error message when I run "make":
building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/_tkinter.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/_tkinter.o
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/
local/yosi/Python-2.5.2/./Include -I/usr/local/yosi/ciao-4.0/ots/
include -I. -IInclude -I./Include -I/usr/local/include -I/usr/local/
yosi/Python-2.5.2/Include -I/usr/local/yosi/Python-2.5.2 -c /usr/local/
yosi/Python-2.5.2/Modules/tkappinit.c -o build/temp.linux-x86_64-2.5/
usr/local/yosi/Python-2.5.2/Modules/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.5/usr/local/yosi/
Python-2.5.2/Modules/_tkinter.o build/temp.linux-x86_64-2.5/usr/local/
yosi/Python-2.5.2/Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/
lib -L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -L. -ltk8.5 -
ltcl8.5 -lX11 -lpython2.5 -o build/lib.linux-x86_64-2.5/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it failed: build/
lib.linux-x86_64-2.5/_tkinter.so: undefined symbol: XftGlyphExtents
Any suggestions / ideas as to what is going wrong? I don't get any
other warnings or errors on the other modules. Thanks -- Yosi

You are aware that the above shows python 2.5 as the version that is
being used for compilation?

Diez

Sorry. I get the same error messages for Python 2.4.4, Python 2.4.5,
and Python 2.5. The software package I'm trying to build from source
requests that I install Python 2.4.4, so I'm interesting in solutions
for that particular distribution.
I think the actual problem is that the linking doesn't find the
XftGlyphExtends . I can only guess, but it might be related to
64-bit-problems. Make sure you have the library that contains the
XftGlyphExtends is available in the lib64 dirs and so forth.

Diez
Mar 26 '08 #4
On Mar 26, 7:02 am, "Diez B. Roggisch" <de...@nospam.w eb.dewrote:
>
I think the actual problem is that the linking doesn't find the
XftGlyphExtends . I can only guess, but it might be related to
64-bit-problems. Make sure you have the library that contains the
XftGlyphExtends is available in the lib64 dirs and so forth.
I tried running configure with --x-include="/usr/X11R6/include" --x-
libraries="/usr/X11R6/lib" (in addition to the flags above) and got
the same error. I believe XftGlyphExtends is defined in "Xft.h" which
is located in the directory "/usr/X11R6/include/X11/Xft". Based on
the output below, python looks in "/usr/X11R6/include" but not in this
directory:

building '_tkinter' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-
strict-aliasing -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/local/
yosi/Python-2.4.4/./Include -I/usr/local/yosi/ciao-4.0/ots/include -I/
usr/local/include -I/usr/local/yosi/Python-2.4.4/Include -I/usr/local/
yosi/Python-2.4.4 -c /usr/local/yosi/Python-2.4.4/Modules/_tkinter.c -
o build/temp.linux-x86_64-2.4/_tkinter.o
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-
strict-aliasing -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/local/
yosi/Python-2.4.4/./Include -I/usr/local/yosi/ciao-4.0/ots/include -I/
usr/local/include -I/usr/local/yosi/Python-2.4.4/Include -I/usr/local/
yosi/Python-2.4.4 -c /usr/local/yosi/Python-2.4.4/Modules/tkappinit.c -
o build/temp.linux-x86_64-2.4/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.4/_tkinter.o build/
temp.linux-x86_64-2.4/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -
L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -ltk8.5 -ltcl8.5 -
lX11 -o build/lib.linux-x86_64-2.4/_tkinter.so

When I try setting CFLAGS="-I/usr/X11R6/include/X11/Xft" and re-
running configure, I get the same error message regardless if I tell
python to it to use the 32 bit of 64 bit X-Windows libraries. How
should I force python to look in this directory?

Thanks a lot -- Yosi
Mar 26 '08 #5
jgelfand schrieb:
On Mar 26, 7:02 am, "Diez B. Roggisch" <de...@nospam.w eb.dewrote:
>I think the actual problem is that the linking doesn't find the
XftGlyphExtend s. I can only guess, but it might be related to
64-bit-problems. Make sure you have the library that contains the
XftGlyphExtend s is available in the lib64 dirs and so forth.

I tried running configure with --x-include="/usr/X11R6/include" --x-
libraries="/usr/X11R6/lib" (in addition to the flags above) and got
the same error. I believe XftGlyphExtends is defined in "Xft.h" which
is located in the directory "/usr/X11R6/include/X11/Xft". Based on
the output below, python looks in "/usr/X11R6/include" but not in this
directory:

building '_tkinter' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-
strict-aliasing -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/local/
yosi/Python-2.4.4/./Include -I/usr/local/yosi/ciao-4.0/ots/include -I/
usr/local/include -I/usr/local/yosi/Python-2.4.4/Include -I/usr/local/
yosi/Python-2.4.4 -c /usr/local/yosi/Python-2.4.4/Modules/_tkinter.c -
o build/temp.linux-x86_64-2.4/_tkinter.o
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-
strict-aliasing -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/usr/local/
yosi/Python-2.4.4/./Include -I/usr/local/yosi/ciao-4.0/ots/include -I/
usr/local/include -I/usr/local/yosi/Python-2.4.4/Include -I/usr/local/
yosi/Python-2.4.4 -c /usr/local/yosi/Python-2.4.4/Modules/tkappinit.c -
o build/temp.linux-x86_64-2.4/tkappinit.o
gcc -pthread -shared build/temp.linux-x86_64-2.4/_tkinter.o build/
temp.linux-x86_64-2.4/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -
L/usr/local/yosi/ciao-4.0/ots/lib -L/usr/local/lib -ltk8.5 -ltcl8.5 -
lX11 -o build/lib.linux-x86_64-2.4/_tkinter.so

When I try setting CFLAGS="-I/usr/X11R6/include/X11/Xft" and re-
running configure, I get the same error message regardless if I tell
python to it to use the 32 bit of 64 bit X-Windows libraries. How
should I force python to look in this directory?
The above is a LINKER error, not a compiler-error. You need to find the
library which contains the missing symbol, and trace where it get's
picked up wrong. Not something (I at least) can do from here.

Diez
Mar 26 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1435
by: Berthold Höllmann | last post by:
Hello, I'm trying to compile Python 2.3 on Solaris 8, but can't get _tkinter to work. I got errors about the ancient tcl/tk installed under /usr/local and installed an new one into the path where Python shall go. But now the install test after compilation fails with: *** WARNING: renaming "_tkinter" since importing it failed: ld.so.1: ./python: fatal: relocation error: file /usr/local/lib/libBLT8.0.so: symbol tkActiveUid: referenced...
2
5112
by: Sebastian Stelzer | last post by:
Hi, I'am a beginner in Python and I have got a problem with the TKInter module. When I want to start e.g. pysol, I get following output: Traceback (most recent call last): File "/usr/share/games/pysol/src/pysol.py", line 47, in ? from main import main File "/usr/share/games/pysol/src/main.py", line 48, in ?
2
2450
by: gaool | last post by:
Hello, I try to launch a Python script on SunOS system but I have this error: """Traceback (most recent call last): File "ihm1_1.py", line 3, in ? from Tkinter import * File "/opt/sfw/lib/python2.3/lib-tk/Tkinter.py", line 38, in ? import _tkinter # If this fails your Python may not be configured for Tk
0
1705
by: mg | last post by:
Hello, First, I installed Python on a traditionnal default linux-x86 platform (tk.h is located in /usr/include) and I did not meet any problem. I can write the following instruction without error in my python interpreter: ../configure --prefix=/usr/local/python make make install /usr/local/python/bin/python
1
3462
by: Sorin Schwimmer | last post by:
Hi All, After a disaster in which I lost my whole harddrive, I decided to install the newest everything that I use. I put the latest Gentoo Linux, with gcc 4.1.1, installed tcl/tk 8.4.14 and tried Python 2.5. I tried with and without the suggested -fwrapv compiler option, and make gave me the same:
1
2409
by: Sue Velutty | last post by:
Hi, I'm having this errror when I try to run "import _tkinter" in python Python 2.2.2 (#1, Apr 5 2007, 12:58:53) on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ZSI >>> import _tkinter Traceback (most recent call last):
9
2268
by: wyleu | last post by:
I'm running on Mandriva 2007 (2.6.17-5mdv) and thus have python2.4.3 installed by default, I'm running code requiring yield(), so need python2.5 and have installed this sucessfully, and linked appropriately to allow me to start python2.5 by typing python2.5. However I'd like to use idle so require to be able to import _tkinter. I gather I need to modift the setup.py script in my python directory but am wary of experimenting since I've...
0
1210
by: akineko | last post by:
Hello, I spent time today to investigate this. If you install Python with Tkinter from source, _tkinter is built into the Python executable and _tkinter.so is not generated *unless* "shared" option is specified. I found this by running python with '-v' option: % python -v ....
3
1624
by: Mario Ruggier | last post by:
Hi, i had the following problem when installing py3.0rc1 on a Mac OS X 10.5.5. On this system, the default locale values are: $ locale LANG= LC_COLLATE="C" LC_CTYPE="UTF-8" LC_MESSAGES="C"
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9988
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9811
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8813
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6640
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3911
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 we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.