-
Notifications
You must be signed in to change notification settings - Fork 278
Failure to start kernel due to failures in importing modules
Don Jayamanne edited this page May 30, 2022
·
6 revisions
Python kernels can fail to start if some modules such as ptyprocess
ipykernel
, pyzmq
, etc fail to load due to improper installation, or upgrading one module and not the related dependencies or the like.
Sometimes, user code such as os.py
or random.py
could also prevent the kernel from starting.
- Please consider installing the modules that could not be imported.
- If they have already been installed, its possible it hasn't been installed correctly, hence try the reinstall option as follows:
# if using a non-conda environment
python -m pip install <xyz> -U --force-reinstall
# If using a conda environment
conda install --name <environment name> <xyz> --update-deps --force-reinstall
- If none of these work, please ensure you do not have any user code that's overriding any built in modules.
- See here for more info Failure to start Kernel due to built in modules being overridden by user code
- Contribution
- Source Code Organization
- Coding Standards
- Profiling
- Coding Guidelines
- Component Governance
- Writing tests
- Kernels
- Intellisense
- Debugging
- IPyWidgets
- Extensibility
- Module Dependencies
- Errors thrown
- Jupyter API
- Variable fetching
- Import / Export
- React Webviews: Variable Viewer, Data Viewer, and Plot Viewer
- FAQ
- Kernel Crashes
- Jupyter issues in the Python Interactive Window or Notebook Editor
- Finding the code that is causing high CPU load in production
- How to install extensions from VSIX when using Remote VS Code
- How to connect to a jupyter server for running code in vscode.dev
- Jupyter Kernels and the Jupyter Extension