[Tutor] [Q] using IDLE in redhat

Michael P. Reilly arcege@speakeasy.net
Fri, 4 Jan 2002 18:52:27 -0500


On Fri, Jan 04, 2002 at 03:24:59PM -0600, Young-Jin Lee wrote:
> Hi, I'm new to redhat and I'm looking for a help on how to use IDLE in
> redhat.
> I installed Python 2.2 the other day and tried to learn IDLE by typing it
> "idle", but it didn't work at all.
> I thought I should add a path to the idle so I added
> "PATH=$PATH:/usr/lib/python2.2/Tools; export PATH".
> But when I typed "idle" at my home directory, I got "bash:idle: command not
> found". I have never used bash shell. (I have used csh in IRIX, but I
> decided to use bash because bash seems to be a standard in Linux).
> When I tried it with a full path, "/usr/lib/python2.2/Tools/idle/idle", I
> got the following python exception.
> Traceback (innermost last):
>     File "/usr/lib/python2.2/Tools/idle/idle", line 5, in ?
>         from idlelib import IdleConf
> ImportError: No module named idlelib
> 
> The configuration seems to be not correct, but I have no idea. Is there a
> good tutorial or guide on how to use IDLE in redhat (or Linux)?
> 
> Thanks in advance.

Unfortunately, Idle got screwed when they tried to get it into Python 2.1
with the new distutils.  You must now install IDLE before you can use it;
you cannot use it in its place like you could with earlier releases.

You need to install it by running the setup.py file in the Tools/idle
directory.
$ cd .../Tools/idle
$ python2.2 ./setup.py

  -Arcege