-
Notifications
You must be signed in to change notification settings - Fork 325
Failed to change kernel [NoPermissions (FileSystemError): Unable to write file #5494
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
Comments
This is the spot where we try to write the file: vscode-jupyter/src/client/datascience/jupyter/kernels/jupyterKernelService.ts Lines 235 to 238 in f536e12
We could instead do if (shouldUpdate) {
this.fs.writeLocalFile(kernelSpecFilePath, JSON.stringify(specModel, undefined, 2)).catch((e) => traceError('Failed to write kernelspec', e));
} Not sure if there would be any adverse consequences resulting from us failing to write the kernel.json and continuing to use the new kernel. I think the worst thing that might happen is we might fail to find a matching kernel for a given notebook later on, since the kernel.json wouldn't match the notebook metadata. |
When using Jupyter (non-raw) this will cause issues (basically the conda environment will not start properly). I think we might want to create a separate kernel spec in the I.e. kernel a kernel spec named |
This should be fixed with #9141 |
We have a shared server in which different kernel configurations are centrally managed under
/usr/local/share/jupyter/kernels
where write access is restricted. The Jupyter extension is unable to use these kernels due to a file write permissions error in which it appears to be trying to edit the kernel.json files.Environment data
Expected behaviour
Actual behaviour
Logs
Kernel configs stored in
/home/USERNAME/.local/share/jupyter/kernels/
open as expected and show file modified timestamps that align with kernel execution, though the actual content of the kernel.json doesn't appear to have changed.Is there a way to bypass the attempt to write to the kernel.json files?
The text was updated successfully, but these errors were encountered: