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

Issue with gammapy jupyter commands with jupiter_core v4.11 #4030

Closed
registerrier opened this issue Jul 20, 2022 · 2 comments
Closed

Issue with gammapy jupyter commands with jupiter_core v4.11 #4030

registerrier opened this issue Jul 20, 2022 · 2 comments
Milestone

Comments

@registerrier
Copy link
Contributor

registerrier commented Jul 20, 2022

The notebook CI build is broken recently. This is likely caused by a recent version of jupyter_core package (v4.11).

A fresh install of the environment-dev will break gammapy jupyter e.g.:

gammapy jupyter --src docs/tutorials/api/makers.ipynb test
INFO:gammapy.scripts.jupyter:   ... EXECUTING: makers.ipynb in docs/tutorials/api
/Users/terrier/Code/anaconda3/envs/gammapy-dev/bin/python3.8: No module named jupyter
ERROR:gammapy.scripts.jupyter:Error executing notebook: makers.ipynb in docs/tutorials/api
INFO:gammapy.scripts.jupyter:   ... FAILED makers.ipynb
INFO:gammapy.scripts.jupyter:

And in python:

In [1]: import jupyter_core

In [2]: jupyter_core.__version__
Out[2]: '4.11.0'

In [3]: import jupyter
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 import jupyter

ModuleNotFoundError: No module named 'jupyter'

Reverting to jupyter_core v4.10 solves the issue.

@registerrier
Copy link
Contributor Author

This is a known issue jupyter/jupyter_core#275 and has been solved in v4.11.1. Our CI is now working fine.
Closing now.

@adonath
Copy link
Member

adonath commented Jul 21, 2022

Thanks for investigating!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants