question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I performed the manual installation as given in the “README.md”. But I am getting Kernel error during kernel start. Failed to start the kernel Unknown server error

Traceback (most recent call last):
  File "C:\Program Files\Anaconda3\lib\site-packages\notebook\base\handlers.py", line 457, in wrapper
    result = yield gen.maybe_future(method(self, *args, **kwargs))
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\gen.py", line 1015, in run
    value = future.result()
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\concurrent.py", line 237, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\gen.py", line 1021, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Anaconda3\lib\site-packages\notebook\services\sessions\handlers.py", line 62, in post
    kernel_id=kernel_id))
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\gen.py", line 1015, in run
    value = future.result()
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\concurrent.py", line 237, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\gen.py", line 1021, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 79, in create_session
    kernel_name)
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\gen.py", line 1015, in run
    value = future.result()
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\concurrent.py", line 237, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\gen.py", line 1021, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 92, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\gen.py", line 1015, in run
    value = future.result()
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\concurrent.py", line 237, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
  File "C:\Program Files\Anaconda3\lib\site-packages\tornado\gen.py", line 285, in wrapper
    yielded = next(result)
  File "C:\Program Files\Anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 87, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "C:\Program Files\Anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "C:\Program Files\Anaconda3\lib\site-packages\jupyter_client\manager.py", line 243, in start_kernel
    **kw)
  File "C:\Program Files\Anaconda3\lib\site-packages\jupyter_client\manager.py", line 189, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "C:\Program Files\Anaconda3\lib\site-packages\jupyter_client\launcher.py", line 123, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "C:\Program Files\Anaconda3\lib\subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "C:\Program Files\Anaconda3\lib\subprocess.py", line 1224, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

OS - Win10 Python distro - Anaconda3 with Python 3.5.2

EDIT: I also tried it in my Python 2.7.12 environment in Anaconda. The same problem there too.

Failed to start the kernel Unknown server error

Traceback (most recent call last):
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\notebook\base\handlers.py", line 457, in wrapper
    result = yield gen.maybe_future(method(self, *args, **kwargs))
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\gen.py", line 1015, in run
    value = future.result()
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\concurrent.py", line 237, in result
    raise_exc_info(self._exc_info)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\gen.py", line 1021, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\notebook\services\sessions\handlers.py", line 62, in post
    kernel_id=kernel_id))
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\gen.py", line 1015, in run
    value = future.result()
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\concurrent.py", line 237, in result
    raise_exc_info(self._exc_info)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\gen.py", line 1021, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 79, in create_session
    kernel_name)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\gen.py", line 1015, in run
    value = future.result()
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\concurrent.py", line 237, in result
    raise_exc_info(self._exc_info)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\gen.py", line 1021, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 92, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\gen.py", line 1015, in run
    value = future.result()
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\concurrent.py", line 237, in result
    raise_exc_info(self._exc_info)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\tornado\gen.py", line 285, in wrapper
    yielded = next(result)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 87, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\jupyter_client\manager.py", line 243, in start_kernel
    **kw)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\jupyter_client\manager.py", line 189, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  File "C:\Program Files\Anaconda3\envs\python27\lib\site-packages\jupyter_client\launcher.py", line 123, in launch_kernel
    proc = Popen(cmd, **kwargs)
  File "C:\Program Files\Anaconda3\envs\python27\lib\subprocess.py", line 711, in __init__
    errread, errwrite)
  File "C:\Program Files\Anaconda3\envs\python27\lib\subprocess.py", line 959, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified```

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
kushalchauhan98commented, Apr 2, 2017

I have been using Linux for a while now; so I can’t test this solution and tell you that it’ll definitely work, but I just think it might. In the python script - “C:\Program Files\Anaconda3\envs\python27\lib\site-packages\jupyter_client\launcher.py”, change line 123 (where the error arises from) from this: proc = Popen(cmd, **kwargs) To this: proc = Popen(cmd, **kwargs, shell=True)

I have worked with the subprocess module for sometime, and in Windows, I had to invariably pass the additional ‘shell=True’ argument in every Popen() call (even where it isn’t supposed to be there) in order to make it work. I think it is a subprocess-Windows problem, and this solution is a dirty, temporary fix. Could you try this fix and post back here?

1reaction
msgoffcommented, Dec 1, 2016

these steps worked for me sudo pip3 install jupyter-c-kernel git clone https://github.com/brendan-rius/jupyter-c-kernel.git cd jupyter-c-kernel/ jupyter-kernelspec install c_spec/ sudo pip3 install ipykernel jupyter-notebook

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a Kernel Data Inpage Error - Lifewire
The kernel data inpage error is a Windows blue screen error that usually indicates a problem with your memory or hard drive.
Read more >
How To Fix Kernel Data Inpage Error in Windows 10?
The Kernel Data Inpage Error is a Windows error code, shown on the Blue Screen of Death (BSoD). Usually, when this error hits...
Read more >
How to Fix Kernel Error in Jupyter Notebook
A kernel error occurs basically when you try opening a python 3 file in the wrong directory. The truth is Jupyter and Python...
Read more >
How To Fix the “Kernel Security Check Failure” Error in ...
Kernel Security Check Failure is not a virus in itself, it is an error message that Windows 10 displays on the screen when...
Read more >
What is kernel panic? - TechTarget
A kernel panic refers to a computer error from which the system's operating system (OS) cannot quickly or easily recover. It occurs when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found