[IPython-user] Various questions re: IPython on Windows

Ville M. Vainio vivainio@gmail....
Sat Jul 14 04:33:54 CDT 2007


On 7/13/07, Robin Siebler <robinsiebler@321.net> wrote:

> 1.  When I try to run the %edit command, I always get the below error.
> The error occurs *before* my editor has even launched!

What's in your EDITOR variable?

> 2.  When I try to use the %run command on a script, I always get this error:
>
> In [3]: %run save_song_list.py
> ---------------------------------------------------------------------------
> exceptions.SystemExit                                Traceback (most
> recent call
>  last)
>
> c:\temp\save_song_list.py
>      83     db.close()
>      84
> ---> 85 if __name__== '__main__': main()
>      86
>      87
>
> c:\temp\save_song_list.py in main()
>      50         last_song = db['last_song']
>      51         if song in last_song:
> ---> 52             sys.exit()
>      53         else:
>      54             if len(last_song) == 3:
>
> SystemExit:
> WARNING: Failure executing file: <save_song_list.py>

Well, you do run sys.exit()...

> AttributeError: 'module' object has no attribute 'clear_history'

Do you have the latest pyreadline installed?

>
> 3.  For pysh, if I try to use $var=cmd or $$var=cmd as shown in the docs,
> I get the following error:
>
> [Documents and Settings\rsiebler]|15> $foo = !dir

It should be "foo = !dir", i.e. lose the $.

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'


More information about the IPython-user mailing list