cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
84 stars 26 forks source link

9.5.beta1 vanilla docs will not build! (FYI) #653

Closed strogdon closed 3 years ago

strogdon commented 3 years ago

From dochtml.log:

cd /local/sage-git/sage && ./sage --docbuild --no-pdf-links reference/repl inventory --no-prune-empty-dirs
Warning: Could not import sage.repl.ipython_kernel.kernel No module named 'debugpy'
[repl     ] building [inventory]: targets for 36 source files that are out of date
[repl     ] updating environment: [new config] 36 added, 0 changed, 0 removed
[repl     ] WARNING: autodoc: failed to import module 'kernel' from module 'sage.repl.ipython_kernel'; the following exception was raised:
[repl     ] No module named 'debugpy'
[repl     ] The inventory files are in local/share/doc/sage/inventory/en/reference/repl.
Error building the documentation.

Vanilla now uses ipykernel-6.3.1 and I believe that is the issue:

sage: from sage.repl.ipython_kernel import kernel
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-ae6dbb0420a7> in <module>
----> 1 from sage.repl.ipython_kernel import kernel

/local/sage-git/sage/local/lib/python3.9/site-packages/sage/repl/ipython_kernel/kernel.py in <module>
     17 
     18 import sys
---> 19 from ipykernel.ipkernel import IPythonKernel
     20 from ipykernel.zmqshell import ZMQInteractiveShell
     21 from traitlets import Type

/local/sage-git/sage/local/lib/python3.9/site-packages/ipykernel/ipkernel.py in <module>
     18 from .zmqshell import ZMQInteractiveShell
     19 from .eventloops import _use_appnope
---> 20 from .debugger import Debugger
     21 from .compiler import XCachingCompiler
     22 

/local/sage-git/sage/local/lib/python3.9/site-packages/ipykernel/debugger.py in <module>
     15 
     16 # This import is required to have the next ones working...
---> 17 from debugpy.server import api
     18 from _pydevd_bundle import pydevd_frame_utils
     19 from _pydevd_bundle.pydevd_suspended_frames import SuspendedFramesManager, _FramesTracker

ModuleNotFoundError: No module named 'debugpy'

I wonder how this slipped through? 9.5.beta1 has not been formally released on sage-release.

kiwifb commented 3 years ago

I have seen tickets mentioning it. I didn't notice anything when I did a build just before the release on the vbraun branch and I don't have debugpy installed. Weird.

I was more worried you would stumble on the issue of unmerging sage first to install sage_setup. Fortunately this won't happen on a normal release.

strogdon commented 3 years ago

I usually unmerge before merging. Things usually go more smoothly that way.

strogdon commented 3 years ago

The debugpy pkg is provided with 9.5.beta1 but not built. Apparently a dependency is needed to trigger the build. I didn't try a distclean to see if that fixes things.

strogdon commented 3 years ago

This is fixed by https://trac.sagemath.org/ticket/32493

kiwifb commented 3 years ago

Oh right. I don't think I suffered from it because I am on stable ipython stack, so I have a lower version of ipykernel (I am on 5.5.4 and not 6.2.0). It seems to work without needing the upgrade which will be coming to the main tree soon I think.

strogdon commented 3 years ago

6.2.0 works here without debugpy. This was only for reference anyway.