<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>IPython looks great - in fact it looks like it
could be something I've been <BR>looking for for a long time - a repalcement
shell for windoze with the power of <BR>python.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Unfortunately it doesn't seem to work on my XP
windoze box. (python 2.3.3).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I eventually discovered the IPython crash report
(when run, IPython just flickers up <BR>and then vanishes).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I'm posting the crash report in the help that
someone may be able to see the <BR>cause of the problem (an attribute error -
would seem to be pretty fundamental...) :</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>***************************************************************************</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>IPython post-mortem report</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>IPython version: 0.5.0 </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Platform info : os.name -> nt,
sys.platform -> win32</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>***************************************************************************</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Current user configuration structure:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>{'Version': 0,<BR> 'alias':
[],<BR> 'args': [],<BR> 'autocall': 1,<BR> 'autoindent':
0,<BR> 'automagic': 1,<BR> 'banner': 1,<BR> 'c':
'',<BR> 'cache_size': 1000,<BR> 'classic': 0,<BR> 'color_info':
1,<BR> 'colors': 'NoColor',<BR> 'confirm_exit': 1,<BR> 'debug':
0,<BR> 'deep_reload': 0,<BR> 'editor': '0',<BR> 'execfile':
[],<BR> 'execute': [],<BR> 'help': 0,<BR> 'ignore':
0,<BR> 'import_all': [],<BR> 'import_mod': [],<BR> 'import_some':
[[]],<BR> 'include': [],<BR> 'ipythondir': 'C:\\Documents and
Settings\\Voidspace\\.ipython',<BR> 'log': 0,<BR> 'logfile':
'',<BR> 'logplay': '',<BR> 'magic_docstrings': 0,<BR> 'messages':
1,<BR> 'nosep': 0,<BR> 'opts': Struct({}),<BR> 'pdb':
0,<BR> 'pprint': 1,<BR> 'profile': '',<BR> 'prompt_in1': 'In
[%n]:',<BR> 'prompt_in2': ' .%n.:',<BR> 'prompt_out':
'Out[%n]:',<BR> 'quick': 0,<BR> 'rcfile':
'ipythonrc.ini',<BR> 'readline': 1,<BR> 'readline_omit__names':
0,<BR> 'readline_parse_and_bind': ['tab:
complete',<BR>
'"\\C-l":
possible-completions',<BR>
'set show-all-if-ambiguous
on',<BR>
'"\\C-o":
tab-insert',<BR>
'"\\M-i": "
"',<BR>
'"\\M-o": "<A
href="file://\\d\\d\\d\\d"'">\\d\\d\\d\\d"'</A>,<BR>
'"\\M-I": "<A
href="file://\\d\\d\\d\\d"'">\\d\\d\\d\\d"'</A>,<BR>
'"\\C-r":
reverse-search-history',<BR>
'"\\C-s":
forward-search-history',<BR>
'"\\C-p":
history-search-backward',<BR>
'"\\C-n": history-search-forward'],<BR> 'readline_remove_delims':
'\'"[]{}-/~',<BR> 'screen_length': 0,<BR> 'separate_in':
'\\n',<BR> 'separate_out': '0',<BR> 'separate_out2':
'0',<BR> 'upgrade': 0,<BR> 'xmode': 'Context'}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>***************************************************************************</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Crash traceback:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>---------------------------------------------------------------------------<BR>AttributeError
Python 2.3.3:
C:\Python23\python.exe<BR>
Thu Apr 22 23:05:50 2004<BR>A problem occured executing Python code. Here
is the sequence of function<BR>calls leading up to the error, with the most
recent (innermost) call last.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>C:\Program Files\IPython\IPython_shell.py
<BR> -3 """<BR> -2
<BR> -1 import IPython<BR>
0 IPython.Shell.IPShell().mainloop()</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>C:\Python23\Lib\site-packages\IPython\Shell.py in
__init__(self=<IPython.Shell.IPShell instance at 0x009F1CD8>,
argv=[r'C:\Program Files\IPython\IPython_shell.py'], user_ns=None,
debug=0)<BR> 26 from ipmaker import
make_IPython<BR> 27 from genutils import
qw<BR> 28 import ultraTB<BR> 29
<BR> 30
#-----------------------------------------------------------------------------<BR>
31 # This class is trivial now, but I want to have it in to publish a
clean<BR> 32 # interface. Later when the internals are
reorganized, code that uses this<BR> 33 # shouldn't have
to change.<BR> 34 <BR> 35 class
IPShell:<BR> 36 """Create an
IPython instance."""<BR> 37
<BR> 38 def
__init__(self,argv=None,user_ns=None,debug=0):<BR>
39 if argv is
None:<BR>
40 argv
= sys.argv<BR>---> 41 self.IP
=
make_IPython(argv,user_ns=user_ns,debug=debug)<BR>
self = <IPython.Shell.IPShell instance at 0x009F1CD8>, global IP =
undefined, global make_IPython = <function make_IPython at 0x00A06F70>,
argv = [r'C:\Program Files\IPython\IPython_shell.py'], user_ns = None, debug =
0<BR> 42 <BR>
43 def
mainloop(self,sys_exit=0):<BR>
44
self.IP.mainloop()<BR>
45 if
sys_exit:<BR>
46
sys.exit()<BR> 47 <BR> 48 #
alias for backwards compatibility<BR> 49 IPythonShell =
IPShell<BR> 50 <BR> 51
#-----------------------------------------------------------------------------<BR>
52 class IPShellEmbed:<BR> 53
"""Allow embedding an IPython shell into a running
program.<BR> 54 <BR>
55 Instances of this class are callable, with the
__call__ method being an<BR> 56
alias to the embed() method of an InteractiveShell instance.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>C:\Python23\Lib\site-packages\IPython\ipmaker.py in
make_IPython(argv=[r'C:\Program Files\IPython\IPython_shell.py'], user_ns=None,
debug=0, rc_override=None)<BR> 476 #
wouldn't worry about this stuff!<BR> 477
<BR> 478 if
IP.rc.classic:<BR>
479 IP.rc.quick =
1<BR> 480
IP.rc.cache_size = 0<BR>
481 IP.rc.pprint =
0<BR> 482
IP.rc.prompt_in1 = '>>> '<BR>
483 IP.rc.prompt_in2 = '...
'<BR> 484
IP.rc.prompt_out = ''<BR>
485 IP.rc.separate_in =
IP.rc.separate_out = IP.rc.separate_out2 = '0'<BR>
486 IP.rc.colors =
'NoColor'<BR>
487 IP.rc.xmode =
'Plain'<BR> 488 <BR>
489 # configure readline<BR>
490 if IP.rc.readline:<BR>-->
491
IP.init_readline()<BR> IP =
<IPython.iplib.InteractiveShell instance at 0x00A01198>, global
init_readline = undefined<BR> 492 <BR>
493 # update exception handlers with rc file
status<BR> 494 otrap.trap_out()
# I don't want these messages ever.<BR>
495 IP.magic_xmode(IP.rc.xmode)<BR>
496 otrap.release_out()<BR> 497
<BR> 498 # activate logging if
requested and not reloading a log<BR>
499 if IP.rc.logplay:<BR>
500
IP.magic_logstart(IP.rc.logplay + ' append')<BR>
501 elif IP.rc.logfile:<BR>
502
IP.magic_logstart(IP.rc.logfile)<BR>
503 elif IP.rc.log:<BR>
504
IP.magic_logstart()<BR> 505 <BR>
506 # find user editor so that it we don't have to look
it up constantly</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>C:\Python23\Lib\site-packages\IPython\iplib.py in
init_readline(self=<IPython.iplib.InteractiveShell instance at
0x00A01198>)<BR>
588
#print '*** Reading readline history' # dbg<BR>
589
readline.read_history_file(self.histfile)<BR>
590
except IOError:<BR>
591
pass # It doesn't exist yet.<BR> 592
<BR>
593
atexit.register(self.savehist)<BR>
594 del
atexit<BR> 595 <BR>
596 except
ImportError,msg:<BR>
597
self.has_readline = 0<BR>
598 # no
point in bugging windows users with this every time:<BR>
599 if
os.name == 'posix':<BR>
600
warn('Readline services not available on this platform.')<BR>
601 <BR> 602
except KeyError:<BR>-->
603
pass # under windows, no environ['term'] key</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> 604 <BR>
605 # Configure auto-indent for
all platforms<BR>
606
self.set_autoindent(self.rc.autoindent)<BR> 607
<BR> 608 def showsyntaxerror(self,
filename=None):<BR>
609 """Display the syntax error
that just occurred.<BR> 610 <BR>
611 This doesn't display a stack
trace because there isn't one.<BR> 612 <BR>
613 If a filename is given, it
is stuffed in the exception instead<BR>
614 of what was there before
(because Python's parser always uses<BR>
615 "<string>" when
reading from a string).<BR>
616 """<BR>
617 type, value,
sys.last_traceback = sys.exc_info()<BR>
618 sys.last_type =
type</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>C:\Python23\Lib\site-packages\IPython\iplib.py in
__init__(self=<IPython.iplib.MagicCompleter instance at 0x00A6A580>,
namespace={'In': ['\n'], 'Out': {}, '__IP': <IPython.iplib.InteractiveShell
instance at 0x00A01198>, '__builtins__': <module '__builtin__'
(built-in)>, '__name__': '__main__', '_dh': [r'C:\Program Files\IPython'],
'_ih': ['\n'], '_oh': {}, 'help': Type help() for interactive help, or
help(object) for help about object.}, omit__names=0)<BR>
86 <BR> 87 class
MagicCompleter(FlexCompleter.Completer):<BR>
88 """Extension of the completer
class to work on @-prefixed lines."""<BR> 89
<BR> 90
def __init__(self, namespace = None, omit__names =
0):<BR>
91
"""MagicCompleter(namespace = None, omit__names = 0) ->
completer<BR> 92 <BR>
93
Return a completer object suitable for use by the readline
library<BR>
94 via
readline.set_completer().<BR> 95
<BR>
96 The
optional omit__names parameter sets the completer to omit
the<BR>
97
'magic' names (__magicname__) for python objects unless the
text<BR>
98 to be
completed explicitly starts with one or more
underscores."""<BR> 99 <BR>
100
FlexCompleter.Completer.__init__(self,namespace)<BR>-->
101
delims =
FlexCompleter.readline.get_completer_delims()<BR>
delims = undefined, global FlexCompleter = <module 'IPython.FlexCompleter'
from 'C:\Python23\Lib\site-packages\IPython\FlexCompleter.pyc'>, global
readline = undefined, global get_completer_delims =
undefined<BR>
102
delims = delims.replace('@','')<BR>
103
FlexCompleter.readline.set_completer_delims(delims)<BR>
104
self.omit__names = omit__names<BR> 105 <BR>
106 # Code contributed by Alex
Schmolck, for ipython/emacs integration<BR>
107 def all_completions(self,
text):<BR>
108
"""Return all possible completions for the benefit of
emacs."""<BR>
109
<BR>
110
completions = []<BR>
111
try:<BR>
112
for i in xrange(sys.maxint):<BR>
113
res = self.complete(text, i)<BR> 114 <BR>
115
if not res: break<BR> 116 </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>AttributeError: 'module' object has no attribute
'get_completer_delims'</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>***************************************************************************</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>History of session input:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>*** Last line of input (may not be in above
history):<BR></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR>Fuzzy</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.voidspace.org.uk/atlantibots/pythonutils.html">http://www.voidspace.org.uk/atlantibots/pythonutils.html</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>