[Tutor] Idle on RH 7.2 questions
Chris Kassopulo
ckasso@sprynet.com
Fri Mar 7 14:47:02 2003
> Tim Johnson <tim@johnsons-web.com> wrote:
> Hello All:
> I am using RH 7.2 with python 1.5.2 as the default
> for the distribution (I believe). I would prefer to
> leave 1.5.2 as it is and have also installed Python 2.2.2
>
> I would like to use idle with 2.2.2 and my current idle
> looks like this:
> #
> #! /usr/bin/env python
>
> import os
> import sys
> from idlelib import IdleConf
>
> idle_dir = os.path.dirname(IdleConf.__file__)
> IdleConf.load(idle_dir)
>
> # defer importing Pyshell until IdleConf is loaded
> from idlelib import PyShell
> PyShell.main()
> #
> and I have the idle (2.2) directory at
> /usr/local/lib/python2.2/site-packages/idle
>
> when I run idle, I get the following error message:
> Traceback (innermost last):
> File "/usr/bin/idle", line 5, in ?
> from idlelib import IdleConf
> ImportError: No module named idlelib
> I cannot 'locate' or 'find' on my machine
> My questions are:
> 1)Is idlelib a seperate distribution
> or
> 2)Have I made an error in my installation of
> python2.2
>
> TIA
Greetings Tim,
Note that I am using python 2.2 under slackware.
/usr/lib/python2.2/site-packages/idlelib is the
directory that contains IdleConf.py and there is
no site-packages/idle directory.
Chris