bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] idle.PyShell


From: Joern Thyssen
Subject: Re: [Bug-gnubg] idle.PyShell
Date: Mon, 3 Nov 2003 13:56:28 +0000
User-agent: Mutt/1.4.1i

On Sat, Nov 01, 2003 at 06:13:17PM +0100, Achim Mueller wrote
> last one for tonight (perhaps):
> 
> Using python from the gui isn't possible, right?!
> I get this error:
> 
>    >import idle.PyShell; idle.PyShell.main()
> 
>    Traceback (most recent call last):
>      File "<string>", line 1, in ?
>        ImportError: No module named idle.PyShell
> 
> I checked the modules in a Python shell, there is only a module
> called "idlelib". There is also a package called "python-idle"
> with a python-script "/usr/bin/idle" that has this context:
> 
>     from idlelib.PyShell import main
>     main()

The preferred way of starting IDLE has changed between the latest python
releases. I'll have to add some autoconf magic to sort it out.

> 
> How is it possible to use python in the non-gui version? I'm
> curious, because I just started learning python.

Enter a '>' to enter the Python shell. You can now start IDLE as above
or just enter python commands as usual.

Jørn

Attachment: pgp2Fr6jPgNqD.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]