With 9.2.beta13, I can build the documentation of package slabbe with no 
problem. My __init__.py file contains this:

# For sphinx to work, we first need to import the sage library
from sage.all_cmdline import *

And I make doc like this (with calls the sphinx makefile):
cd docs && sage -sh -c "make html"



On Friday, September 25, 2020 at 7:10:18 PM UTC+2 vdelecroix wrote:

> It appears that having the line
>
> from sage.all import *
>
> breaks sphinx. I don't know why, but removing them
> get the documentation compiled.
>
> Vincent
>
> Le 25/09/2020 à 18:42, Vincent Delecroix a écrit :
> > Dear all,
> > 
> > I used to have sphinx documentation in many Python libraries that
> > depends on SageMath (such as [admcycles], [surface_dynamics]).
> > It appears that in none of them I can build the documentation
> > properly anymore (with the Sage compiled from source or downloaded
> > from the tarball). The minimal example is [cvolume] where the failure
> > is described in the pull request
> > 
> >     https://github.com/eduryev/cvolume/pull/1
> > 
> > and where `make html` ends with
> > 
> > ```
> > Exception occurred:
> >   File 
> > "/opt/sage/local/lib/python3.8/site-packages/sage/repl/user_globals.py", 
> > line 82, in _check
> >     raise RuntimeError(
> > RuntimeError: the user-space globals dictionary has not been 
> > initialized. Use initialize_globals() or set_globals() or use a 
> > different function which doesn't need these globals
> > ```
> > 
> > Any help appreciated!
> > 
> > [cvolume] https://github.com/eduryev/cvolume
> > [admcycles] https://gitlab.com/jo314schmitt/admcycles
> > [surface_dynamics] https://gitlab.com/videlec/surface_dynamics
> > 
> > Best
> > Vincent
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/76edf02b-2b8e-49c4-a4b3-b2174d331b7fn%40googlegroups.com.

Reply via email to