[IPython-dev] Fwd: IPython Crash Report
Ville M. Vainio
vivainio at gmail.com
Mon Sep 15 15:08:11 EDT 2008
Check this out - this is probably a new development.
---------- Forwarded message ----------
From: <blbmdsmith at comcast.net>
Date: Mon, Sep 15, 2008 at 10:03 PM
Subject: IPython Crash Report
To: vivainio at gmail.com
I am running IPython for the first time. It is highly likely that I
don't have all of IPython installed correctly or I am missing some
library.
Thanks for any help,
Bill
***************************************************************************
IPython post-mortem report
IPython version: 0.9.1
SVN revision : 1145
Platform info : os.name -> posix, sys.platform -> linux2
***************************************************************************
Current user configuration structure:
{'Version': 0,
'__allownew': True,
'alias': [],
'args': [],
'autocall': 1,
'autoedit_syntax': 0,
'autoexec': [],
'autoindent': 1,
'automagic': 1,
'banner': 1,
'c': '',
'cache_size': 1000,
'classic': 0,
'color_info': 1,
'colors': 'Linux',
'confirm_exit': 1,
'debug': 0,
'deep_reload': 0,
'editor': 'vi',
'embedded': False,
'execfile': [],
'execute': [''],
'gthread': 0,
'help': 0,
'import_all': [],
'import_mod': [],
'import_some': [[]],
'include': [],
'interact': 0,
'ipythondir': '/root/.ipython',
'log': 0,
'logfile': '',
'logplay': '',
'magic_docstrings': 0,
'messages': 1,
'multi_line_specials': 1,
'nosep': 0,
'object_info_string_level': 0,
'opts': Struct({'__allownew': True}),
'pdb': 0,
'pprint': 1,
'profile': '',
'prompt_in1': 'In [\\#]: ',
'prompt_in2': ' .\\D.: ',
'prompt_out': 'Out[\\#]: ',
'prompts_pad_left': 1,
'pydb': 0,
'pylab': 0,
'pylab_import_all': 1,
'q4thread': 0,
'qthread': 0,
'quick': 0,
'quiet': 0,
'rcfile': 'ipythonrc',
'readline': 1,
'readline_merge_completions': 1,
'readline_omit__names': 0,
'readline_parse_and_bind': ['tab: complete',
'"\\C-l": possible-completions',
'set show-all-if-ambiguous on',
'"\\C-o": tab-insert',
'"\\M-i": " "',
'"\\M-o": "\\d\\d\\d\\d"',
'"\\M-I": "\\d\\d\\d\\d"',
'"\\C-r": reverse-search-history',
'"\\C-s": forward-search-history',
'"\\C-p": history-search-backward',
'"\\C-n": history-search-forward',
'"\\e[A": history-search-backward',
'"\\e[B": history-search-forward',
'"\\C-k": kill-line',
'"\\C-u": unix-line-discard'],
'readline_remove_delims': '-/~',
'screen_length': -2,
'separate_in': '\n',
'separate_out': '',
'separate_out2': '',
'system_header': 'IPython system call: ',
'system_verbose': 0,
'term_title': 1,
'tk': 0,
'upgrade': 0,
'wildcards_case_sensitive': 1,
'wthread': 0,
'wxversion': '0',
'xmode': 'Context'}
***************************************************************************
Crash traceback:
---------------------------------------------------------------------------
TypeError Python 2.4.3: /usr/bin/python
Mon Sep 15 14:56:04 2008
A problem occured executing Python code. Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
/usr/bin/ipython
1
2
3
4
5
6
----> 7
sys.exit = <built-in function exit>
load_entry_point = <function load_entry_point at 0xb7eddd4c>
8
9
10 #!/usr/bin/python
11 # EASY-INSTALL-ENTRY-SCRIPT: 'ipython==0.9.1','console_scripts','ipython'
12 __requires__ = 'ipython==0.9.1'
13 import sys
14 from pkg_resources import load_entry_point
15
16 sys.exit(
17 load_entry_point('ipython==0.9.1', 'console_scripts', 'ipython')()
18 )
19
20
21
22
23
24
25
26
27
28
29
30
31
/usr/lib/python2.4/site-packages/ipython-0.9.1-py2.4.egg/IPython/ipapi.pyc
in launch_new_instance(user_ns=None, shellclass=None)
544 def check_hotname(self,name):
545 if name in self.hotnames:
546 self.debug_stack( "HotName '%s' caught" % name)
547
548
549 def launch_new_instance(user_ns = None,shellclass = None):
550 """ Make and start a new ipython instance.
551
552 This can be called even without having an already initialized
553 ipython session running.
554
555 This is also used as the egg entry point for the 'ipython' script.
556
557 """
558 ses = make_session(user_ns,shellclass)
--> 559 ses.mainloop()
560
561
562 def make_user_ns(user_ns = None):
563 """Return a valid user interactive namespace.
564
565 This builds a dict with the minimal information needed to
operate as a
566 valid IPython user namespace, which you can pass to the
various embedding
567 classes in ipython.
568
569 This API is currently deprecated. Use
ipapi.make_user_namespaces() instead
570 to make both the local and global namespace objects simultaneously.
571
572 :Parameters:
573 user_ns : dict-like, optional
574 The current user namespace. The items in this
namespace should be
/usr/lib/python2.4/site-packages/ipython-0.9.1-py2.4.egg/IPython/Shell.pyc
in mainloop(self=<IPython.Shell.IPShell instance>, sys_exit=0,
banner=None)
66 #-----------------------------------------------------------------------------
67 # This class is trivial now, but I want to have it in to publish a clean
68 # interface. Later when the internals are reorganized, code
that uses this
69 # shouldn't have to change.
70
71 class IPShell:
72 """Create an IPython instance."""
73
74 def __init__(self,argv=None,user_ns=None,user_global_ns=None,
75 debug=1,shell_class=InteractiveShell):
76 self.IP = make_IPython(argv,user_ns=user_ns,
77 user_global_ns=user_global_ns,
78 debug=debug,shell_class=shell_class)
79
80 def mainloop(self,sys_exit=0,banner=None):
---> 81 self.IP.mainloop(banner)
global When = undefined
global the = undefined
global IPython = <module 'IPython' from
'/usr/lib/python2.4/site-packages/ipython-0.9.1-py2.4.egg/IPython/__init__.pyc'>
global shell = undefined
global exited = undefined
global with = undefined
global Ctrl = undefined
global D = undefined
global normal = undefined
global program = undefined
global execution = undefined
82 if sys_exit:
83 sys.exit()
84
85 #-----------------------------------------------------------------------------
86 def kill_embedded(self,parameter_s=''):
87 """%kill_embedded : deactivate for good the current embedded IPython.
88
89 This function (after asking for confirmation) sets an
internal flag so that
90 an embedded IPython will never activate again. This is useful to
91 permanently disable a shell that is being called inside a
loop: once you've
92 figured out what you needed from it, you may then kill it
and the program
93 will then continue to run without the interactive shell
interfering again.
94 """
95
96 kill = ask_yes_no("Are you sure you want to kill this
embedded instance "
/usr/lib/python2.4/site-packages/ipython-0.9.1-py2.4.egg/IPython/iplib.pyc
in mainloop(self=<IPython.iplib.InteractiveShell object>,
banner='Python 2.4.3 (#1, Jan 14 2008, 18:32:40) \nType "...ut
\'object\'. ?object also works, ?? prints more.\n')
1562 internally created default banner."""
1563
1564 if self.rc.c: # Emulate Python's -c option
1565 self.exec_init_cmd()
1566 if banner is None:
1567 if not self.rc.banner:
1568 banner = ''
1569 # banner is string? Use it directly!
1570 elif isinstance(self.rc.banner,basestring):
1571 banner = self.rc.banner
1572 else:
1573 banner = self.BANNER+self.banner2
1574
1575 while 1:
1576 try:
-> 1577 self.interact(banner)
1578 #self.interact_with_readline()
1579 # XXX for testing of a readline-decoupled repl
loop, call interact_with_readline above
1580
1581 break
1582 except KeyboardInterrupt:
1583 # this should not be necessary, but KeyboardInterrupt
1584 # handling seems rather unpredictable...
1585 self.write("\nKeyboardInterrupt in interact()\n")
1586
1587 def exec_init_cmd(self):
1588 """Execute a command given at the command line.
1589
1590 This emulates Python's -c option."""
1591
1592 #sys.argv = ['-c']
/usr/lib/python2.4/site-packages/ipython-0.9.1-py2.4.egg/IPython/iplib.pyc
in interact(self=<IPython.iplib.InteractiveShell object>,
banner='Python 2.4.3 (#1, Jan 14 2008, 18:32:40) \nType "...ut
\'object\'. ?object also works, ?? prints more.\n')
1799 self.rl_do_indent = False
1800 self.readline_startup_hook(None)
1801 self.write('\n')
1802 self.exit()
1803 except bdb.BdbQuit:
1804 warn('The Python debugger has exited with a
BdbQuit exception.\n'
1805 'Because of how pdb handles the stack, it
is impossible\n'
1806 'for IPython to properly format this
particular exception.\n'
1807 'IPython will resume normal operation.')
1808 except:
1809 # exceptions here are VERY RARE, but they can
be triggered
1810 # asynchronously by signal handlers, for example.
1811 self.showtraceback()
1812 else:
1813 more = self.push(line)
-> 1814 if (self.SyntaxTB.last_syntax_error and
1815 self.rc.autoedit_syntax):
1816 self.edit_syntax_error()
1817
1818 # We are off again...
1819 __builtin__.__dict__['__IPYTHON__active'] -= 1
1820
1821 def excepthook(self, etype, value, tb):
1822 """One more defense for GUI apps that call sys.excepthook.
1823
1824 GUI frameworks like wxPython trap exceptions and call
1825 sys.excepthook themselves. I guess this is a feature that
1826 enables them to keep running after exceptions that would
1827 otherwise kill their mainloop. This is a bother for IPython
1828 which excepts to catch all of the program exceptions with a try:
1829 except: statement.
TypeError: expected string or Unicode object, NoneType found
***************************************************************************
History of session input:
import netsnmp
oid = netsnmp.Varbind('sysDescr')
result = netsnmp.snmpwalk(oid,Version
=2,DestHost="192.168.8.103,Community="public"")
result = netsnmp.snmpwalk(oid,Version
=2,DestHost="192.168.8.103",Community="public"")
result = netsnmp.snmpwalk(oid,Version
=2,DestHost="192.168.8.103",Community="public")
*** Last line of input (may not be in above history):
result = netsnmp.snmpwalk(oid,Version
=2,DestHost="192.168.8.103",Community="public")
--
Ville M. Vainio
http://tinyurl.com/vainio
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: IPython_crash_report.txt
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20080915/1f7ab1df/attachment.txt>
More information about the IPython-dev
mailing list