takluyver / jupyter_kernel_mgmt

Experimental new kernel management framework for Jupyter
https://jupyter-kernel-mgmt.readthedocs.io/en/latest/
Other
15 stars 8 forks source link

jupyter_kernel_mgmt.discovery main returns Error #27

Closed echarles closed 5 years ago

echarles commented 5 years ago

python -m jupyter_kernel_mgmt.discovery returns the following stacktrace

  File "/opt/datalayer/opt/miniconda3/envs/datalayer/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/datalayer/opt/miniconda3/envs/datalayer/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/echar4/datalayer/repos/jupyter-kernel-mgmt/jupyter_kernel_mgmt/discovery.py", line 204, in <module>
    main()
  File "/Users/echar4/datalayer/repos/jupyter-kernel-mgmt/jupyter_kernel_mgmt/discovery.py", line 198, in main
    found_kernels = run_sync(kf.find_kernels())
  File "/Users/echar4/datalayer/repos/jupyter-kernel-mgmt/jupyter_kernel_mgmt/util.py", line 18, in run_sync
    return asyncio.get_event_loop().run_until_complete(coro_method)
  File "/opt/datalayer/opt/miniconda3/envs/datalayer/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "/Users/echar4/datalayer/repos/jupyter-kernel-mgmt/jupyter_kernel_mgmt/discovery.py", line 181, in find_kernels
    yield kernel_type, attributes
RuntimeError: Task got bad yield: ('pyimport/kernel', {'language_info': {'name': 'python', 'version': '3.7.3', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'display_name': 'Python 3', 'argv': ['/opt/datalayer/opt/miniconda3/envs/datalayer/bin/python', '-m', 'ipykernel_launcher', '-f', '{connection_file}'], 'resource_dir': '/opt/datalayer/opt/miniconda3/envs/datalayer/lib/python3.7/site-packages/ipykernel/resources'})