You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using master f0437d2 I get "RuntimeError: can't re-enter readline" when completing on properties of some objects. I have gotten it on proxy objects in Pyro (python remote objects) and some other objects I don't recall right now. This problem does not appear on 0.10.2.
I get a crashreport ( https://gist.github.com/1051868 ) but ipython does not go down completely. There are two files in the gist, the first one is the crash report and the second one is the output that I got at the terminal that was not part of the crash report.
/Jörgen
The text was updated successfully, but these errors were encountered:
By catching both ValueError and AttributeError in utils/dir2 as shown below, the error disappears:
if hasattr(obj, 'trait_names'):
try:
words.extend(obj.trait_names())
may_have_dupes = True
except (TypeError, AttributeError):
# This will happen if `obj` is a class and not an instance.
pass
# Support for PyCrust-style _getAttributeNames magic method.
if hasattr(obj, '_getAttributeNames'):
try:
words.extend(obj._getAttributeNames())
may_have_dupes = True
except (TypeError, AttributeError):
# `obj` is a class and not an instance. Ignore
# this error.
pass
Some remote object libraries (e.g. Pyro) will lie to hasattr, not raising AttributeError until the attr is actually requested.
This prevents these AttributeErrors from crashing IPython.
closesipythongh-543
Signed-off-by: MinRK <benjaminrk@gmail.com>
Using master f0437d2 I get "RuntimeError: can't re-enter readline" when completing on properties of some objects. I have gotten it on proxy objects in Pyro (python remote objects) and some other objects I don't recall right now. This problem does not appear on 0.10.2.
I get a crashreport ( https://gist.github.com/1051868 ) but ipython does not go down completely. There are two files in the gist, the first one is the crash report and the second one is the output that I got at the terminal that was not part of the crash report.
/Jörgen
The text was updated successfully, but these errors were encountered: