ipipe fails on OSX while trying to access SIGWINCH
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
System:
OSX 10.6.3
Python 2.5.4
IPython 0.10
Steps to reproduce:
> from ipipe import *
> ils | ibrowse
Error:
<195> -------
AttributeError Traceback (most recent call last)
/Users/
/sw/lib/
550
551 # and now call a possibly user-defined print mechanism
--> 552 manipulated_val = self.display(arg)
553
554 # user display hooks can change the variable to be stored in
/sw/lib/
574 """
575 try:
--> 576 return IPython.
577 except TryNext:
578 return self.shell.
/sw/lib/
73 f = _gbt(t, _sentinel)
74 if f is not _sentinel:
---> 75 return f(*args, **kw)
76 else:
77 return func(*args, **kw)
/sw/lib/
2306
2307 def display_
-> 2308 return display_
2309 generics.
2310
/sw/lib/
2302 if generics is not None:
2303 def display_
-> 2304 return obj.display()
2305 generics.
2306
/sw/lib/
1759 def display(self):
1760 if hasattr(curses, "resize_term"):
-> 1761 oldhandler = signal.
1762 try:
1763 return curses.
AttributeError: 'module' object has no attribute 'SIGWINCH'
Comment: idump works nicely
I propose to change the line in ibrowse. display( self)
if hasattr(curses, "resize_term"):
to
if hasattr(curses, "resize_term") and getattr(signal, 'SIGWINCH', None):