473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

2.3 Redhat 9 Tkinter IDLE

im trying to get idle to work and its really getting frustrating
(and from what ive read on other posts i am not alone)

i think i have to edit the Modules/Setup file but im confused as
to what to uncoment and what to change.

i dont know where my Tcl/Tk libraries are
i think my Tcl/Tk headers are in /usr/include/ (not in
/usr/local/include)
im not sure where my X11 headers are (they werent in /usr/x11r6/include)
Tix/BLT - dont know what those are
im pretty sure my tcl/tk version is 8.3(rpm -qa tcl/tk reveals 8.3.5-88)

and so then i should rebuild and reinstall.
and then "Make sure to enable the _tkinter module as well as the
TKPATH variable definition."(not sure what they mean by enable or
what to do with TKPATH)

2 questions:
Why does this have to be so difficult?
Can anyone provide step by step inststructions?

Jul 18 '05 #1
3 2010
"RT Lange" <wh*********@yahoo.com> writes:
im trying to get idle to work and its really getting frustrating
(and from what ive read on other posts i am not alone)

i think i have to edit the Modules/Setup file but im confused as
to what to uncoment and what to change.
No, you don't have to edit Modules/Setup. _tkinter is built
automatically if you have the header files installed.
Why does this have to be so difficult?
Because you have limited disk space. As a result of that, Redhat
decides not to install all header files by default. As a result of
that, you have to make an explicit choise as to what header files to
install.
Can anyone provide step by step inststructions?


Sorry, I don't have Redhat 9, so I don't know what the name of the
package is that contains the Tk header files. It probably has the
strings "tcl" and "dev" in their name.

I also don't know whether you installed the system from CD-ROM, DVD,
or via the network, so I can't give precise instructions as to what
media to insert into what slot.

It would be better if you reported the steps you have been doing, and
the problems you see.

Regards,
Martin
Jul 18 '05 #2
On Sun, 03 Aug 2003 09:50:26 +0200, Martin v. Löwis wrote:
No, you don't have to edit Modules/Setup. _tkinter is built
automatically if you have the header files installed. i have the header files: /usr/include/tcl.h;/usr/include/tk.h
Sorry, I don't have Redhat 9, so I don't know what the name of the
package is that contains the Tk header files. It probably has the
strings "tcl" and "dev" in their name. the package is buried under "Kernel Development"
It would be better if you reported the steps you have been doing, and
the problems you see.

[root@/usr/lib/Python-2.3]# make
case $MAKEFLAGS in \
*-s*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
running build
running build_ext
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/lib/Python-2.3/./Include -I/usr/local/include
-I/usr/lib/Python-2.3/Include -I/usr/lib/Python-2.3 -c /usr/lib/Python-2.3/Modules/_tkinter.c
-o build/temp.linux-i686-2.3/_tkinter.o
/usr/lib/Python-2.3/Modules/_tkinter.c:96:2: #error "unsupported Tcl configuration"
/usr/lib/Python-2.3/Modules/_tkinter.c: In function `AsObj':
/usr/lib/Python-2.3/Modules/_tkinter.c:947: warning: passing arg 1 of `Tcl_NewUnicodeObj' from
incompatible pointer type
/usr/lib/Python-2.3/Modules/_tkinter.c: In function `FromObj':
/usr/lib/Python-2.3/Modules/_tkinter.c:1073: warning: passing arg 1 of `PyUnicodeUCS2_FromUnicode'
from incompatible pointer type
running build_scripts
Jul 18 '05 #3
"RT Lange" <wh*********@yahoo.com> writes:
/usr/lib/Python-2.3/Modules/_tkinter.c:96:2: #error "unsupported Tcl configuration"


That is the problem. Quoting from README:

Red Hat Linux: Red Hat 9 built Python2.2 in UCS-4 mode and hacked
Tcl to support it. To compile Python2.3 with Tkinter, you will
need to pass --enable-unicode=ucs4 flag to ./configure.

In this case "it is so difficult" because Redhat chose to hack Tcl.

HTH,
Martin
Jul 18 '05 #4

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

Similar topics

0
by: Andrei | last post by:
I've installed Python 2.3b2 on Windows XP (in "e:\programming\Python2.3"). I also have an older ActivePython 2.2.2 distro on my C-drive and Ruby which apparently installs tcl as well. Now I'm...
3
by: srijit | last post by:
Hello, Any idea - why the following code crashes on my Win 98 machine with Python 2.3? Everytime I run this code, I have to reboot my machine. I also have Win32all-157 installed. from Tkinter...
1
by: mikeSpindler | last post by:
Apparently installing Python2.3 leaves Redhat 9.0 users fending for themselves to figure out how to install tkinter. What's the trick? So far - I've tried: -reinstalling Python; -hiding all...
3
by: Bob Greschke | last post by:
I have a program where the user pushes a button, a "starting" message is ..inserted to a text field with an associated scroll bar, a thread is started that inserts a "working..." message on to the...
6
by: Batista, Facundo | last post by:
I tested the following simple code: ----------------- from Tkinter import * class App: def __init__(self, master): frame = Frame(master)
1
by: neutrinman | last post by:
How do I use Tkinter from IDLE? Tkinter can be used from IDLE attached to python 2.2, IDLE 0.8. But I couldn't use from IDLE attached to python 2.3, IDLE 1.0.3. When I execute the code below: from...
5
by: Ben Kovitz | last post by:
Hi, I just tried to run Tkinter on OS X 10.3.9 under Python 2.4.3, and I'm getting a bus error as soon as I call Tk(). Googling has turned up info other Tkinter bus errors, but not this one that...
7
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,...
3
by: J-Burns | last post by:
Hello. Im a bit new to using Tkinter and im not a real pro in programming itself... :P. Need some help here. Problem 1: How do I make something appear on 2 separate windows using Tkinter? By...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...

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.