Public bug reported:
Binary package hint: ipython
Package Name: ipython: /usr/bin/ipython2.5
Ubuntu Version: Description: Ubuntu 9.04, Release: 9.04
Package Version: ipython:
Installed: 0.9.1-1
Candidate: 0.9.1-1
Version table:
*** 0.9.1-1 0
500 http://ubuntu.media.mit.edu jaunty/universe Packages
100 /var/lib/dpkg/status
When you start iPython a python version specific way (ipython2.5), you get a
stack trace if you try to use some of the built in iPython utilities,
documentation and functions.
What happens:
If you type %quickref, %magic, or ?, you get a python stack dump that
looks something like this:
++++++++++++++++++++++++++++
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/var/lib/python-support/python2.5/IPython/iplib.pyc in
multiline_prefilter(self, line, continue_prompt)
2272 out = []
2273 for l in line.rstrip('\n').split('\n'):
-> 2274 out.append(self._prefilter(l, continue_prompt))
2275 return '\n'.join(out)
2276
/var/lib/python-support/python2.5/IPython/iplib.pyc in _prefilter(self, line,
continue_prompt)
2254 #print 'pre <%s> iFun <%s> rest <%s>' % (pre,iFun,theRest) #
dbg
2255
-> 2256 return prefilter.prefilter(line_info, self)
2257
2258
/var/lib/python-support/python2.5/IPython/prefilter.pyc in prefilter(line_info,
ip)
149 handler = check(line_info, ip)
150 if handler:
--> 151 return handler(line_info)
152
153 return ip.handle_normal(line_info)
/var/lib/python-support/python2.5/IPython/iplib.pyc in handle_help(self,
line_info)
2445 self.magic_pinfo(line)
2446 else:
-> 2447 page(self.usage,screen_lines=self.rc.screen_length)
2448 return '' # Empty string is needed here!
2449 except:
/var/lib/python-support/python2.5/IPython/genutils.pyc in page(strng, start,
screen_lines, pager_cmd)
1663 # the checks.
1664 term_flags = termios.tcgetattr(sys.stdout)
-> 1665 scr = curses.initscr()
1666 screen_lines_real,screen_cols = scr.getmaxyx()
1667 curses.endwin()
/usr/lib/python2.5/curses/__init__.pyc in initscr()
28 # we call setupterm() here because it raises an error
29 # instead of calling exit() in error cases.
---> 30 setupterm(term=_os.environ.get("TERM", "unknown"),
31 fd=_sys.__stdout__.fileno())
32 stdscr = _curses.initscr()
NameError: global name '_os' is not defined
++++++++++++++++++++++++++++
What should happen:
Using the SAME iPython package to launch the default iPython environment
(2.6) by typing either ipython or ipython2.6, does NOT result in the
same error when trying to launch those internal iPython commands.
** Affects: ipython (Ubuntu)
Importance: Undecided
Status: New
** Tags: 9.04 ipython ipython2.5 jauntyjackalope python
--
iPython2.5 on Ubuntu 9.04 Jaunty Jackalope gives stack trace when launching
%quickref or %magic or ? commands
https://bugs.launchpad.net/bugs/408460
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs