Skip to content
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

Dead kernel in jupyter notebook after installing ArcGIS Pro 2.2 #1

Closed
esturdivant-usgs opened this issue Dec 26, 2018 · 1 comment
Closed

Comments

@esturdivant-usgs
Copy link
Owner

I tried running the notebook. The kernel tried to connect (message: "Connecting...") but it doesn't appear to succeed because the next message says the kernel has died and it will attempt to restart. The restart fails, producing this message "The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened." The log in the console includes "Kernel deleted before session."

[W 12:36:07.896 NotebookApp] Notebook geomorph-working-files/extractor_ebf10.ipynb is not trusted
[I 12:36:08.993 NotebookApp] Kernel started: 0bf96c48-69ca-4810-8154-4f5fc159af49
Traceback (most recent call last):
  File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
    from .connect import *
  File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\ipykernel\connect.py", line 13, in <module>
    from IPython.core.profiledir import ProfileDir
  File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\IPython\__init__.py", line 55, in <module>
    from .terminal.embed import embed
  File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\IPython\terminal\embed.py", line 16, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\IPython\terminal\interactiveshell.py", line 22, in <module>
    from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application'
@esturdivant-usgs
Copy link
Owner Author

This solution worked: jupyter/jupyter_console#158

In arcgispro-py3, pip install prompt-toolkit==1.0.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant