question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue running with Pandas image "kernel_manager_class’"

See original GitHub issue

While running my pipeline under pandas image. It says KeyError: ‘kernel_manager_class’. Could someone please help me? Here is the error message

`Parsing Arguments.....
Get file Part 1 - Data Cleaning-404fc2a7-8fde-4e45-9652-55bcd230916b.tar.gz from bucket yil532
TAR Archive pulled from Object Storage.
Unpacking........
Unpacking Complete.
Executing notebook through Papermill: Part 1 - Data Cleaning.ipynb ==> Part 1 - Data Cleaning_output.ipynb

Executing:   0%|          | 0/47 [00:00<?, ?cell/s]
Executing:   0%|          | 0/47 [00:00<?, ?cell/s]
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/traitlets/traitlets.py", line 528, in get
    value = obj._trait_values[self.name]
KeyError: 'kernel_manager_class'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "bootstrapper.py", line 145, in <module>
    kernel_name="python3"
  File "/usr/local/lib/python3.7/site-packages/papermill/execute.py", line 106, in execute_notebook
    **engine_kwargs
  File "/usr/local/lib/python3.7/site-packages/papermill/engines.py", line 49, in execute_notebook_with_engine
    return self.get_engine(engine_name).execute_notebook(nb, kernel_name, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/papermill/engines.py", line 343, in execute_notebook
    cls.execute_managed_notebook(nb_man, kernel_name, log_output=log_output, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/papermill/engines.py", line 402, in execute_managed_notebook
    return PapermillNotebookClient(nb_man, **final_kwargs).execute()
  File "/usr/local/lib/python3.7/site-packages/papermill/clientwrap.py", line 36, in execute
    with self.setup_kernel(**kwargs):
  File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.7/site-packages/nbclient/client.py", line 401, in setup_kernel
    self.start_kernel_manager()
  File "/usr/local/lib/python3.7/site-packages/nbclient/client.py", line 328, in start_kernel_manager
    self.km = self.kernel_manager_class(kernel_name=self.kernel_name, config=self.config)
  File "/usr/local/lib/python3.7/site-packages/traitlets/traitlets.py", line 556, in __get__
    return self.get(obj, cls)
  File "/usr/local/lib/python3.7/site-packages/traitlets/traitlets.py", line 535, in get
    value = self._validate(obj, dynamic_default())
  File "/usr/local/lib/python3.7/site-packages/nbclient/client.py", line 240, in _kernel_manager_class_default
    from jupyter_client import AsyncKernelManager
ImportError: cannot import name 'AsyncKernelManager' from 'jupyter_client' (/usr/local/lib/python3.7/site-packages/jupyter_client/__init__.py)`

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lresendecommented, Apr 27, 2020

Thanks @kjdoyle and @yil532. I leave this open for a little while to remind us that we need to help fix the original issue on the pandas community image or move to a recent one if it’s already fixed.

0reactions
lresendecommented, May 9, 2020

I started having a similar issue trying to bring up anaconda image and the source of the problem is that our kfp bootstrap script needs to update the jupyter client dependency. I will fix that on kfp-notebook.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kernel Crashes with · Issue #9741 · microsoft/vscode-jupyter
After running a cell that raised a a Python error while constructing a Keras model, re-running the cell crashes the kernel and has...
Read more >
jupyter notebook's kernel keeps dying when I run the code
It looks like from the error log that there's some OpenMP library issues, I would try reinstalling Tensorflow to the latest stable version....
Read more >
Change an Image or a Kernel - Amazon SageMaker
Choose the image/kernel name in the notebook menu. · From the drop-down list, choose an image and/or a kernel. · Choose Select. ·...
Read more >
SettingwithCopyWarning: How to Fix This Warning in Pandas
Common issue #1: Chained assignment. Pandas generates the warning when it detects something called chained assignment. Let's define a few terms ...
Read more >
Interactive Controls in Jupyter Notebooks | by Will Koehrsen
This library allows us to turn Jupyter Notebooks from static documents into interactive dashboards, perfect for exploring and visualizing data.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found