n-riesco / ijavascript

IJavascript is a javascript kernel for the Jupyter notebook
Other
2.19k stars 185 forks source link

Error Starting Kernel (multiple kernelspecs of IJavascript) #206

Closed kxshu closed 4 years ago

kxshu commented 4 years ago

image

Traceback (most recent call last):
  File "/opt/conda/lib/python3.7/site-packages/tornado/web.py", line 1699, in _execute
    result = await result
  File "/opt/conda/lib/python3.7/site-packages/tornado/gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/opt/conda/lib/python3.7/site-packages/notebook/services/sessions/handlers.py", line 72, in post
    type=mtype))
  File "/opt/conda/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
    value = future.result()
  File "/opt/conda/lib/python3.7/site-packages/tornado/gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/opt/conda/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 88, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
  File "/opt/conda/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
    value = future.result()
  File "/opt/conda/lib/python3.7/site-packages/tornado/gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/opt/conda/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 101, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "/opt/conda/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
    value = future.result()
  File "/opt/conda/lib/python3.7/site-packages/tornado/gen.py", line 209, in wrapper
    yielded = next(result)
  File "/opt/conda/lib/python3.7/site-packages/notebook/services/kernels/kernelmanager.py", line 168, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "/opt/conda/lib/python3.7/site-packages/jupyter_client/multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "/opt/conda/lib/python3.7/site-packages/jupyter_client/manager.py", line 259, in start_kernel
    **kw)
  File "/opt/conda/lib/python3.7/site-packages/jupyter_client/manager.py", line 204, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "/opt/conda/lib/python3.7/site-packages/jupyter_client/launcher.py", line 138, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "/opt/conda/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/opt/conda/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ijskernel': 'ijskernel'

I am running this kernel in jupyter-all-spark-notebook of docker. And when i was running this kernel in launcher, I just got those messages. so how can i fix this?

n-riesco commented 4 years ago

The error message says jupyter-all-spark-notebook is unable to find ijskernel in its PATH. To work around this issue, you could install IJavascript kernelspec using full paths, like this:

ijsinstall --spec-path=full
JohnOmernik commented 4 years ago

So I've done this but I am still getting the error. Any thing else to try?

n-riesco commented 4 years ago

If ijsinstall --spec-path=full worked, the error message should've changed.

What do you get when you run jupyter kernelspec list --json?

JohnOmernik commented 4 years ago

For me, there was a ~/.share.... Version of the kernel.json that it was reading first. When I removed that, it worked. Thanks

On Fri, Jan 31, 2020, 2:51 AM Nicolas Riesco notifications@github.com wrote:

If ijsinstall --spec-path=full worked, the error message should've changed.

What do you get when you run jupyter kernelspec list --json?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/n-riesco/ijavascript/issues/206?email_source=notifications&email_token=AAOXGUNV5EDB4NDGTBRGTL3RAPRBZA5CNFSM4J2Z7AY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKN6Q6Y#issuecomment-580642939, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOXGUMRY7CLFZJFWDIGPHDRAPRBZANCNFSM4J2Z7AYQ .