Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] macos_regular job fails: 'nbconvert --execute requires the jupyter_client package #5569

Closed
jameslamb opened this issue Nov 3, 2022 · 3 comments

Comments

@jameslamb
Copy link
Collaborator

Description

I've seen the following error on every run of the macos_regular Azure DevOps CI job in the last 12 hours.

[NbConvertApp] Converting notebook interactive_plot_example.ipynb to notebook
Traceback (most recent call last):
File "/Users/runner/runners/2.211.1/miniforge/envs/test-env/lib/python3.7/site-packages/traitlets/traitlets.py", line 645, in get
value = obj._trait_values[self.name]
KeyError: 'kernel_manager_class'

ImportError: cannot import name 'secure_write' from 'jupyter_core.paths' (/Users/runner/runners/2.211.1/miniforge/envs/test-env/lib/python3.7/site-packages/jupyter_core/paths.py)

ImportError: nbconvert --execute requires the jupyter_client package: pip install jupyter_client

Reproducible example

Example build from #5533: https://dev.azure.com/lightgbm-ci/lightgbm-ci/_build/results?buildId=13799&view=logs&j=30b4943b-8000-5673-e2d8-b78860d98666&t=323d22c9-4fd4-5f79-2982-d153c24bec2f

Additional Comments

I suspect that this might be related to some combination of the following:

@jameslamb
Copy link
Collaborator Author

Yeah I can see on that build that we're getting very old versions of some notebook dependencies.

nbconvert-5.6.1            |     pyhd8ed1ab_2         373 KB  conda-forge
nbformat-5.7.0             |     pyhd8ed1ab_0         106 KB  conda-forge
notebook-5.7.11            |   py37hf985489_0         7.9 MB  conda-forge

For example, nbconvert 5.6.1 is from October 2019 (release history).

@jameslamb
Copy link
Collaborator Author

Updating to Python 3.9 in #5570 resulted in conda-forge returning the newest verisons of notebook, ipywidgets, and their dependencies. That resolved this issue.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot removed the blocking label Aug 19, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant