Virtual Coach not working with Jupyter Notebook


#1

Hi guys,

I’m trying to launch the virtual coach with a Jupyter Notebook. When I do cle-virtual-coach jupyter notebook, the kernel keeps dying and restarting. Here’s a sample of the log. Any help?

`cle-virtual-coach jupyter notebook
[I 13:53:07.729 NotebookApp] Writing notebook server cookie secret to /run/user/1001/jupyter/notebook_cookie_secret
[I 13:53:08.023 NotebookApp] Serving notebooks from local directory: /home/nrpdevelopment
[I 13:53:08.023 NotebookApp] 0 active kernels
[I 13:53:08.023 NotebookApp] The Jupyter Notebook is running at:
[I 13:53:08.023 NotebookApp] http://localhost:8888/?token=725d0b8888d0c97cf568600dc24bde5edd7eb60a032ac84d
[I 13:53:08.024 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 13:53:08.024 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
    http://localhost:8888/?token=725d0b8888d0c97cf568600dc24bde5edd7eb60a032ac84d&token=725d0b8888d0c97cf568600dc24bde5edd7eb60a032ac84d

[I 13:53:08.322 NotebookApp] Accepting one-time-token-authenticated connection from 127.0.0.1
Created new window in existing browser session.
[W 13:53:15.307 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20180516135307 (127.0.0.1) 11.26ms referer=http://localhost:8888/notebooks/Desktop/vc.ipynb
[I 13:53:15.401 NotebookApp] Kernel started: b1562caf-6375-4632-a6ec-28c1478bdd7d
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel_launcher.py”, line 16, in
app.launch_new_instance()
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/traitlets/config/application.py”, line 657, in launch_instance
app.initialize(argv)
File “”, line 2, in initialize
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/traitlets/config/application.py”, line 87, in catch_config_error
return method(app, *args, **kwargs)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 456, in initialize
self.init_sockets()
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 259, in init_sockets
self.init_iopub(context)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 267, in init_iopub
self.iopub_thread = IOPubThread(self.iopub_socket, pipe=True)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/iostream.py”, line 66, in init
self.io_loop = IOLoop(make_current=False)
File “/home/nrpdevelopment/Documents/NRP/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/util.py”, line 215, in new
instance.initialize(**args)
File “/home/nrpdevelopment/Documents/NRP/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/platform/epoll.py”, line 30, in initialize
super(EPollIOLoop, self).initialize(impl=select.epoll(), **kwargs)
TypeError: initialize() got an unexpected keyword argument ‘make_current’
[I 13:53:18.393 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel_launcher.py”, line 16, in
app.launch_new_instance()
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/traitlets/config/application.py”, line 657, in launch_instance
app.initialize(argv)
File “”, line 2, in initialize
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/traitlets/config/application.py”, line 87, in catch_config_error
return method(app, *args, **kwargs)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 456, in initialize
self.init_sockets()
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 259, in init_sockets
self.init_iopub(context)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 267, in init_iopub
self.iopub_thread = IOPubThread(self.iopub_socket, pipe=True)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/iostream.py”, line 66, in init
self.io_loop = IOLoop(make_current=False)
File “/home/nrpdevelopment/Documents/NRP/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/util.py”, line 215, in new
instance.initialize(**args)
File “/home/nrpdevelopment/Documents/NRP/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/platform/epoll.py”, line 30, in initialize
super(EPollIOLoop, self).initialize(impl=select.epoll(), **kwargs)
TypeError: initialize() got an unexpected keyword argument ‘make_current’
[I 13:53:21.397 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel_launcher.py”, line 16, in
app.launch_new_instance()
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/traitlets/config/application.py”, line 657, in launch_instance
app.initialize(argv)
File “”, line 2, in initialize
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/traitlets/config/application.py”, line 87, in catch_config_error
return method(app, *args, **kwargs)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 456, in initialize
self.init_sockets()
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 259, in init_sockets
self.init_iopub(context)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 267, in init_iopub
self.iopub_thread = IOPubThread(self.iopub_socket, pipe=True)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/iostream.py”, line 66, in init
self.io_loop = IOLoop(make_current=False)
File “/home/nrpdevelopment/Documents/NRP/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/util.py”, line 215, in new
instance.initialize(**args)
File “/home/nrpdevelopment/Documents/NRP/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/platform/epoll.py”, line 30, in initialize
super(EPollIOLoop, self).initialize(impl=select.epoll(), **kwargs)
TypeError: initialize() got an unexpected keyword argument ‘make_current’
[I 13:53:24.402 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel_launcher.py”, line 16, in
app.launch_new_instance()
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/traitlets/config/application.py”, line 657, in launch_instance
app.initialize(argv)
File “”, line 2, in initialize
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/traitlets/config/application.py”, line 87, in catch_config_error
return method(app, *args, **kwargs)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 456, in initialize
self.init_sockets()
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 259, in init_sockets
self.init_iopub(context)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 267, in init_iopub
self.iopub_thread = IOPubThread(self.iopub_socket, pipe=True)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/iostream.py”, line 66, in init
self.io_loop = IOLoop(make_current=False)
File “/home/nrpdevelopment/Documents/NRP/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/util.py”, line 215, in new
instance.initialize(**args)
File “/home/nrpdevelopment/Documents/NRP/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/platform/epoll.py”, line 30, in initialize
super(EPollIOLoop, self).initialize(impl=select.epoll(), **kwargs)
TypeError: initialize() got an unexpected keyword argument ‘make_current’
[W 13:53:25.434 NotebookApp] Timeout waiting for kernel_info reply from b1562caf-6375-4632-a6ec-28c1478bdd7d
[I 13:53:27.407 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
WARNING:root:kernel b1562caf-6375-4632-a6ec-28c1478bdd7d restarted
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel_launcher.py”, line 16, in
app.launch_new_instance()
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/traitlets/config/application.py”, line 657, in launch_instance
app.initialize(argv)
File “”, line 2, in initialize
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/traitlets/config/application.py”, line 87, in catch_config_error
return method(app, *args, **kwargs)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 456, in initialize
self.init_sockets()
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 259, in init_sockets
self.init_iopub(context)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/kernelapp.py”, line 267, in init_iopub
self.iopub_thread = IOPubThread(self.iopub_socket, pipe=True)
File “/home/nrpdevelopment/.local/lib/python2.7/site-packages/ipykernel/iostream.py”, line 66, in init
self.io_loop = IOLoop(make_current=False)
File “/home/nrpdevelopment/Documents/NRP/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/util.py”, line 215, in new
instance.initialize(**args)
File “/home/nrpdevelopment/Documents/NRP/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/platform/epoll.py”, line 30, in initialize
super(EPollIOLoop, self).initialize(impl=select.epoll(), **kwargs)
TypeError: initialize() got an unexpected keyword argument ‘make_current’
[W 13:53:30.414 NotebookApp] KernelRestarter: restart failed
[W 13:53:30.415 NotebookApp] Kernel b1562caf-6375-4632-a6ec-28c1478bdd7d died, removing from map.
ERROR:root:kernel b1562caf-6375-4632-a6ec-28c1478bdd7d restarted failed!
[W 13:53:30.426 NotebookApp] 410 DELETE /api/sessions/9303e27a-2164-4be2-a754-55873be68dca (127.0.0.1): Kernel deleted before session
[W 13:53:30.426 NotebookApp] Kernel deleted before session
[W 13:53:30.427 NotebookApp] 410 DELETE /api/sessions/9303e27a-2164-4be2-a754-55873be68dca (127.0.0.1) 1.34ms referer=http://localhost:8888/notebooks/Desktop/vc.ipynb
[I 13:55:15.418 NotebookApp] Saving file at /Desktop/vc.ipynb`


#2

This is probably due to a ipykernel version mismatch. Check out my answer on this thread https://github.com/jupyter/help/issues/272#issuecomment-363616664


#3

Oh, thanks a lot! I’ll try that!