I am unable to import papermill. Pasting error that I am getting. I am using JupyterHub + enterprise kernel gateway
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
Cell In[4], line 1
----> 1 import papermill
File /opt/conda/lib/python3.9/site-packages/papermill/__init__.py:4
1 from .version import version as __version__
3 from .exceptions import PapermillException, PapermillExecutionError
----> 4 from .execute import execute_notebook
5 from .inspection import inspect_notebook
File /opt/conda/lib/python3.9/site-packages/papermill/execute.py:9
7 from .exceptions import PapermillExecutionError
8 from .iorw import get_pretty_path, local_file_io_cwd, load_notebook_node, write_ipynb
----> 9 from .engines import papermill_engines
10 from .utils import chdir
11 from .parameterize import add_builtin_parameters, parameterize_notebook, parameterize_path
File /opt/conda/lib/python3.9/site-packages/papermill/engines.py:443
441 papermill_engines.register(None, NBClientEngine)
442 papermill_engines.register('nbclient', NBClientEngine)
--> 443 papermill_engines.register_entry_points()
File /opt/conda/lib/python3.9/site-packages/papermill/engines.py:38, in PapermillEngines.register_entry_points(self)
33 """Register entrypoints for an engine
34
35 Load handlers provided by other packages
36 """
37 for entrypoint in entrypoints.get_group_all("papermill.engine"):
---> 38 self.register(entrypoint.name, entrypoint.load())
File /opt/conda/lib/python3.9/site-packages/entrypoints.py:79, in EntryPoint.load(self)
76 def load(self):
77 """Load the object to which this entry point refers.
78 """
---> 79 mod = import_module(self.module_name)
80 obj = mod
81 if self.object_name:
File /opt/conda/lib/python3.9/importlib/__init__.py:127, in import_module(name, package)
125 break
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
File /opt/conda/lib/python3.9/site-packages/papermill_origami/engine.py:39
29 from origami.defs.rtu import (
30 AppendOutputEventSchema,
31 BulkCellStateMessage,
(...)
35 UpdateOutputCollectionEventSchema,
36 )
37 from papermill.engines import Engine, NotebookExecutionManager
---> 39 from .manager import NoteableKernelManager
40 from .util import flatten_dict, parse_noteable_file_id
42 logger = logging.getLogger(__name__)
File /opt/conda/lib/python3.9/site-packages/papermill_origami/manager.py:12
8 from origami.client import NoteableClient
9 from origami.defs.files import NotebookFile
---> 12 class NoteableKernelManager(KernelManagerABC):
13 """KernelManager for Noteable client interactions"""
15 def _requires_client_context(func):
File /opt/conda/lib/python3.9/site-packages/papermill_origami/manager.py:113, in NoteableKernelManager()
110 """Interrupts active execution on a live kernel"""
111 raise NotImplementedError("TODO")
--> 113 interrupt_kernel = run_sync(async_interrupt_kernel)
115 def signal_kernel(self, signum):
116 """Not Implemented: Kernel managers can normally forward signals to process based kernels"""
File /opt/conda/lib/python3.9/site-packages/jupyter_core/utils/__init__.py:147, in run_sync(coro)
133 """Wraps coroutine in a function that blocks until it has executed.
134
135 Parameters
(...)
143 Whatever the coroutine-function returns.
144 """
146 if not inspect.iscoroutinefunction(coro):
--> 147 raise AssertionError
149 def wrapped(*args, **kwargs):
150 name = threading.current_thread().name
AssertionError: