# Hello, I was trying to code in jupyter notebook but it is showing a Kernel error i.e 'FAILED TO START KERNEL', help me to resolve this error

**URL:** <https://discourse.jupyter.org/t/hello-i-was-trying-to-code-in-jupyter-notebook-but-it-is-showing-a-kernel-error-i-e-failed-to-start-kernel-help-me-to-resolve-this-error/10292>\
**Category:** Notebook\
**Created:** [August 8, 2021, 3:26pm UTC](https://discourse.jupyter.org/t/hello-i-was-trying-to-code-in-jupyter-notebook-but-it-is-showing-a-kernel-error-i-e-failed-to-start-kernel-help-me-to-resolve-this-error/10292 "2021-08-08T15:26:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antriksh\_kukreti](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/antriksh_kukreti/32/4946_2.png) [@Antriksh\_kukreti](https://discourse.jupyter.org/u/Antriksh_kukreti)\
**Post date:** [August 8, 2021, 3:26pm UTC](https://discourse.jupyter.org/t/hello-i-was-trying-to-code-in-jupyter-notebook-but-it-is-showing-a-kernel-error-i-e-failed-to-start-kernel-help-me-to-resolve-this-error/10292/1 "2021-08-08T15:26:56Z")

</div>

![Screenshot (162)](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/5/5342d8b137b6547237506ccee1022126af111b73.png)

Traceback (most recent call last):  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\tornado\web.py”, line 1704, in \_execute  
result = await result  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 769, in run  
yielded = self.gen.throw(\*exc\_info) # type: ignore  
File “C:\Users\Aakash\anaconda3\lib\site-packages\notebook\services\sessions\handlers.py”, line 69, in post  
model = yield maybe\_future(  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 762, in run  
value = future.result()  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 769, in run  
yielded = self.gen.throw(\*exc\_info) # type: ignore  
File “C:\Users\Aakash\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py”, line 98, in create\_session  
kernel\_id = yield self.start\_kernel\_for\_session(session\_id, path, name, type, kernel\_name)  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 762, in run  
value = future.result()  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 769, in run  
yielded = self.gen.throw(\*exc\_info) # type: ignore  
File “C:\Users\Aakash\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py”, line 110, in start\_kernel\_for\_session  
kernel\_id = yield maybe\_future(  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 762, in run  
value = future.result()  
File “C:\Users\Aakash\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py”, line 176, in start\_kernel  
kernel\_id = await maybe\_future(self.pinned\_superclass.start\_kernel(self, \*\*kwargs))  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\jupyter\_client\multikernelmanager.py”, line 186, in start\_kernel  
km.start\_kernel(\*\*kwargs)  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\jupyter\_client\manager.py”, line 337, in start\_kernel  
kernel\_cmd, kw = self.pre\_start\_kernel(\*\*kw)  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\jupyter\_client\manager.py”, line 286, in pre\_start\_kernel  
self.write\_connection\_file()  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\jupyter\_client\connect.py”, line 466, in write\_connection\_file  
self.connection\_file, cfg = write\_connection\_file(self.connection\_file,  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\jupyter\_client\connect.py”, line 136, in write\_connection\_file  
with secure\_write(fname) as f:  
File “C:\Users\Aakash\anaconda3\lib\contextlib.py”, line 113, in **enter**  
return next(self.gen)  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\jupyter\_core\paths.py”, line 461, in secure\_write  
win32\_restrict\_file\_to\_user(fname)  
File “C:\Users\Aakash\AppData\Roaming\Python\Python38\site-packages\jupyter\_core\paths.py”, line 387, in win32\_restrict\_file\_to\_user  
import win32api  
ImportError: DLL load failed while importing win32api: %1 is not a valid Win32 application.
