Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exit() kills the kernel #2

Open
pya opened this issue Jan 4, 2015 · 0 comments
Open

exit() kills the kernel #2

pya opened this issue Jan 4, 2015 · 0 comments

Comments

@pya
Copy link
Owner

pya commented Jan 4, 2015

Platform: Mac OSX 10.9.5
Versions: Python 3.4.2, IPython 3.0.0-dev, mochi-kernel 0.1.0, mochi 0.1.4

Typing: exit() kills ipython console --kernel mochi and ipython atconsole --kernel mochi and asks for a restart. This is the traceback for console. The one for qtsonsole is the same plus an automatic kernel restart.

In [1]: exit()
ERROR:tornado.general:Uncaught exception, closing connection.
Traceback (most recent call last):
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/zmq/eventloop/zmqstream.py", line 407, in _run_callback
    callback(*args, **kwargs)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/tornado/stack_context.py", line 275, in null_wrapper
    return fn(*args, **kwargs)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 252, in dispatcher
    return self.dispatch_shell(stream, msg)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 213, in dispatch_shell
    handler(stream, idents, msg)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 360, in execute_request
    user_expressions, allow_stdin)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochikernel/mochikernel.py", line 57, in do_execute
    response = mochi.eval_code_block(code)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochi/mochi.py", line 3064, in eval_code_block
    eval_tokens(lexer)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochi/mochi.py", line 3055, in eval_tokens
    exec(code, global_env)
  File "<string>", line 1, in <module>
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/_sitebuiltins.py", line 26, in __call__
    raise SystemExit(code)
SystemExit: None
ERROR:tornado.general:Uncaught exception, closing connection.
Traceback (most recent call last):
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/zmq/eventloop/zmqstream.py", line 433, in _handle_events
    self._handle_recv()
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/zmq/eventloop/zmqstream.py", line 465, in _handle_recv
    self._run_callback(callback, msg)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/zmq/eventloop/zmqstream.py", line 407, in _run_callback
    callback(*args, **kwargs)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/tornado/stack_context.py", line 275, in null_wrapper
    return fn(*args, **kwargs)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 252, in dispatcher
    return self.dispatch_shell(stream, msg)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 213, in dispatch_shell
    handler(stream, idents, msg)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/IPython/kernel/zmq/kernelbase.py", line 360, in execute_request
    user_expressions, allow_stdin)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochikernel/mochikernel.py", line 57, in do_execute
    response = mochi.eval_code_block(code)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochi/mochi.py", line 3064, in eval_code_block
    eval_tokens(lexer)
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/site-packages/mochi/mochi.py", line 3055, in eval_tokens
    exec(code, global_env)
  File "<string>", line 1, in <module>
  File "/Users/mike/anaconda/envs/mochi/lib/python3.4/_sitebuiltins.py", line 26, in __call__
    raise SystemExit(code)
SystemExit: None
kernel died, restart ([y]/n)? 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant