aws-samples / aws-samples/aws-open-data-satellite-lidar-tutorial
Kernel dies when using footprint_mask() function
- Dominant language
- Jupyter Notebook
- Stars
- 40
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
I've been trying to play the notebook on my PC and after solving some import issues I got to a point where I don't know what to do.
It turns out that when running the following line:
mask = sol.vector.mask.footprint_mask(bldg_path, reference_im=img_path)
the kernel dies and only returns the following logs:
error 13:15:58.804: Error in execution [s [Error]: The kernel 'AWS-env (Python 3.8.15)' died. Click [here](https://aka.ms/vscodeJupyterKernelCrash) for more info. View Jupyter [log](command:jupyter.viewOutput) for further details.
at D.verifyKernelState (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2325307)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async x.executeCell (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2405345)
at async Promise.all (index 0)
at async x.handleExecution (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2401348)] {
category: 'unknown',
originalException: undefined,
kernelConnectionMetadata: f {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: 'c:\\Users\\SIG01\\.vscode\\extensions\\ms-toolsai.jupyter-2022.11.1003412109\\temp\\jupyter\\kernels\\pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752\\kernel.json',
interpreterPath: 'c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752',
argv: [Array],
language: 'python',
executable: 'python',
display_name: 'AWS-env',
metadata: [Object],
env: {}
},
interpreter: {
id: 'C:\\PROGRAMDATA\\ANACONDA3\\ENVS\\AWS-ENV\\PYTHON.EXE',
sysPrefix: 'C:\\ProgramData\\Anaconda3\\envs\\AWS-env',
envPath: [d],
displayPath: [Object],
envName: 'AWS-env',
displayName: 'AWS-env',
envType: 'Conda',
version: [Object],
uri: [d]
},
id: '.jvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.-m#ipykernel_launcher'
}
}
error 13:15:58.804: Error in execution (get message for cell) [s [Error]: The kernel 'AWS-env (Python 3.8.15)' died. Click [here](https://aka.ms/vscodeJupyterKernelCrash) for more info. View Jupyter [log](command:jupyter.viewOutput) for further details.
at D.verifyKernelState (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2325307)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async x.executeCell (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2405345)
at async Promise.all (index 0)
at async x.handleExecution (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2401348)] {
category: 'unknown',
originalException: undefined,
kernelConnectionMetadata: f {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: 'c:\\Users\\SIG01\\.vscode\\extensions\\ms-toolsai.jupyter-2022.11.1003412109\\temp\\jupyter\\kernels\\pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752\\kernel.json',
interpreterPath: 'c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752',
argv: [Array],
language: 'python',
executable: 'python',
display_name: 'AWS-env',
metadata: [Object],
env: {}
},
interpreter: {
id: 'C:\\PROGRAMDATA\\ANACONDA3\\ENVS\\AWS-ENV\\PYTHON.EXE',
sysPrefix: 'C:\\ProgramData\\Anaconda3\\envs\\AWS-env',
envPath: [d],
displayPath: [Object],
envName: 'AWS-env',
displayName: 'AWS-env',
envType: 'Conda',
version: [Object],
uri: [d]
},
id: '.jvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.-m#ipykernel_launcher'
}
}
error 13:26:44.731: Error in execution [s [Error]: The kernel 'AWS-env (Python 3.8.15)' died. Click [here](https://aka.ms/vscodeJupyterKernelCrash) for more info. View Jupyter [log](command:jupyter.viewOutput) for further details.
at D.verifyKernelState (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2325307)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async x.executeCell (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2405345)
at async Promise.all (index 0)
at async x.handleExecution (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2401348)] {
category: 'unknown',
originalException: undefined,
kernelConnectionMetadata: f {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: 'c:\\Users\\SIG01\\.vscode\\extensions\\ms-toolsai.jupyter-2022.11.1003412109\\temp\\jupyter\\kernels\\pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752\\kernel.json',
interpreterPath: 'c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752',
argv: [Array],
language: 'python',
executable: 'python',
display_name: 'AWS-env',
metadata: [Object],
env: {}
},
interpreter: {
id: 'C:\\PROGRAMDATA\\ANACONDA3\\ENVS\\AWS-ENV\\PYTHON.EXE',
sysPrefix: 'C:\\ProgramData\\Anaconda3\\envs\\AWS-env',
envPath: [d],
displayPath: [Object],
envName: 'AWS-env',
displayName: 'AWS-env',
envType: 'Conda',
version: [Object],
uri: [d]
},
id: '.jvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.-m#ipykernel_launcher'
}
}
error 13:26:44.731: Error in execution (get message for cell) [s [Error]: The kernel 'AWS-env (Python 3.8.15)' died. Click [here](https://aka.ms/vscodeJupyterKernelCrash) for more info. View Jupyter [log](command:jupyter.viewOutput) for further details.
at D.verifyKernelState (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2325307)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async x.executeCell (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2405345)
at async Promise.all (index 0)
at async x.handleExecution (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2401348)] {
category: 'unknown',
originalException: undefined,
kernelConnectionMetadata: f {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: 'c:\\Users\\SIG01\\.vscode\\extensions\\ms-toolsai.jupyter-2022.11.1003412109\\temp\\jupyter\\kernels\\pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752\\kernel.json',
interpreterPath: 'c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752',
argv: [Array],
language: 'python',
executable: 'python',
display_name: 'AWS-env',
metadata: [Object],
env: {}
},
interpreter: {
id: 'C:\\PROGRAMDATA\\ANACONDA3\\ENVS\\AWS-ENV\\PYTHON.EXE',
sysPrefix: 'C:\\ProgramData\\Anaconda3\\envs\\AWS-env',
envPath: [d],
displayPath: [Object],
envName: 'AWS-env',
displayName: 'AWS-env',
envType: 'Conda',
version: [Object],
uri: [d]
},
id: '.jvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.-m#ipykernel_launcher'
}
}
error 14:07:49.527: Error in execution [s [Error]: The kernel 'AWS-env (Python 3.8.15)' died. Click [here](https://aka.ms/vscodeJupyterKernelCrash) for more info. View Jupyter [log](command:jupyter.viewOutput) for further details.
at D.verifyKernelState (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2325307)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async x.executeCell (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2405345)
at async Promise.all (index 0)
at async x.handleExecution (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2401348)] {
category: 'unknown',
originalException: undefined,
kernelConnectionMetadata: f {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: 'c:\\Users\\SIG01\\.vscode\\extensions\\ms-toolsai.jupyter-2022.11.1003412109\\temp\\jupyter\\kernels\\pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752\\kernel.json',
interpreterPath: 'c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752',
argv: [Array],
language: 'python',
executable: 'python',
display_name: 'AWS-env',
metadata: [Object],
env: {}
},
interpreter: {
id: 'C:\\PROGRAMDATA\\ANACONDA3\\ENVS\\AWS-ENV\\PYTHON.EXE',
sysPrefix: 'C:\\ProgramData\\Anaconda3\\envs\\AWS-env',
envPath: [d],
displayPath: [Object],
envName: 'AWS-env',
displayName: 'AWS-env',
envType: 'Conda',
version: [Object],
uri: [d]
},
id: '.jvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.-m#ipykernel_launcher'
}
}
error 14:07:49.537: Error in execution (get message for cell) [s [Error]: The kernel 'AWS-env (Python 3.8.15)' died. Click [here](https://aka.ms/vscodeJupyterKernelCrash) for more info. View Jupyter [log](command:jupyter.viewOutput) for further details.
at D.verifyKernelState (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2325307)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async x.executeCell (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2405345)
at async Promise.all (index 0)
at async x.handleExecution (c:\Users\SIG01\.vscode\extensions\ms-toolsai.jupyter-2022.11.1003412109\out\extension.node.js:2:2401348)] {
category: 'unknown',
originalException: undefined,
kernelConnectionMetadata: f {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: 'c:\\Users\\SIG01\\.vscode\\extensions\\ms-toolsai.jupyter-2022.11.1003412109\\temp\\jupyter\\kernels\\pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752\\kernel.json',
interpreterPath: 'c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'pythonjvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752',
argv: [Array],
language: 'python',
executable: 'python',
display_name: 'AWS-env',
metadata: [Object],
env: {}
},
interpreter: {
id: 'C:\\PROGRAMDATA\\ANACONDA3\\ENVS\\AWS-ENV\\PYTHON.EXE',
sysPrefix: 'C:\\ProgramData\\Anaconda3\\envs\\AWS-env',
envPath: [d],
displayPath: [Object],
envName: 'AWS-env',
displayName: 'AWS-env',
envType: 'Conda',
version: [Object],
uri: [d]
},
id: '.jvsc74a57bd0ab17229d7ef8a2352d74e9197be096b048eb467d2bea9d39c6e4962fb2706752.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.c:\\ProgramData\\Anaconda3\\envs\\AWS-env\\python.exe.-m#ipykernel_launcher'
}
}
Is there any chance that someone can help me in telling me what to do in this case?
Contributor guide
Research direction
Start by reproducing the crash in the notebook at the footprint_mask(bldg_path, reference_im=img_path) call, using the reported Python 3.8.15 Anaconda environment. Inspect the Jupyter and kernel logs for a cause beyond the VS Code kernel-died message. Done means the call runs successfully or the incompatibility and supported environment are clearly identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- anaconda, jupyter-notebook, python, vscode
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100