bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Python on Mac OS X


From: Joern Thyssen
Subject: Re: [Bug-gnubg] Python on Mac OS X
Date: Fri, 13 Feb 2004 12:44:34 +0000
User-agent: Mutt/1.4.2i

On Fri, Feb 13, 2004 at 08:56:15AM +0000, Joern Thyssen wrote
> On Fri, Feb 13, 2004 at 03:46:37AM +0100, Olivier Baur wrote
> > Hi.
> > 
> > First of all, I'm a total beginner with Python.
> > 
> > I'd like to try to use Python 2.3 with gnubg on Mac OS X, but I can't 
> > figure out what to do.
> > Should I be using the command-line Python utility? When I select in 
> > gnubg the Window > Python (IDLE) menu item, I get the following output 
> > :
> > 
> > >>import idle.PyShell; idle.PyShell.main()
> > >
> > >Traceback (most recent call last):
> > >  File "<string>", line 1, in ?
> > >ImportError: No module named idle.PyShell
> > 
> > 
> > I've been browsing the www.python.org website, but couldn't try some 
> > info help me find out what to do next :-)
> 
> The command used for starting IDLE changes between each version of
> python, so "import idle.PyShell; idle.PyShell.main()" may not work with
> your version.
> 
> If you've installed IDLE you'll have a script somewhere that starts
> IDLE. Can you find that file and post the contents?

Hmm, I have Python 2.3 on my box at work, Try this in gnubg:

> import idlelib.PyShell; idlelib.PyShell.main();

(note the leading greater-than sign (>)).

Jørn

Attachment: pgp90Jk2Tp12R.pgp
Description: PGP signature


reply via email to

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