Dear all,
I have a Python module [1] which depends on SageMath. The
documentation used to build fine but now I got an
error
Exception occurred:
File
"/opt/sage/local/lib/python2.7/site-packages/sage/misc/sageinspect.py",
line 2284, in sage_getsourcelines
raise err
TypeError: <module '__builtin__' (built-in)> is a built-in class
The full traceback is attached.
Any help appreciated.
Best
Vincent
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
# Sphinx version: 1.7.6
# Python version: 2.7.15 (CPython)
# Docutils version: 0.14
# Jinja2 version: 2.10
# Last messages:
# loading intersphinx inventory from http://docs.python.org/objects.inv...
# intersphinx inventory has moved: http://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv
# building [mo]: targets for 0 po files that are out of date
# building [html]: targets for 6 source files that are out of date
# updating environment:
# 6 added, 0 changed, 0 removed
# reading sources... [ 16%] database
# reading sources... [ 33%] index
# reading sources... [ 50%] interval_exchanges
# reading sources... [ 66%] origamis
# Loaded extensions:
# sphinx.ext.mathjax (1.7.6) from /opt/sage/local/lib/python2.7/site-packages/sphinx/ext/mathjax.pyc
# sphinx.ext.viewcode (1.7.6) from /opt/sage/local/lib/python2.7/site-packages/sphinx/ext/viewcode.pyc
# sphinx.ext.todo (1.7.6) from /opt/sage/local/lib/python2.7/site-packages/sphinx/ext/todo.pyc
# sphinx.ext.autodoc (1.7.6) from /opt/sage/local/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.pyc
# sphinx.ext.intersphinx (1.7.6) from /opt/sage/local/lib/python2.7/site-packages/sphinx/ext/intersphinx.pyc
# alabaster (0.7.12) from /opt/sage/local/lib/python2.7/site-packages/alabaster/__init__.pyc
Traceback (most recent call last):
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 304, in main
app.build(args.force_all, filenames)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/application.py", line 331, in build
self.builder.build_update()
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 342, in build_update
'out of date' % len(to_build))
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 355, in build
updated_docnames = set(self.env.update(self.config, self.srcdir, self.doctreedir))
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/environment/__init__.py", line 568, in update
self._read_serial(docnames, self.app)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/environment/__init__.py", line 587, in _read_serial
self.read_doc(docname, app)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/environment/__init__.py", line 662, in read_doc
doctree = read_doc(self.app, self, self.doc2path(docname))
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/io.py", line 302, in read_doc
pub.publish()
File "/opt/sage/local/lib/python2.7/site-packages/docutils/core.py", line 217, in publish
self.settings)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/readers/__init__.py", line 72, in read
self.parse()
File "/opt/sage/local/lib/python2.7/site-packages/docutils/readers/__init__.py", line 78, in parse
self.parser.parse(self.input, document)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/parsers.py", line 85, in parse
self.statemachine.run(inputstring, document, inliner=self.inliner)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 171, in run
input_source=document['source'])
File "/opt/sage/local/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run
context, state, transitions)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line
return method(match, context, next_state)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2753, in underline
self.section(title, source, style, lineno - 1, messages)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 327, in section
self.new_subsection(title, lineno, messages)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection
node=section_node, match_titles=True)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse
node=node, match_titles=match_titles)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 196, in run
results = StateMachineWS.run(self, input_lines, input_offset)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run
context, state, transitions)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line
return method(match, context, next_state)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2753, in underline
self.section(title, source, style, lineno - 1, messages)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 327, in section
self.new_subsection(title, lineno, messages)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection
node=section_node, match_titles=True)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse
node=node, match_titles=match_titles)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 196, in run
results = StateMachineWS.run(self, input_lines, input_offset)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run
context, state, transitions)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line
return method(match, context, next_state)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2326, in explicit_markup
nodelist, blank_finish = self.explicit_construct(match)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2338, in explicit_construct
return method(self, expmatch)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2081, in directive
directive_class, match, type_name, option_presets)
File "/opt/sage/local/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2130, in run_directive
result = directive_instance.run()
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/ext/autodoc/directive.py", line 133, in run
documenter.generate(more_content=self.content)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.py", line 799, in generate
self.document_members(all_members)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.py", line 720, in document_members
check_module=members_check_module and not isattr)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.py", line 1211, in generate
all_members=all_members)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.py", line 799, in generate
self.document_members(all_members)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.py", line 1200, in document_members
ModuleLevelDocumenter.document_members(self, all_members)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.py", line 687, in document_members
for (mname, member, isattr) in self.filter_members(members, want_all):
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/ext/autodoc/__init__.py", line 604, in filter_members
doc = getdoc(member)
File "/opt/sage/local/lib/python2.7/site-packages/sphinx/util/inspect.py", line 676, in getdoc
doc = object.__doc__
File "sage/docs/instancedoc.pyx", line 212, in sage.docs.instancedoc.InstanceDocDescriptor.__get__ (build/cythonized/sage/docs/instancedoc.c:1772)
return self.instancedoc(obj)
File "sage/misc/cachefunc.pyx", line 879, in sage.misc.cachefunc.CachedFunction._instancedoc_ (build/cythonized/sage/misc/cachefunc.c:4974)
sourcelines = sage_getsourcelines(f)
File "/opt/sage/local/lib/python2.7/site-packages/sage/misc/sageinspect.py", line 2283, in sage_getsourcelines
return sage_getsourcelines(obj.__class__)
File "/opt/sage/local/lib/python2.7/site-packages/sage/misc/sageinspect.py", line 2281, in sage_getsourcelines
return sage_getsourcelines(B)
File "/opt/sage/local/lib/python2.7/site-packages/sage/misc/sageinspect.py", line 2284, in sage_getsourcelines
raise err
TypeError: <module '__builtin__' (built-in)> is a built-in class