-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: Kernel didn't respond to kernel_info_request FileNotFoundError: [WinError 2] The system cannot find the file specified #405
Comments
Could you please go to run_kernel.py from you stacktrace and add print of this list? I suspect that you have misconfigured JAVA_HOME environment variable, check it first |
Yes, I see, you have java executable in your JAVA_HOME directly, but it should be located in bin subfolder |
thanks to your clue. I changed the path manually but now I'm getting a different error. So I did some investigation. Apparently changing System default(jup) C:\jupdir>where java
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe Adding new path manually(jup) C:\jupdir>set path=C:\Program Files (x86)\Java\jre1.8.0_261\bin;%path% Now
|
I'm not really sure what is the command to print these things but I tried to do a manual print() statement in that file. java
jvm_args[] debug list['-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044'] jar_args['C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\kotlin-jupyter-kernel-0.11.0-255.jar', '-classpath=C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\lib-0.11.0-255.jar;C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\api-0.11.0-255.jar;C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\kotlin-script-runtime-1.8.20-Beta.jar;C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\kotlin-reflect-1.8.20-Beta.jar;C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\kotlin-stdlib-1.8.20-Beta.jar;C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\kotlin-stdlib-common-1.8.20-Beta.jar;C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\annotations-13.0.jar;C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\kotlinx-serialization-json-jvm-1.4.1.jar;C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\kotlinx-serialization-core-jvm-1.4.1.jar;C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\kotlin-stdlib-jdk8-1.7.20.jar;C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel\\jars\\kotlin-stdlib-jdk7-1.7.20.jar', '--help', '-home=C:\\jupdir\\envs\\jup\\lib\\site-packages\\run_kotlin_kernel', '-debugPort=1044'] |
Thanks for your help. I think it is working now, right? So I downloaded the JDK 11 and set the JAVA_HOME to java 11. (jup) C:\jupdir>set JAVA_HOME=C:\jdk-11.0.18
(jup) C:\jupdir>jupyter console --kernel=kotlin
Listening for transport dt_socket at address: 1044
375 [main] INFO ikotlin - Kernel args: -classpath=C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\lib-0.11.0-255.jar;C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\api-0.11.0-255.jar;C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-script-runtime-1.8.20-Beta.jar;C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-reflect-1.8.20-Beta.jar;C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-1.8.20-Beta.jar;C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-common-1.8.20-Beta.jar;C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\annotations-13.0.jar;C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlinx-serialization-json-jvm-1.4.1.jar;C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlinx-serialization-core-jvm-1.4.1.jar;C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-jdk8-1.7.20.jar;C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-jdk7-1.7.20.jar, C:\Users\julius\AppData\Roaming\jupyter\runtime\kernel-968.json, -home=C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel, -debugPort=1044
1071 [main] INFO ikotlin - Starting server with config: KernelConfig(ports={HB=50867, SHELL=50864, CONTROL=50868, STDIN=50866, IOPUB=50865}, transport=tcp, signatureScheme=hmac-sha256, signatureKey=f8af4141-e3c8d12651cbde31bc0432b5, scriptClasspath=[C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\lib-0.11.0-255.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\api-0.11.0-255.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-script-runtime-1.8.20-Beta.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-reflect-1.8.20-Beta.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-1.8.20-Beta.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-common-1.8.20-Beta.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\annotations-13.0.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlinx-serialization-json-jvm-1.4.1.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlinx-serialization-core-jvm-1.4.1.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-jdk8-1.7.20.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-jdk7-1.7.20.jar], homeDir=C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel, debugPort=1044, clientType=null)
1439 [main] DEBUG SocketWrapper - [HB] listen: tcp://*:50867
1442 [main] DEBUG SocketWrapper - [SHELL] listen: tcp://*:50864
1445 [main] DEBUG SocketWrapper - [CONTROL] listen: tcp://*:50868
1447 [main] DEBUG SocketWrapper - [STDIN] listen: tcp://*:50866
1963 [main] DEBUG SocketWrapper - [IOPUB] listen: tcp://*:50865
2069 [main] INFO ikotlin - Current classpath: C:\jupdir\envs\jup\Lib\site-packages\run_kotlin_kernel\jars\kotlin-jupyter-kernel-0.11.0-255.jar
2070 [main] INFO ikotlin - Begin listening for events
2092 [main] INFO ikotlin - Detecting Jupyter client type
2181 [main] INFO ikotlin - Inspecting process: C:\jdk-11.0.18\bin\java.exe
2182 [main] INFO ikotlin - Inspecting process: C:\jupdir\envs\jup\python.exe
2182 [main] INFO ikotlin - Inspecting process: C:\jupdir\envs\jup\python.exe
2183 [main] INFO ikotlin - Inspecting process: C:\jupdir\envs\jup\Scripts\jupyter-console.exe
2183 [main] INFO ikotlin - Inspecting process: C:\jupdir\envs\jup\python.exe
2184 [main] INFO ikotlin - Inspecting process: C:\jupdir\envs\jup\Scripts\jupyter.exe
2185 [main] INFO ikotlin - Inspecting process: C:\Windows\System32\cmd.exe
2185 [main] INFO ikotlin - Inspecting process: C:\ConEmu\App\ConEmu\ConEmu\ConEmuC64.exe
2186 [main] INFO ikotlin - Inspecting process: C:\ConEmu\App\ConEmu\ConEmu.exe
2186 [main] INFO ikotlin - Inspecting process: C:\Windows\explorer.exe
2187 [main] INFO ikotlin - Client type has not been detected
2302 [main] INFO ikotlin - Starting kotlin REPL engine. Compiler version: 1.8.20-Beta
2303 [main] INFO ikotlin - Kernel version: 0.11.0.255
2303 [main] INFO ikotlin - Classpath used in script: [C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\lib-0.11.0-255.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\api-0.11.0-255.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-script-runtime-1.8.20-Beta.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-reflect-1.8.20-Beta.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-1.8.20-Beta.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-common-1.8.20-Beta.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\annotations-13.0.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlinx-serialization-json-jvm-1.4.1.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlinx-serialization-core-jvm-1.4.1.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-jdk8-1.7.20.jar, C:\jupdir\envs\jup\lib\site-packages\run_kotlin_kernel\jars\kotlin-stdlib-jdk7-1.7.20.jar]
2318 [main] DEBUG SocketWrapper - [SHELL] >rcv: msg[59b92614-c6de2cfbf8af047688bd6fe9] {"header":{"msg_id":"59b92614-c6de2cfbf8af047688bd6fe9_968_0","msg_type":"kernel_info_request","username":"username","session":"59b92614-c6de2cfbf8af047688bd6fe9","date":"2023-03-30T17:54:04.821200Z","version":"5.3"},"parent_header":null,"metadata":null,"content":{}}
2594 [main] DEBUG SocketWrapper - [IOPUB] snd>: msg[59b92614-c6de2cfbf8af047688bd6fe9] {"header":{"msg_id":"0e6dd161-bbee-44df-8eeb-20348b38f65e","msg_type":"status","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T23:24+0530"},"parent_header":{"msg_id":"59b92614-c6de2cfbf8af047688bd6fe9_968_0","msg_type":"kernel_info_request","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T17:54:04.821200Z"},"metadata":null,"content":{"execution_state":"busy"}}
2609 [main] DEBUG SocketWrapper - [SHELL] snd>: msg[59b92614-c6de2cfbf8af047688bd6fe9] {"header":{"msg_id":"a7203dc6-53ff-46a3-b093-0cb62d96e136","msg_type":"kernel_info_reply","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T23:24+0530"},"parent_header":{"msg_id":"59b92614-c6de2cfbf8af047688bd6fe9_968_0","msg_type":"kernel_info_request","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T17:54:04.821200Z"},"metadata":null,"content":{"status":"ok","protocol_version":"5.3","implementation":"Kotlin","implementation_version":"0.11.0.255","banner":"Kotlin kernel v. 0.11.0.255, Kotlin v. 1.8.20-Beta","language_info":{"name":"kotlin","version":"1.8.20-Beta","mimetype":"text/x-kotlin","file_extension":".kt","pygments_lexer":"kotlin","codemirror_mode":"text/x-kotlin","nbconvert_exporter":""},"help_links":[]}}
2612 [main] DEBUG SocketWrapper - [IOPUB] snd>: msg[59b92614-c6de2cfbf8af047688bd6fe9] {"header":{"msg_id":"f28adfbd-3fb2-4457-a700-5b14cfa19c02","msg_type":"status","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T23:24+0530"},"parent_header":{"msg_id":"59b92614-c6de2cfbf8af047688bd6fe9_968_0","msg_type":"kernel_info_request","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T17:54:04.821200Z"},"metadata":null,"content":{"execution_state":"idle"}}
2689 [main] DEBUG SocketWrapper - [SHELL] >rcv: msg[59b92614-c6de2cfbf8af047688bd6fe9] {"header":{"msg_id":"59b92614-c6de2cfbf8af047688bd6fe9_968_1","msg_type":"history_request","username":"username","session":"59b92614-c6de2cfbf8af047688bd6fe9","date":"2023-03-30T17:54:09.893456Z","version":"5.3"},"parent_header":null,"metadata":null,"content":{"raw":true,"output":false,"hist_access_type":"tail","n":1000}}
2691 [main] DEBUG SocketWrapper - [IOPUB] snd>: msg[59b92614-c6de2cfbf8af047688bd6fe9] {"header":{"msg_id":"38c3041e-2c91-4117-b905-e6238b3114c0","msg_type":"status","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T23:24+0530"},"parent_header":{"msg_id":"59b92614-c6de2cfbf8af047688bd6fe9_968_1","msg_type":"history_request","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T17:54:09.893456Z"},"metadata":null,"content":{"execution_state":"busy"}}
2695 [main] DEBUG SocketWrapper - [SHELL] snd>: msg[59b92614-c6de2cfbf8af047688bd6fe9] {"header":{"msg_id":"bf096534-58b2-4b7c-98d4-7b842a54f467","msg_type":"history_reply","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T23:24+0530"},"parent_header":{"msg_id":"59b92614-c6de2cfbf8af047688bd6fe9_968_1","msg_type":"history_request","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T17:54:09.893456Z"},"metadata":null,"content":{"history":[]}}
2697 [main] DEBUG SocketWrapper - [IOPUB] snd>: msg[59b92614-c6de2cfbf8af047688bd6fe9] {"header":{"msg_id":"04eea2ad-e443-414d-ba78-c37921ed1cfb","msg_type":"status","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T23:24+0530"},"parent_header":{"msg_id":"59b92614-c6de2cfbf8af047688bd6fe9_968_1","msg_type":"history_request","session":"59b92614-c6de2cfbf8af047688bd6fe9","username":"username","version":"5.3","date":"2023-03-30T17:54:09.893456Z"},"metadata":null,"content":{"execution_state":"idle"}}
Jupyter console 6.6.3
Kotlin kernel v. 0.11.0.255, Kotlin v. 1.8.20-Beta Trying simple arithmeticIn [1]: 2+24652297 [main] DEBUG SocketWrapper - [SHELL] >rcv: msg[59b92614-c6de2cfbf8af047688bd6fe9] {"header":{"msg_id":"59b92614-c6de2cfbf8af047688bd6fe9_968_2","msg_type":"is_complete_request","username":"username","session":"59b92614-c6de2cfbf8af047688bd6fe9","date":"2023-03-30T19:11:39.502779Z","version":"5.3"},"parent_header":null,"metadata":null,"content":{"code":"2+2"}}
C:\jupdir\envs\jup\lib\site-packages\jupyter_console\ptshell.py:787: UserWarning: The kernel did not respond to an is_complete_request. Setting `use_kernel_is_complete` to False.
warn('The kernel did not respond to an is_complete_request. '
In [1]: 2+2
Out[1]: 4
In [1]: 2+3
...: ;
...:
...:
Out[2]: 5
In [3]: 2+3
...:
...:
Out[3]: 5 |
Yes, it seems that it works now. However it should be compatible with Java 8, I'll recheck it, thanks! |
After this commit kernel should be compatible with Java 8 again (except for detecting client type which uses Java 9 API). Thank you again for checking! |
Not sure what I'm doing wrong but it gives some error which I don't really understand. The other kernels which I installed like R, Julia, Wolfram work fine.
Below are installation, console & web notebook outputs.
Win 10
python 3.9.16
jupyter --version
Selected Jupyter core packages...
IPython : 8.10.0
ipykernel : 6.21.2
ipywidgets : not installed
jupyter_client : 8.0.3
jupyter_core : 5.2.0
jupyter_server : 2.3.0
jupyterlab : 3.6.1
nbclient : 0.7.2
nbconvert : 7.2.9
nbformat : 5.7.3
notebook : 6.5.3
qtconsole : not installed
traitlets : 5.9.0
Installation
I tried to run from console but this is the error.
Starting Jupyter
I tried to run from web notebook.
The text was updated successfully, but these errors were encountered: