Jupyter command not recognized on Google Cloud running Kubernetes Engine

5/5/2020

Running Jupyter Hub on a Kubernetes cluster on Google Cloud. The hub is running just fine so far but I would like to add NBGrader as in the installation docs here.

I am receiving the error found in this thread. When I enter ~/.local/bin/jupyter-notebook in terminal I get the following:

Traceback (most recent call last):
  File "/home/<myusername>/.local/bin/jupyter-notebook", line 8, in <module>
    sys.exit(main())
  File "/home/<myusername>/.local/lib/python2.7/site-packages/jupyter_core/application.py", line 270, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line 663, in launch_instance
    app.initialize(argv)
  File "<decorator-gen-7>", line 2, in initialize
  File "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/<myusername>/.local/lib/python2.7/site-packages/notebook/notebookapp.py", line 1630, in initialize
    self.init_webapp()
  File "/home/<myusername>/.local/lib/python2.7/site-packages/notebook/notebookapp.py", line 1407, in init_webapp
    self.http_server.listen(port, self.ip)
  File "/home/<myusername>/.local/lib/python2.7/site-packages/tornado/tcpserver.py", line 143, in listen
    sockets = bind_sockets(port, address=address)
  File "/home/<myusername>/.local/lib/python2.7/site-packages/tornado/netutil.py", line 168, in bind_sockets
    sock.bind(sockaddr)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address

Any suggestions are appreciated.

-- SteveC
jupyter-notebook
kubernetes
python

0 Answers