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
{{ message }}
Repository navigation
ModuleNotFoundError: No module named 'ipython_genutils' #102
Describe the bug
In a rare case, an error might happen due to ipython_genutils not properly installed. That is because nbmake did not require ipython_genutils nor jupyter explicitly. Others also get this behavior while using IPython ipython/ipython_genutils#3.
To Reproduce
I don't know exactly how to reproduce, but install nbmake seems not installing ipython_genutils
Expected behavior
Whenever someone using nbmake, we can assume that they are going to test IPython file. Then, isn't logical to make nbmake require at least jupyter?
Screenshots
Desktop (please complete the following information):
OS: Linux
GitHub action
If not installing jupyter by default is the expected behavior, please ignore and close this issue.
NBMAKE INTERNAL ERROR
Kernel died before replying to kernel_info
...
ImportError: cannot import name 'write_connection_file' from 'jupyter_client' (/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/jupyter_client/__init__.py)
After some digging, it seems that the bug might be from a cell containing !pip install SOMETHING==... that cause incompatibility of Jupyter. Solved using os.sytem() approach that detect the version used by the environment (thus, avoiding reinstallation that might cause a bug).
thanks for the follow up @yasirroni , think I'll leave this one open as a bug for now, given that we should be eliminating internal errors (in favour of something more helpful)
Activity
alex-remedios commentedon Mar 7, 2023
thanks for the report @yasirroni
I need to look a bit further but it's likely this is caused by a combination of pkg version.
See the source repo: https://github.com/ipython/ipython_genutils
It implies we shouldn't be depending on it, so let's try figure out how to resolve this issue without adding the dependency.
yasirroni commentedon Mar 7, 2023
On my use case, simply adding
jupyteras dependency solve the issue.yasirroni commentedon Mar 8, 2023
Another issue
See https://github.com/yasirroni/matpower-pip/actions/runs/4355686258/jobs/7627873484
yasirroni commentedon Mar 18, 2023
After some digging, it seems that the bug might be from a cell containing
!pip install SOMETHING==...that cause incompatibility of Jupyter. Solved using os.sytem() approach that detect the version used by the environment (thus, avoiding reinstallation that might cause a bug).alex-remedios commentedon Mar 20, 2023
thanks for the follow up @yasirroni , think I'll leave this one open as a bug for now, given that we should be eliminating internal errors (in favour of something more helpful)
yasirroni commentedon Mar 20, 2023
Sure. This kind of bug is pretty silent and challenging to solve! Hope you can catch this error and return a proper message for user.