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.

Can't start IRkernel

See original GitHub issue

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

I try to use R in Jupyter with IRkernel, and it works well on my Jupyter lab. But when I tried to use VSCode to open R .ipynb files, I got this: image Seems that jupyter-vscode can’t start this customized kernel correctly. I tried to reinstall the extension or change to pre-release version, but all failed. In my view, the problem seems to be a wrong format of string? I tried to fix it in the specFile, but can’t solve the problem.

VS Code Version

1.71.0

Jupyter Extension Version

v2022.8.1002431955 & 2022.9.1002511105

Jupyter logs

error 11:42:23.768: Error in execution (get message for cell) o [Error]: The kernel died. Error: Error in open.connection(con, "rb") : cannot open the connection
Calls: <Anonymous> ... parse_and_simplify -> parseJSON -> parse_con -> open -> open.connection
In addition: Warning message:
In open.connection(con, "rb") :
  cannot open file 'r'"c:\Users\Ma Jiahao\AppData\Roaming\jupyter\runtime\kernel-v2-24568JN5dWQkG77fG.json"'': Invalid argument
Execution halted... View Jupyter [log](command:jupyter.viewOutput) for further details.
    at ChildProcess.<anonymous> (c:\Users\Ma Jiahao\.vscode\extensions\ms-toolsai.jupyter-2022.9.1002511105\out\extension.node.js:2:2177745)
    at ChildProcess.emit (node:events:538:35)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: '***\\kernel.json',
      name: 'ir',
      argv: [Array],
      language: 'R',
      executable: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
      display_name: 'R',
      metadata: [Object]
    },
    id: ".ir.c:\\PROGRA~1\\R\\R-42~1.1\\bin\\x64\\R.\\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#r'{connection_file}'"
  },
  exitCode: 1,
  stdErr: 'Error in open.connection(con, "rb") : cannot open the connection\r\n' +
    'Calls: <Anonymous> ... parse_and_simplify -> parseJSON -> parse_con -> open -> open.connection\r\n' +
    'In addition: Warning message:\r\n' +
    'In open.connection(con, "rb") :\r\n' +
    `  cannot open file 'r'"c:\\Users\\Ma Jiahao\\AppData\\Roaming\\jupyter\\runtime\\kernel-v2-24568JN5dWQkG77fG.json"'': Invalid argument\r\n` +
    ### original:   '"***\\kernel-v2-24568JN5dWQkG77fG.json"'': Invalid argument\r\n`'"
    'Execution halted\r\n'
}

Coding Language and Runtime Version

R 4.2.1 with IRkernel 1.3

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
michael-pearcecommented, Oct 7, 2022

I’ve been experiencing an identical error, including the missing json file. Have there been any developments on this front?

0reactions
michael-pearcecommented, Nov 23, 2022

Unfortunately still having the same issue. Log output below:

