ipykernel: 6.0.0: `python -m ipykernel install` fails on missing `debugpy`
Issue is that there are some issues with debugpy
like
https://github.com/microsoft/debugpy/issues/652
https://github.com/microsoft/debugpy/issues/595
+ /usr/bin/install build/sphinx/man/python-ipykernel.3 -Dt /home/tkloczko/rpmbuild/BUILDROOT/python-ipykernel-6.0.0-2.fc35.x86_64/usr/share/man/man3
+ /usr/bin/python3 -m ipykernel install --prefix /home/tkloczko/rpmbuild/BUILDROOT/python-ipykernel-6.0.0-2.fc35.x86_64/usr
Traceback (most recent call last):
File "/usr/lib64/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib64/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/tkloczko/rpmbuild/BUILD/ipykernel-6.0.0/ipykernel/__main__.py", line 2, in <module>
from ipykernel import kernelapp as app
File "/home/tkloczko/rpmbuild/BUILD/ipykernel-6.0.0/ipykernel/kernelapp.py", line 42, in <module>
from .ipkernel import IPythonKernel
File "/home/tkloczko/rpmbuild/BUILD/ipykernel-6.0.0/ipykernel/ipkernel.py", line 20, in <module>
from .debugger import Debugger
File "/home/tkloczko/rpmbuild/BUILD/ipykernel-6.0.0/ipykernel/debugger.py", line 14, in <module>
import debugpy
ModuleNotFoundError: No module named 'debugpy'
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (4 by maintainers)
Well using new dependencies is our rights, we are the developers of the libraries, and we now have dependencies on
debugpy
,importlib-metadata<4
for python version lower than 3.8 andmatplotlib-inline
. These new dependencies are one of the reasons we bumped the version number to 6.0.0, it is a major incompatible new version.Debugpy work on 3.8
You seem to be the only one that find debugpy has some “serious issues”, from what I can tell this is because you are trying to byte-compile ahead of time files that you should not. Then, exclude those files.
If you want to request that we make debugpy an optional dependency, please open another issue. As far what it requested in this bug report, this is a non-issue and work as expected.
I agree with @bnavigator that @kloczek has some issues when installing debugpy in their build env and that has nothing to do with an ipykernel bug (hence this issue should be closed).
@kloczek, as you can see here, for instance, ipykernel is being tested on Python 3.7 to 3.9 without problems.
Still
debugpy
is required on pytest execution.BTW … please have look on that DeprecationWarning.