I am facing a Kernel Error in Jupyter Notebook.
I am on Windows 10, created a new environment in Anaconda using Python 3.5 this morning and installed these libraries:
Zipline 1.3.0
nb_conda 2.2.1
nb_conda_kernels 2.1.0
pandas 0.18.1
Initially, Jupyter Notebook did not start. I was told to downgrade “tornado” to 4.5.3.
After downgrading tornado to 4.5.3 (current version), Jupyter Notebook starts but i have the following Kernel error.
Any kind souls can help to advise on the issue. Thank you in advance.
Failed to start the kernel
Unknown server error
Traceback (most recent call last):
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\notebook\base\handlers.py”, line 503, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\gen.py”, line 1055, in run
value = future.result()
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\concurrent.py”, line 238, in result
raise_exc_info(self._exc_info)
File “”, line 4, in raise_exc_info
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\gen.py”, line 1063, in run
yielded = self.gen.throw(*exc_info)
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\notebook\services\sessions\handlers.py”, line 75, in post
type=mtype))
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\gen.py”, line 1055, in run
value = future.result()
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\concurrent.py”, line 238, in result
raise_exc_info(self._exc_info)
File “”, line 4, in raise_exc_info
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\gen.py”, line 1063, in run
yielded = self.gen.throw(*exc_info)
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\notebook\services\sessions\sessionmanager.py”, line 79, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\gen.py”, line 1055, in run
value = future.result()
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\concurrent.py”, line 238, in result
raise_exc_info(self._exc_info)
File “”, line 4, in raise_exc_info
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\gen.py”, line 1063, in run
yielded = self.gen.throw(*exc_info)
File “C:\Users\Anaconda3\envs\zip35v2\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:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\gen.py”, line 1055, in run
value = future.result()
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\concurrent.py”, line 238, in result
raise_exc_info(self._exc_info)
File “”, line 4, in raise_exc_info
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\tornado\gen.py”, line 307, in wrapper
yielded = next(result)
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\notebook\services\kernels\kernelmanager.py”, line 87, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\jupyter_client\multikernelmanager.py”, line 110, in start_kernel
km.start_kernel(**kwargs)
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\jupyter_client\manager.py”, line 240, in start_kernel
self.write_connection_file()
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\jupyter_client\connect.py”, line 547, in write_connection_file
kernel_name=self.kernel_name
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\jupyter_client\connect.py”, line 212, in write_connection_file
with secure_write(fname) as f:
File “C:\Users\Anaconda3\envs\zip35v2\lib\contextlib.py”, line 59, in enter
return next(self.gen)
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\jupyter_client\connect.py”, line 100, in secure_write
win32_restrict_file_to_user(fname)
File “C:\Users\Anaconda3\envs\zip35v2\lib\site-packages\jupyter_client\connect.py”, line 53, in win32_restrict_file_to_user
import win32api
ImportError: No module named ‘win32api’