Visual Studio Code (1.73.1, undefined, desktop)
Jupyter Extension Version: 2022.11.1003281132.
Python Extension Version: 2022.18.2.
Workspace folder c:\Users\Michael Pearce\Documents\Code\colleen-rstudio
info 20:47:53.179: ZMQ install verified.
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
debug 20:47:53.611: Get Custom Env Variables, Class name = S (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
info 20:47:53.613: LSP Notebooks experiment is enabled
debug 20:47:53.613: Get Active Interpreter, Class name = x (started execution), Arg 1: "/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio"
debug 20:47:53.615: getCondaFile, Class name = k (started execution)
debug 20:47:53.615: getCondaVersion, Class name = k (started execution)
debug 20:47:53.615: getCondaVersionFromPython, Class name = k (started execution)
debug 20:47:53.615: Get Active Interpreter, Class name = x (started execution), Arg 1: undefined
debug 20:47:53.667: Get Active Interpreter, Class name = x (started execution), Arg 1: undefined
debug 20:47:54.672: Get Active Interpreter, Class name = x (started execution), Arg 1: undefined
debug 20:47:54.696: Get Custom Env Variables, Class name = S, completed in 1085ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
debug 20:47:54.697: Get Jupyter Sub Paths, Class name = j, completed in 1086ms, has a truthy return value, Arg 1: "", Arg 2: "kernels", Return Value: 
debug 20:47:54.698: Get Jupyter Kernel Paths, Class name = j, completed in 1087ms, has a truthy return value, Arg 1: "", Return Value: 
debug 20:47:54.698: Getting Jupyter KernelSpec Root Path, Class name = j, completed in 0ms, has a truthy return value, , Return Value: <Uri:/c:/Users/Michael Pearce/AppData/Roaming/jupyter/kernels>
debug 20:47:54.698: Get KernelSpec root path, Class name = j, completed in 1087ms, has a truthy return value, Arg 1: {"_isCancelled":false,"_emitter":null}, Return Value: <Uri:/c:/Users/Michael Pearce/AppData/Roaming/jupyter/kernels>, <Uri:/C:/ProgramData/jupyter/kernels>
debug 20:47:54.757: Loading kernelspec from c:\Users\Michael Pearce\AppData\Roaming\jupyter\kernels\ir\kernel.json for 
debug 20:47:54.760: Getting Jupyter KernelSpec Root Path, Class name = j, completed in 1ms, has a truthy return value, , Return Value: <Uri:/c:/Users/Michael Pearce/AppData/Roaming/jupyter/kernels>
debug 20:47:54.808: Get Active Interpreter, Class name = x, completed in 136ms, has a falsy return value, Arg 1: undefined, Return Value: undefined
debug 20:47:54.808: Get Active Interpreter, Class name = x, completed in 1195ms, has a falsy return value, Arg 1: "/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio", Return Value: undefined
debug 20:47:54.808: Get Active Interpreter, Class name = x, completed in 1193ms, has a falsy return value, Arg 1: undefined, Return Value: undefined
debug 20:47:54.808: Get Active Interpreter, Class name = x, completed in 1141ms, has a falsy return value, Arg 1: undefined, Return Value: undefined
debug 20:47:54.840: getCondaVersionFromPython, Class name = k, completed in 1225ms, has a falsy return value
debug 20:47:54.840: getCondaFile, Class name = k, completed in 1225ms, has a truthy return value
debug 20:47:54.840: getCondaVersion, Class name = k, completed in 1225ms, has a falsy return value
debug 20:47:54.844: Full interpreter list after refreshing (total 1193ms, resolve 1037ms, refresh 156ms) is length: 0, 
debug 20:47:54.845: Full interpreter list is length: 0, 
debug 20:47:54.846: Found 1 cached controllers
debug 20:47:54.846: Creating 1 controllers
debug 20:47:54.846: Creating notebook controller for startUsingLocalKernelSpec & view jupyter-notebook (id='.ir.c:\PROGRA~1\R\R-42~1.1\bin\x64\R.\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}') with name 'R'
debug 20:47:54.847: Creating notebook controller for startUsingLocalKernelSpec & view interactive (id='.ir.c:\PROGRA~1\R\R-42~1.1\bin\x64\R.\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}') with name 'R'
debug 20:47:54.847: Found 1 cached controllers
debug 20:47:54.847: Creating 1 controllers
info 20:47:54.850: Preferred Remote kernel for c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb is undefined
debug 20:47:54.956: Rank Kernels, Class name = p (started execution), Arg 1: "/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio/test.ipynb", Arg 2: "", Arg 3: {"kernelspec":{"display_name":"R","language":"R","name":"ir"},"language_info":{"name":"R"},"orig_nbformat":4}, Arg 4: undefined, Arg 5: "", Arg 6: undefined
info 20:47:54.956: Preferred Remote kernel for c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb is undefined
info 20:47:54.956: Find preferred kernel for c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb with metadata {"kernelspec":{"display_name":"R","language":"R","name":"ir"},"language_info":{"name":"R"},"orig_nbformat":4} & preferred interpreter <undefined>
debug 20:47:54.958: Rank Kernels, Class name = p, completed in 2ms, has a truthy return value, Arg 1: "/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio/test.ipynb", Arg 2: "", Arg 3: {"kernelspec":{"display_name":"R","language":"R","name":"ir"},"language_info":{"name":"R"},"orig_nbformat":4}, Arg 4: undefined, Arg 5: "", Arg 6: undefined
info 20:47:54.958: Preferred Remote kernel for c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb is undefined
info 20:47:54.958: Preferred kernel .ir.c:\PROGRA~1\R\R-42~1.1\bin\x64\R.\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file} is exact match or top match for non python kernels, (true, undefined, true, true)
info 20:47:54.959: PreferredConnection: .ir.c:\PROGRA~1\R\R-42~1.1\bin\x64\R.\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file} found for NotebookDocument: c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb
debug 20:47:54.959: TargetController found ID: startUsingLocalKernelSpec:.ir.c:\PROGRA~1\R\R-42~1.1\bin\x64\R.\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file} for document c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb
debug 20:47:54.960: Compute Preferred Controller, Class name = k, completed in 4ms, has a truthy return value, Arg 1: <Uri:/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio/test.ipynb>, Arg 2: undefined, Arg 3: {"_isCancelled":false,"_emitter":{"_disposed":false,"_listeners":{"_first":{},"_last":{},"_size":0}}}, Return Value: <Return value cannot be serialized for logging>
debug 20:47:55.295: _jupyterPythonPathFunction: "file:///c%3A/Users/Michael%20Pearce/Documents/Code/colleen-rstudio" is not a notebook
debug 20:48:06.881: VSCodeNotebookController::handleExecution, Class name = x (started execution)
debug 20:48:06.882: KernelProvider switched kernel to id = .ir.c:\PROGRA~1\R\R-42~1.1\bin\x64\R.\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}
debug 20:48:06.882: start the kernel, options.disableUI=true for c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb
debug 20:48:06.883: Start Jupyter Session in kernel.ts with disableUI = true
debug 20:48:06.883: Initialize notebook communications for editor c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb
debug 20:48:06.883: Resolving notebook UI Comms (resolve) for c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb
debug 20:48:06.883: initialize CommonMessageCoordinator
debug 20:48:06.899: Registering commtarget jupyter.widget
debug 20:48:06.899: IPyWidgetMessageDispatcher.initialize
debug 20:48:06.899: Controller selection change completed
debug 20:48:06.899: Execute Cell 0 c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb
debug 20:48:06.900: start the kernel, options.disableUI=false for c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb
info 20:48:06.900: Starting Jupyter Session startUsingLocalKernelSpec, .ir.c:\PROGRA~1\R\R-42~1.1\bin\x64\R.\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file} for 'c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb' (disableUI=false)
debug 20:48:06.901: Creating raw notebook for resource 'c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb'
info 20:48:06.901: Computing working directory for resource 'c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb'
debug 20:48:06.901: Storing Preferred remote kernel for c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb is undefined
debug 20:48:06.902: Kernel Launcher. launch, Class name = r (started execution), Arg 1: {"id":".ir.c:\\PROGRA~1\\R\\R-42~1.1\\bin\\x64\\R.\\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}","kernelSpec":{"specFile":"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\kernels\\ir\\kernel.json","name":"ir","argv":["C:/PROGRA~1/R/R-42~1.1/bin/x64/R","--slave","-e","IRkernel::main()","--args","{connection_file}"],"language":"R","executable":"C:/PROGRA~1/R/R-42~1.1/bin/x64/R","display_name":"R","metadata":{"vscode":{"originalSpecFile":"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\kernels\\ir\\kernel.json","originalDisplayName":"R"}}},"kind":"startUsingLocalKernelSpec"}, Arg 2: 60000, Arg 3: "/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio/test.ipynb", Arg 4: "~\\Documents\\Code\\colleen-rstudio", Arg 5: {"_isCancelled":false,"_emitter":null}
debug 20:48:06.933: Launching kernel in kernelProcess.ts, Class name = x (started execution), Arg 1: "~\\Documents\\Code\\colleen-rstudio", Arg 2: ""
info 20:48:06.933: Launching Raw Kernel & not daemon R # C:/PROGRA~1/R/R-42~1.1/bin/x64/R
debug 20:48:06.933: Create ProcessService, Class name = h (started execution), Arg 1: "/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio/test.ipynb"
debug 20:48:06.933: Get Custom Env Variables, Class name = S (started execution), Arg 1: "/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio/test.ipynb", Arg 2: "RunNonPythonCode"
debug 20:48:06.934: Get Custom Env Variables, Class name = S, completed in 1ms, has a truthy return value, Arg 1: "/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio/test.ipynb", Arg 2: "RunNonPythonCode"
debug 20:48:06.934: Create ProcessService, Class name = h, completed in 1ms, has a truthy return value, Arg 1: "/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio/test.ipynb"
info 20:48:06.934: No custom variables nor do we have a conda environment
info 20:48:06.936: Process Execution: > C:/PROGRA~1/R/R-42~1.1/bin/x64/R --slave -e IRkernel::main() --args "~\AppData\Roaming\jupyter\runtime\kernel-v2-26972LVwsajc0A2Cp.json"
> C:/PROGRA~1/R/R-42~1.1/bin/x64/R --slave -e IRkernel::main() --args "~\AppData\Roaming\jupyter\runtime\kernel-v2-26972LVwsajc0A2Cp.json"
info 20:48:06.936: Process Execution: cwd: ~\Documents\Code\colleen-rstudio
cwd: ~\Documents\Code\colleen-rstudio
debug 20:48:06.936: Launching kernel in kernelProcess.ts, Class name = x, completed in 3ms, has a truthy return value, Arg 1: "~\\Documents\\Code\\colleen-rstudio", Arg 2: ""
error 20:48:06.939: Kernel died [Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:478:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
  path: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
  spawnargs: [
    '--slave',
    '-e',
    'IRkernel::main()',
    '--args',
    '"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\runtime\\kernel-v2-26972LVwsajc0A2Cp.json"'
  ]
} 
error 20:48:06.940: Disposing kernel process due to an error [Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:478:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
  path: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
  spawnargs: [
    '--slave',
    '-e',
    'IRkernel::main()',
    '--args',
    '"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\runtime\\kernel-v2-26972LVwsajc0A2Cp.json"'
  ]
}
error 20:48:06.940: 
info 20:48:06.940: Dispose Kernel process undefined.
debug 20:48:06.941: Disposed Kernel process undefined.
error 20:48:06.943: Kernel Launcher. launch, Class name = r, completed in 41ms, has a falsy return value, Arg 1: {"id":".ir.c:\\PROGRA~1\\R\\R-42~1.1\\bin\\x64\\R.\\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}","kernelSpec":{"specFile":"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\kernels\\ir\\kernel.json","name":"ir","argv":["C:/PROGRA~1/R/R-42~1.1/bin/x64/R","--slave","-e","IRkernel::main()","--args","{connection_file}"],"language":"R","executable":"C:/PROGRA~1/R/R-42~1.1/bin/x64/R","display_name":"R","metadata":{"vscode":{"originalSpecFile":"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\kernels\\ir\\kernel.json","originalDisplayName":"R"}}},"kind":"startUsingLocalKernelSpec"}, Arg 2: 60000, Arg 3: "/c:/Users/Michael Pearce/Documents/Code/colleen-rstudio/test.ipynb", Arg 4: "~\\Documents\\Code\\colleen-rstudio", Arg 5: <argument cannot be serialized for logging> [i [Error]: 
	at new r (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:17:33247)
	at new o (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:1761997)
	at new i (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:1741797)
	at x.launch (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:2145231)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)

Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:478:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
  category: 'unknown',
  originalException: [Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
  	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
  	at onErrorNT (node:internal/child_process:478:16)
  	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
    errno: -4058,
    code: 'ENOENT',
    syscall: 'spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
    path: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
    spawnargs: [
      '--slave',
      '-e',
      'IRkernel::main()',
      '--args',
      '"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\runtime\\kernel-v2-26972LVwsajc0A2Cp.json"'
    ]
  },
  kernelConnectionMetadata: h {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: 'c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\kernels\\ir\\kernel.json',
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'ir',
      argv: [Array],
      language: 'R',
      executable: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
      display_name: 'R',
      metadata: [Object],
      env: undefined,
      interrupt_mode: undefined
    },
    interpreter: undefined,
    id: '.ir.c:\\PROGRA~1\\R\\R-42~1.1\\bin\\x64\\R.\\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}'
  },
  stdErr: '\n\n'
}
error 20:48:06.944: Failed to connect raw kernel session: Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details.
debug 20:48:06.944: Shutdown session -- complete
warn 20:48:06.945: Error occurred while trying to start the kernel, options.disableUI=false [i [Error]: 
	at new r (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:17:33247)
	at new o (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:1761997)
	at new i (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:1741797)
	at x.launch (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:2145231)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)

Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:478:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
  category: 'unknown',
  originalException: [Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
  	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
  	at onErrorNT (node:internal/child_process:478:16)
  	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
    errno: -4058,
    code: 'ENOENT',
    syscall: 'spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
    path: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
    spawnargs: [
      '--slave',
      '-e',
      'IRkernel::main()',
      '--args',
      '"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\runtime\\kernel-v2-26972LVwsajc0A2Cp.json"'
    ]
  },
  kernelConnectionMetadata: h {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: 'c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\kernels\\ir\\kernel.json',
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'ir',
      argv: [Array],
      language: 'R',
      executable: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
      display_name: 'R',
      metadata: [Object],
      env: undefined,
      interrupt_mode: undefined
    },
    interpreter: undefined,
    id: '.ir.c:\\PROGRA~1\\R\\R-42~1.1\\bin\\x64\\R.\\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}'
  },
  stdErr: '\n\n'
}
warn 20:48:06.945: Kernel Error, context = start [i [Error]: 
	at new r (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:17:33247)
	at new o (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:1761997)
	at new i (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:1741797)
	at x.launch (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:2145231)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)

Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:478:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
  category: 'unknown',
  originalException: [Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
  	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
  	at onErrorNT (node:internal/child_process:478:16)
  	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
    errno: -4058,
    code: 'ENOENT',
    syscall: 'spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
    path: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
    spawnargs: [
      '--slave',
      '-e',
      'IRkernel::main()',
      '--args',
      '"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\runtime\\kernel-v2-26972LVwsajc0A2Cp.json"'
    ]
  },
  kernelConnectionMetadata: h {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: 'c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\kernels\\ir\\kernel.json',
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'ir',
      argv: [Array],
      language: 'R',
      executable: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
      display_name: 'R',
      metadata: [Object],
      env: undefined,
      interrupt_mode: undefined
    },
    interpreter: undefined,
    id: '.ir.c:\\PROGRA~1\\R\\R-42~1.1\\bin\\x64\\R.\\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}'
  },
  stdErr: '\n\n'
}
debug 20:48:06.946: Are Dependencies Installed, Class name = I, completed in 0ms, has a truthy return value, Arg 1: ".ir.c:\\PROGRA~1\\R\\R-42~1.1\\bin\\x64\\R.\\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}", Arg 2: undefined, Arg 3: true, Return Value: true
info 20:48:06.949: Dispose Kernel 'c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb' associated with 'c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb'
debug 20:48:06.949: Kernel got disposed, hence there is no longer a kernel associated with c:\Users\Michael Pearce\Documents\Code\colleen-rstudio\test.ipynb
error 20:48:06.950: Error in execution [i [Error]: 
	at new r (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:17:33247)
	at new o (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:1761997)
	at new i (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:1741797)
	at x.launch (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:2145231)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)

Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:478:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
  category: 'unknown',
  originalException: [Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
  	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
  	at onErrorNT (node:internal/child_process:478:16)
  	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
    errno: -4058,
    code: 'ENOENT',
    syscall: 'spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
    path: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
    spawnargs: [
      '--slave',
      '-e',
      'IRkernel::main()',
      '--args',
      '"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\runtime\\kernel-v2-26972LVwsajc0A2Cp.json"'
    ]
  },
  kernelConnectionMetadata: h {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: 'c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\kernels\\ir\\kernel.json',
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'ir',
      argv: [Array],
      language: 'R',
      executable: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
      display_name: 'R',
      metadata: [Object],
      env: undefined,
      interrupt_mode: undefined
    },
    interpreter: undefined,
    id: '.ir.c:\\PROGRA~1\\R\\R-42~1.1\\bin\\x64\\R.\\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}'
  },
  stdErr: '\n\n'
}
error 20:48:06.950: Error in execution (get message for cell) [i [Error]: 
	at new r (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:17:33247)
	at new o (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:1761997)
	at new i (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:1741797)
	at x.launch (c:\Users\Michael Pearce\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003281132\out\extension.node.js:2:2145231)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)

Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:478:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
  category: 'unknown',
  originalException: [Error: spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R ENOENT
  	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
  	at onErrorNT (node:internal/child_process:478:16)
  	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] {
    errno: -4058,
    code: 'ENOENT',
    syscall: 'spawn C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
    path: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
    spawnargs: [
      '--slave',
      '-e',
      'IRkernel::main()',
      '--args',
      '"c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\runtime\\kernel-v2-26972LVwsajc0A2Cp.json"'
    ]
  },
  kernelConnectionMetadata: h {
    kind: 'startUsingLocalKernelSpec',
    kernelSpec: {
      specFile: 'c:\\Users\\Michael Pearce\\AppData\\Roaming\\jupyter\\kernels\\ir\\kernel.json',
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'ir',
      argv: [Array],
      language: 'R',
      executable: 'C:/PROGRA~1/R/R-42~1.1/bin/x64/R',
      display_name: 'R',
      metadata: [Object],
      env: undefined,
      interrupt_mode: undefined
    },
    interpreter: undefined,
    id: '.ir.c:\\PROGRA~1\\R\\R-42~1.1\\bin\\x64\\R.\\.c:/progra~1/r/r-42~1.1/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}'
  },
  stdErr: '\n\n'
}
debug 20:48:07.055: VSCodeNotebookController::handleExecution, Class name = x, completed in 174ms, has a falsy return value
debug 20:48:07.169: IPyWidgetMessageDispatcher.initialize


Read more comments on GitHub >

github_iconTop Results From Across the Web

IRKernel Fails to Launch Because IRKernel Installed ... - GitHub
I am running R on my local windows computer and trying to access the R kernel in the notebook. Despite the UI recognizing...
Read more >
Cannot get IRkernel::installspec() to work, jupyter-client not ...
Now execute IRkernel::installspec() once again, this time there shouldn't be an error; Now you can start an R kernel within Jupyter-Notebook.
Read more >
R kernel won't start - Notebook - Jupyter Community Forum
An created an enviroment called 'r_env'. However, when i then go onto Juptyer Notebooks and open a new R file, the kernel cannot...
Read more >
How to Install R in Jupyter with IRKernel in 3 Steps?
Proceed to 'Anaconda Navigator' and launch 'Jupyter Notebook'. If you go to the 'New' tab pane, R should appear in the 'Notebooks' section....
Read more >
to register the kernel in the current R installation - README
If you have Jupyter installed, you can create a notebook using IRkernel from the dropdown menu. You can also start other interfaces with...
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