jupyter_client: Release 6.1.13 nbconvert failing with `TypeError: 'coroutine' object is not subscriptable`
We have a CI build that runs this notebook:
It started failing this morning with this error:
[NbConvertApp] Converting notebook /tmp/qiskit-iqx-tutorials/qiskit/tutorials/circuits/1_getting_started_with_qiskit.ipynb to html
[NbConvertApp] Executing notebook with kernel: python3
Traceback (most recent call last):
File "/opt/conda/bin/jupyter-nbconvert", line 11, in <module>
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/jupyter_core/application.py", line 254, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/traitlets/config/application.py", line 837, in launch_instance
app.start()
File "/opt/conda/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 340, in start
self.convert_notebooks()
File "/opt/conda/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 510, in convert_notebooks
self.convert_single_notebook(notebook_filename)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 481, in convert_single_notebook
output, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 410, in export_single_notebook
output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 179, in from_filename
return self.from_file(f, resources=resources, **kw)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 197, in from_file
return self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/exporters/html.py", line 95, in from_notebook_node
return super(HTMLExporter, self).from_notebook_node(nb, resources, **kw)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/exporters/templateexporter.py", line 307, in from_notebook_node
nb_copy, resources = super(TemplateExporter, self).from_notebook_node(nb, resources, **kw)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 139, in from_notebook_node
nb_copy, resources = self._preprocess(nb_copy, resources)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/exporters/exporter.py", line 316, in _preprocess
nbc, resc = preprocessor(nbc, resc)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/preprocessors/base.py", line 47, in __call__
return self.preprocess(nb, resources)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/preprocessors/execute.py", line 405, in preprocess
nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/preprocessors/base.py", line 69, in preprocess
nb.cells[index], resources = self.preprocess_cell(cell, resources, index)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/preprocessors/execute.py", line 438, in preprocess_cell
reply, outputs = self.run_cell(cell, cell_index, store_history)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/preprocessors/execute.py", line 578, in run_cell
exec_reply = self._poll_for_reply(parent_msg_id, cell, timeout)
File "/opt/conda/lib/python3.8/site-packages/nbconvert/preprocessors/execute.py", line 479, in _poll_for_reply
if msg['parent_header'].get('msg_id') == msg_id:
TypeError: 'coroutine' object is not subscriptable
sys:1: RuntimeWarning: coroutine 'ZMQSocketChannel.get_msg' was never awaited
The only difference in the package lists was jupyter-client 6.1.13 (note that nbconvert is pinned to 5.6.1 in our case).
I don’t know how all of this is related, but was wondering if #623 might be causing some issue.
I have excluded the jupyter-client 6.1.13 version from our build and things are working again. My concern is if this comes back in the next release (6.2?).
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 13
- Comments: 30 (11 by maintainers)
Commits related to this issue
- Fix documentation to reduce warnings (#571) Fix version of jupyter-client, should be removed when the problem with the version 1.6.2 is fixed upstream. https://github.com/jupyter/jupyter_client/is... — committed to BlueBrain/nmodl by alkino 3 years ago
- [BEAM-11045] Avoid broken deps 1. A new release: jupyter-client 6.1.13 breaks notebooks when getting messages. 2. This is caught by screen diff integration tests of interactive beam. 3. The issue ... — committed to KevinGG/beam by deleted user 3 years ago
- jupyter-client is already a depends of jupyter We no more need to fix the version because the wrong package (6.1.13) has been yanked in PyPi https://github.com/jupyter/jupyter_client/issues/637 — committed to BlueBrain/nmodl by alkino 3 years ago
- jupyter-client is already a depends of jupyter (#576) * We no more need to fix the version because the wrong package (6.1.13) has been yanked in PyPi * https://github.com/jupyter/jupyter_client/i... — committed to BlueBrain/nmodl by alkino 3 years ago
- Test nbconvert 5.6.1 with jupyter-client 6.2.0 Related #1549 Related jupyter/jupyter_client/issues/637 — committed to mriedem/nbconvert by mriedem 3 years ago
- try suggestion in https://github.com/jupyter/jupyter_client/issues/637#issuecomment-902149763 — committed to BlueBrain/nmodl by pramodk 3 years ago
- Use jupyter-client<7 due to issue with nbconvert (#722) try suggestion in https://github.com/jupyter/jupyter_client/issues/637#issuecomment-902149763 — committed to BlueBrain/nmodl by olupton 3 years ago
- Fix publish site in cron (and probably deploy) GHA (#671) Summary: 2 things were broken. 1) Git was not initializing to branch `main`, so `git push -f https://github.com/facebook/Ax main:gh-pages` wa... — committed to facebook/Ax by deleted user 3 years ago
- ci: fix notebook tests see https://github.com/jupyter/jupyter_client/issues/637 — committed to ing-bank/popmon by deleted user 3 years ago
- 💚 Fix python dependencies for CI pinning nbconvert with a particular version that has the templates jupyter/nbgrader#1373 requires also pin jupyter-client to an earlier version jupyter/jupyter_clie... — committed to UCL-RITS/doctoral-programming-intro by dpshelio 3 years ago
- backend: Update jputils requirements version ranges Restrict 'jupyter-client' version to be earlier than 7 to workaround upstream discrepancies. Refs jupyter/jupyter_client#637 Signed-off-by: Ilias... — committed to arrikto/kale by elikatsis 3 years ago
- backend: Update jputils requirements version ranges Restrict 'jupyter-client' version to be earlier than 7 to workaround upstream discrepancies. Refs jupyter/jupyter_client#637 Signed-off-by: Ilias... — committed to arrikto/kale by elikatsis 3 years ago
- backend: Update jputils requirements version ranges Restrict 'jupyter-client' version to be earlier than 7 to workaround upstream discrepancies. Refs jupyter/jupyter_client#637 Signed-off-by: Ilias... — committed to kubeflow-kale/kale by elikatsis 3 years ago
- :pushpin: (docker) change jupyter-client to 6.1.12 as it has error in autograding with version 7.0.2. The discussion about the error is in https://github.com/jupyter/jupyter_client/issues/637 — committed to titlethanason/xqueue_fastapi by titlethanason 3 years ago
- [SLU00] Fix sample requirements See more in https://github.com/jupyter/jupyter_client/issues/637. Seems version jupyter_client 6.1.13 which was yanked is causing issues — committed to LDSSA/batch5-students by CatarinaSilva 3 years ago
- Bump nbconvert version in tests to fix some issues Refer to this issue for more details: https://github.com/jupyter/jupyter_client/issues/637 — committed to AnesBenmerzoug/kyle by deleted user 2 years ago
- Bump nbconvert version in tests to fix some issues Refer to this issue for more details: https://github.com/jupyter/jupyter_client/issues/637 — committed to aai-institute/kyle by deleted user 2 years ago
This issue appears to have cropped up again with
jupyter-client
7.0.0 released a couple hours ago: https://pypi.org/project/jupyter-client/#historyJust wanted to confirm that https://github.com/jupyter/jupyter_console/pull/244 indeed fixed my problem. Thanks, @davidbrochart !
@davidbrochart I just merged the PR – though I need ping someone with release privilages to add me or run a patch release for the repo. I’ll check if I can get that added for this week so we can unblock it.
Recreated here jupyter/nbconvert/pull/1550 with jupyter-client 6.2.0 and nbconvert 5.6.1:
https://travis-ci.org/github/jupyter/nbconvert/jobs/766808690#L1370
This PR should fix it: https://github.com/jupyter/jupyter_console/pull/244 But I don’t have the rights to merge it.
Both releases 6.1.13 and 6.2.0 have been pulled, we are working towards a 7.0.0 release, see #642.
Cool. Note that the performance slowdown issue there is because we’re using object storage with s3fs to back our user notebook pods rather than PVCs (with zero-to-jupyterhub-k8s). The entrypoint import times can get slow with s3fs.