Skip to content

faulthandler.enable() fails with IOError #91

@fperez

Description

@fperez

Reported by @poldrack on the notebook, but ultimately the issue is really a kernel problem, I can reproduce it from a plain console by connecting to an open kernel using ipykernel master:

denali[newjob]> jupyter console --existing kernel-95921.json
Jupyter Console 4.1.0.dev

[ZMQTerminalIPythonApp] Loading IPython extension: storemagic

In [1]: import faulthandler

In [2]: faulthandler.enable()
---------------------------------------------------------------------------
UnsupportedOperation                      Traceback (most recent call last)
<ipython-input-2-140d8a320d56> in <module>()
----> 1 faulthandler.enable()

/Users/fperez/dev/ipython/ipykernel/ipykernel/iostream.py in fileno(self)
    203 
    204     def fileno(self):
--> 205         raise UnsupportedOperation("IOStream has no fileno.")
    206 
    207     def write(self, string):

UnsupportedOperation: IOStream has no fileno.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions