Last active
December 7, 2015 19:46
-
-
Save lmmx/072734e39d4d952ee389 to your computer and use it in GitHub Desktop.
Error that causes the "xonsh" kernel to crash (whereas the "xonsh_kernel" kernel times out, doesn't give output, doesn't crash)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[I 19:36:00.116 NotebookApp] Serving notebooks from local directory: /home/louis/Path/To/Notebooks | |
[I 19:36:00.117 NotebookApp] 0 active kernels | |
[I 19:36:00.117 NotebookApp] The IPython Notebook is running at: http://localhost:8888/ | |
[I 19:36:00.117 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). | |
[I 19:36:09.537 NotebookApp] Kernel started: 7e43c496-d209-4473-8bab-9f6d323b7ab0 | |
[I 19:36:17.624 NotebookApp] Kernel shutdown: 7e43c496-d209-4473-8bab-9f6d323b7ab0 | |
[I 19:36:17.658 NotebookApp] Kernel started: 25e9b6b8-af99-4279-b7d3-bd99cfe0cb4b | |
[W 19:36:19.636 NotebookApp] Timeout waiting for kernel_info reply from 7e43c496-d209-4473-8bab-9f6d323b7ab0 | |
[E 19:36:19.638 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 7e43c496-d209-4473-8bab-9f6d323b7ab0) | |
NOW USING PYTHON 3 KERNEL | |
[W 19:37:08.692 NotebookApp] 404 GET /static/components/backbone/backbone-min.map (127.0.0.1) 34.96ms referer=http://localhost:8888/notebooks/ch1/Chapter%201.ipynb | |
NOW USING 'XONSH' KERNEL | |
[I 19:37:29.329 NotebookApp] Kernel shutdown: 25e9b6b8-af99-4279-b7d3-bd99cfe0cb4b | |
[I 19:37:29.384 NotebookApp] Kernel started: 99d9a3b5-85f7-4bee-9680-02429e007a1d | |
[W 19:37:39.403 NotebookApp] Timeout waiting for kernel_info reply from 99d9a3b5-85f7-4bee-9680-02429e007a1d | |
[I 19:38:09.511 NotebookApp] Saving file at /ch1/Chapter 1.ipynb | |
ATTEMPTED CALCULATION USING 'XONSH' KERNEL | |
NOW USING 'XONSH_KERNEL' KERNEL | |
[I 19:38:37.940 NotebookApp] Kernel shutdown: 99d9a3b5-85f7-4bee-9680-02429e007a1d | |
[I 19:38:37.988 NotebookApp] Kernel started: f88e7339-c0b9-45a0-b0aa-c34b112bcac4 | |
/home/louis/anaconda3/lib/python3.5/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead. | |
"You should import from ipykernel or jupyter_client instead.", ShimWarning) | |
[I 19:38:43.988 NotebookApp] KernelRestarter: restarting kernel (1/5) | |
[W 19:38:48.019 NotebookApp] Timeout waiting for kernel_info reply from f88e7339-c0b9-45a0-b0aa-c34b112bcac4 | |
/home/louis/anaconda3/lib/python3.5/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead. | |
"You should import from ipykernel or jupyter_client instead.", ShimWarning) | |
[I 19:38:53.008 NotebookApp] KernelRestarter: restarting kernel (1/5) | |
WARNING:root:kernel f88e7339-c0b9-45a0-b0aa-c34b112bcac4 restarted | |
/home/louis/anaconda3/lib/python3.5/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead. | |
"You should import from ipykernel or jupyter_client instead.", ShimWarning) | |
[I 19:38:59.037 NotebookApp] KernelRestarter: restarting kernel (1/5) | |
WARNING:root:kernel f88e7339-c0b9-45a0-b0aa-c34b112bcac4 restarted | |
ATTEMPTED TO START 'XONSH_KERNEL' KERNEL AND IT DIED | |
/home/louis/anaconda3/lib/python3.5/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead. | |
"You should import from ipykernel or jupyter_client instead.", ShimWarning) | |
[I 19:39:08.056 NotebookApp] KernelRestarter: restarting kernel (1/5) | |
WARNING:root:kernel f88e7339-c0b9-45a0-b0aa-c34b112bcac4 restarted | |
/home/louis/anaconda3/lib/python3.5/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead. | |
"You should import from ipykernel or jupyter_client instead.", ShimWarning) | |
[I 19:39:14.083 NotebookApp] KernelRestarter: restarting kernel (1/5) | |
WARNING:root:kernel f88e7339-c0b9-45a0-b0aa-c34b112bcac4 restarted | |
/home/louis/anaconda3/lib/python3.5/site-packages/IPython/kernel/__init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated. You should import from ipykernel or jupyter_client instead. | |
"You should import from ipykernel or jupyter_client instead.", ShimWarning) | |
[I 19:39:23.100 NotebookApp] KernelRestarter: restarting kernel (1/5) | |
WARNING:root:kernel f88e7339-c0b9-45a0-b0aa-c34b112bcac4 restarted | |
[I 19:39:23.480 NotebookApp] interrupted | |
[C 19:39:25.416 NotebookApp] received signal 2, stopping | |
[I 19:39:25.417 NotebookApp] Shutting down kernels | |
[I 19:39:26.440 NotebookApp] Kernel shutdown: f88e7339-c0b9-45a0-b0aa-c34b112bcac4 | |
KILLED NOTEBOOK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Created new window in existing browser session. | |
NOW USING 'XONSH' KERNEL | |
ATTEMPTED CALCULATION USING 'XONSH' KERNEL | |
NOW USING 'XONSH_KERNEL' KERNEL | |
--------------------------------------------------------------------------- | |
TypeError Traceback (most recent call last) | |
/home/louis/anaconda3/lib/python3.5/runpy.py in _run_module_as_main(mod_name='xonsh_kernel', alter_argv=1) | |
168 sys.argv[0] = mod_spec.origin | |
169 return _run_code(code, main_globals, None, | |
--> 170 "__main__", mod_spec) | |
mod_spec = ModuleSpec(name='xonsh_kernel', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fc97d07d780>, origin='/home/louis/anaconda3/lib/python3.5/site-packages/xonsh_kernel.py') | |
171 | |
172 def run_module(mod_name, init_globals=None, | |
/home/louis/anaconda3/lib/python3.5/runpy.py in _run_code(code=<code object <module> at 0x7fc97b3eedb0, file "/...python3.5/site-packages/xonsh_kernel.py", line 1>, run_globals={'IPKernelApp': <class 'ipykernel.kernelapp.IPKernelApp'>, 'MetaKernel': <class 'metakernel._metakernel.MetaKernel'>, 'ProcessMetaKernel': <class 'metakernel.process_metakernel.ProcessMetaKernel'>, 'REPLWrapper': <class 'metakernel.replwrap.REPLWrapper'>, 'XonshKernel': <class '__main__.XonshKernel'>, '__builtins__': <module 'builtins' (built-in)>, '__cached__': '/home/louis/anaconda3/lib/python3.5/site-packages/__pycache__/xonsh_kernel.cpython-35.pyc', '__doc__': None, '__file__': '/home/louis/anaconda3/lib/python3.5/site-packages/xonsh_kernel.py', '__loader__': <_frozen_importlib_external.SourceFileLoader object>, ...}, init_globals=None, mod_name='__main__', mod_spec=ModuleSpec(name='xonsh_kernel', loader=<_frozen_...da3/lib/python3.5/site-packages/xonsh_kernel.py'), pkg_name='', script_name=None) | |
83 __package__ = pkg_name, | |
84 __spec__ = mod_spec) | |
---> 85 exec(code, run_globals) | |
global exec = undefined | |
code = <code object <module> at 0x7fc97b3eedb0, file "/home/louis/anaconda3/lib/python3.5/site-packages/xonsh_kernel.py", line 1> | |
run_globals = {'ProcessMetaKernel': <class 'metakernel.process_metakernel.ProcessMetaKernel'>, 'XonshKernel': <class '__main__.XonshKernel'>, 'MetaKernel': <class 'metakernel._metakernel.MetaKernel'>, 'IPKernelApp': <class 'ipykernel.kernelapp.IPKernelApp'>, 'u': <function u at 0x7fc973a5c7b8>, '__builtins__': <module 'builtins' (built-in)>, 'os': <module 'os' from '/home/louis/anaconda3/lib/python3.5/os.py'>, '__name__': '__main__', '__version__': '0.2.0', '__spec__': ModuleSpec(name='xonsh_kernel', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fc97d07d780>, origin='/home/louis/anaconda3/lib/python3.5/site-packages/xonsh_kernel.py'), 'builtins': <module 'builtins' (built-in)>, '__package__': '', '__doc__': None, '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x7fc97d07d780>, 're': <module 're' from '/home/louis/anaconda3/lib/python3.5/re.py'>, 'REPLWrapper': <class 'metakernel.replwrap.REPLWrapper'>, 'completer': <module 'xonsh.completer' from '/home/louis/.local/lib/python3.5/site-packages/xonsh/completer.py'>, 'print_function': _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536), '__file__': '/home/louis/anaconda3/lib/python3.5/site-packages/xonsh_kernel.py', '__cached__': '/home/louis/anaconda3/lib/python3.5/site-packages/__pycache__/xonsh_kernel.cpython-35.pyc'} | |
86 return run_globals | |
87 | |
/home/louis/anaconda3/lib/python3.5/site-packages/xonsh_kernel.py in <module>() | |
74 if __name__ == '__main__': | |
75 from IPython.kernel.zmq.kernelapp import IPKernelApp | |
---> 76 IPKernelApp.launch_instance(kernel_class=XonshKernel) | |
global IPKernelApp.launch_instance = <bound method Application.launch_instance of <class 'ipykernel.kernelapp.IPKernelApp'>> | |
global kernel_class = undefined | |
global XonshKernel = <class '__main__.XonshKernel'> | |
/home/louis/anaconda3/lib/python3.5/site-packages/traitlets/config/application.py in launch_instance(cls=<class 'ipykernel.kernelapp.IPKernelApp'>, argv=None, **kwargs={'kernel_class': <class '__main__.XonshKernel'>}) | |
589 """ | |
590 app = cls.instance(**kwargs) | |
--> 591 app.initialize(argv) | |
app.initialize = <bound method IPKernelApp.initialize of <ipykernel.kernelapp.IPKernelApp object at 0x7fc973a683c8>> | |
argv = None | |
592 app.start() | |
593 | |
/home/louis/anaconda3/lib/python3.5/site-packages/ipykernel/kernelapp.py in initialize(self=<ipykernel.kernelapp.IPKernelApp object>, argv=None) | |
/home/louis/anaconda3/lib/python3.5/site-packages/traitlets/config/application.py in catch_config_error(method=<function IPKernelApp.initialize>, app=<ipykernel.kernelapp.IPKernelApp object>, *args=(None,), **kwargs={}) | |
73 """ | |
74 try: | |
---> 75 return method(app, *args, **kwargs) | |
method = <function IPKernelApp.initialize at 0x7fc97394d598> | |
app = <ipykernel.kernelapp.IPKernelApp object at 0x7fc973a683c8> | |
args = (None,) | |
kwargs = {} | |
76 except (TraitError, ArgumentError) as e: | |
77 app.print_help() | |
/home/louis/anaconda3/lib/python3.5/site-packages/ipykernel/kernelapp.py in initialize(self=<ipykernel.kernelapp.IPKernelApp object>, argv=None) | |
380 self.init_io() | |
381 self.init_signal() | |
--> 382 self.init_kernel() | |
self.init_kernel = <bound method IPKernelApp.init_kernel of <ipykernel.kernelapp.IPKernelApp object at 0x7fc973a683c8>> | |
383 # shell init steps | |
384 self.init_path() | |
/home/louis/anaconda3/lib/python3.5/site-packages/ipykernel/kernelapp.py in init_kernel(self=<ipykernel.kernelapp.IPKernelApp object>) | |
319 log=self.log, | |
320 profile_dir=self.profile_dir, | |
--> 321 user_ns=self.user_ns, | |
global user_ns = undefined | |
self.user_ns = None | |
322 ) | |
323 kernel.record_ports(self.ports) | |
/home/louis/anaconda3/lib/python3.5/site-packages/traitlets/config/configurable.py in instance(cls=<class '__main__.XonshKernel'>, *args=(), **kwargs={'iopub_socket': <zmq.sugar.socket.Socket object>, 'log': <logging.Logger object>, 'parent': <ipykernel.kernelapp.IPKernelApp object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'session': <jupyter_client.session.Session object>, 'shell_streams': [<zmq.eventloop.zmqstream.ZMQStream object>, <zmq.eventloop.zmqstream.ZMQStream object>], 'stdin_socket': <zmq.sugar.socket.Socket object>, 'user_ns': None}) | |
378 # Create and save the instance | |
379 if cls._instance is None: | |
--> 380 inst = cls(*args, **kwargs) | |
inst = undefined | |
cls = <class '__main__.XonshKernel'> | |
args = () | |
kwargs = {'session': <jupyter_client.session.Session object at 0x7fc973949a90>, 'shell_streams': [<zmq.eventloop.zmqstream.ZMQStream object at 0x7fc97395cd68>, <zmq.eventloop.zmqstream.ZMQStream object at 0x7fc97395cf98>], 'stdin_socket': <zmq.sugar.socket.Socket object at 0x7fc973932a68>, 'profile_dir': <IPython.core.profiledir.ProfileDir object at 0x7fc973949fd0>, 'iopub_socket': <zmq.sugar.socket.Socket object at 0x7fc973932ac8>, 'parent': <ipykernel.kernelapp.IPKernelApp object at 0x7fc973a683c8>, 'user_ns': None, 'log': <logging.Logger object at 0x7fc973a689b0>} | |
381 # Now make sure that the instance will also be returned by | |
382 # parent classes' _instance attribute. | |
/home/louis/anaconda3/lib/python3.5/site-packages/metakernel/process_metakernel.py in __init__(self=<__main__.XonshKernel object>, **kwargs={'iopub_socket': <zmq.sugar.socket.Socket object>, 'log': <logging.Logger object>, 'parent': <ipykernel.kernelapp.IPKernelApp object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'session': <jupyter_client.session.Session object>, 'shell_streams': [<zmq.eventloop.zmqstream.ZMQStream object>, <zmq.eventloop.zmqstream.ZMQStream object>], 'stdin_socket': <zmq.sugar.socket.Socket object>, 'user_ns': None}) | |
40 self.wrapper = None | |
41 self.repr = str | |
---> 42 self._start() | |
self._start = <bound method ProcessMetaKernel._start of <__main__.XonshKernel object at 0x7fc97395cfd0>> | |
43 | |
44 def _start(self): | |
/home/louis/anaconda3/lib/python3.5/site-packages/metakernel/process_metakernel.py in _start(self=<__main__.XonshKernel object>) | |
45 if not self.wrapper is None: | |
46 self.wrapper.child.terminate() | |
---> 47 self.wrapper = self.makeWrapper() | |
self.wrapper = None | |
self.makeWrapper = <bound method XonshKernel.makeWrapper of <__main__.XonshKernel object at 0x7fc97395cfd0>> | |
48 | |
49 def do_execute_direct(self, code): | |
/home/louis/anaconda3/lib/python3.5/site-packages/xonsh_kernel.py in makeWrapper(self=<__main__.XonshKernel object>) | |
43 extra_init_cmd = "$PAGER='cat'" | |
44 os.environ['PAGER'] = 'cat' | |
---> 45 self.completer = completer.Completer() | |
self.completer = undefined | |
global completer.Completer = <class 'xonsh.completer.Completer'> | |
46 return REPLWrapper('xonsh', prompt_regex, prompt_change_cmd, | |
47 prompt_emit_cmd=prompt_emit_cmd, | |
/home/louis/.local/lib/python3.5/site-packages/xonsh/completer.py in __init__(self=<xonsh.completer.Completer object>) | |
89 try: | |
90 # FIXME this could be threaded for faster startup times | |
---> 91 self._load_bash_complete_funcs() | |
self._load_bash_complete_funcs = <bound method Completer._load_bash_complete_funcs of <xonsh.completer.Completer object at 0x7fc978a2d780>> | |
92 # or we could make this lazy | |
93 self._load_bash_complete_files() | |
/home/louis/.local/lib/python3.5/site-packages/xonsh/completer.py in _load_bash_complete_funcs(self=<xonsh.completer.Completer object>) | |
323 def _load_bash_complete_funcs(self): | |
324 self.bash_complete_funcs = bcf = {} | |
--> 325 inp = self._source_completions() | |
inp = undefined | |
self._source_completions = <bound method Completer._source_completions of <xonsh.completer.Completer object at 0x7fc978a2d780>> | |
326 if len(inp) == 0: | |
327 return | |
/home/louis/.local/lib/python3.5/site-packages/xonsh/completer.py in _source_completions(self=<xonsh.completer.Completer object>) | |
313 def _source_completions(self): | |
314 srcs = [] | |
--> 315 for f in builtins.__xonsh_env__.get('BASH_COMPLETIONS'): | |
f = undefined | |
global builtins.__xonsh_env__.get = <built-in method get of dict object at 0x7fc97b3fbc88> | |
316 if os.path.isfile(f): | |
317 # We need to "Unixify" Windows paths for Bash to understand | |
TypeError: 'NoneType' object is not iterable | |
--------------------------------------------------------------------------- | |
Serving notebooks from local directory: /home/louis/Path/To/Notebook | |
1 active kernels | |
The IPython Notebook is running at: http://localhost:8888/ | |
Shutdown this notebook server (y/[n])? | |
KILLED NOTEBOOK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment