You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[NbConvertApp] Converting notebook Untitled.ipynb to html
Traceback (most recent call last):
File "/Users/mmarchetti/env/lib/python3.8/site-packages/ipykernel/zmqshell.py", line 50, in <module>
from ipyparallel.engine.datapub import ZMQDataPublisher
ModuleNotFoundError: No module named 'ipyparallel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/mmarchetti/env/lib/python3.8/site-packages/ipykernel/datapub.py", line 18, in <module>
from ipyparallel.serialize import serialize_object
ModuleNotFoundError: No module named 'ipyparallel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/mmarchetti/env/lib/python3.8/site-packages/ipykernel/serialize.py", line 18, in <module>
from ipyparallel.serialize.canning import (
ModuleNotFoundError: No module named 'ipyparallel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/mmarchetti/opt/miniconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/mmarchetti/opt/miniconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "/Users/mmarchetti/env/lib/python3.8/site-packages/ipykernel/kernelapp.py", line 42, in <module>
from .ipkernel import IPythonKernel
File "/Users/mmarchetti/env/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 18, in <module>
from .zmqshell import ZMQInteractiveShell
File "/Users/mmarchetti/env/lib/python3.8/site-packages/ipykernel/zmqshell.py", line 53, in <module>
from ipykernel.datapub import ZMQDataPublisher
File "/Users/mmarchetti/env/lib/python3.8/site-packages/ipykernel/datapub.py", line 21, in <module>
from ipykernel.serialize import serialize_object
File "/Users/mmarchetti/env/lib/python3.8/site-packages/ipykernel/serialize.py", line 25, in <module>
from ipykernel.pickleutil import (
File "/Users/mmarchetti/env/lib/python3.8/site-packages/ipykernel/pickleutil.py", line 21, in <module>
from ipyparallel.serialize import codeutil
ModuleNotFoundError: No module named 'ipyparallel'
Traceback (most recent call last):
File "/Users/mmarchetti/env/bin/jupyter-nbconvert", line 8, in <module>
sys.exit(main())
File "/Users/mmarchetti/env/lib/python3.8/site-packages/jupyter_core/application.py", line 254, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/traitlets/config/application.py", line 845, in launch_instance
app.start()
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 346, in start
self.convert_notebooks()
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 518, in convert_notebooks
self.convert_single_notebook(notebook_filename)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 483, in convert_single_notebook
output, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 412, in export_single_notebook
output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 181, in from_filename
return self.from_file(f, resources=resources, **kw)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 199, in from_file
return self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/exporters/html.py", line 129, in from_notebook_node
return super().from_notebook_node(nb, resources, **kw)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 374, in from_notebook_node
nb_copy, resources = super().from_notebook_node(nb, resources, **kw)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 143, in from_notebook_node
nb_copy, resources = self._preprocess(nb_copy, resources)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 318, in _preprocess
nbc, resc = preprocessor(nbc, resc)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/preprocessors/base.py", line 47, in __call__
return self.preprocess(nb, resources)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbconvert/preprocessors/execute.py", line 80, in preprocess
with self.setup_kernel():
File "/Users/mmarchetti/opt/miniconda3/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbclient/client.py", line 452, in setup_kernel
self.start_new_kernel_client()
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbclient/util.py", line 74, in wrapped
return just_run(coro(*args, **kwargs))
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbclient/util.py", line 53, in just_run
return loop.run_until_complete(coro)
File "/Users/mmarchetti/opt/miniconda3/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbclient/client.py", line 423, in async_start_new_kernel_client
await ensure_async(self.kc.wait_for_ready(timeout=self.startup_timeout))
File "/Users/mmarchetti/env/lib/python3.8/site-packages/nbclient/util.py", line 85, in ensure_async
result = await obj
File "/Users/mmarchetti/env/lib/python3.8/site-packages/jupyter_client/client.py", line 180, in _async_wait_for_ready
raise RuntimeError("Kernel died before replying to kernel_info")
RuntimeError: Kernel died before replying to kernel_info
Can confirm this on Windows as well. It comes down to pickleutil.py where in 5.5.5 a missing ipyparallel was handled:
try:
# available since ipyparallel 5.1.1fromipyparallel.serializeimportcodeutilexceptImportError:
# Deprecated since ipykernel 4.3.1fromipykernelimportcodeutil
and in 6.0.0rc1:
# This registers a hook when it's importedfromipyparallel.serializeimportcodeutil
So with this depreciation the ipyparallel dependency is a bit stronger and may require an 'upgrade' from optional to required depending on how the extra_requires is approached here.
It seems like ipykernel is dependent on ipyparallel, but it is not listed as a package dependency.
Running on MacOS 10.14.6
Python 3.8.5
(please let me know if more information is needed)
nbconvert fails with:
The output of
pip freeze
is:The text was updated successfully, but these errors were encountered: