Edgewall Software
Modify

Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#13565 closed defect (fixed)

Generating apidoc is failing on trunk

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 1.5.4
Component: project Version: 1.5.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:

Fixed generating apidoc with Sphinx 5 and adapt to Python 3.

API Changes:
Internal Changes:

Description

Running Sphinx v5.3.0
making output directory... done
loading intersphinx inventory from https://docs.python.org/2.7/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 96 source files that are out of date
updating environment: [new config] 96 added, 0 changed, 0 removed
reading sources... [100%] todo
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser.get:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser.get:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser.get:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser.get:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/config.py:docstring of trac.config.UnicodeConfigParser:1: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/src/trac/util/html.py:docstring of trac.util.html.to_fragment:1: WARNING: duplicate object description of trac.util.html.to_fragment, other instance in api/trac_util_html, use :noindex: for one of them
/home/src/trac/util/presentation.py:docstring of trac.util.presentation.istext:1: WARNING: duplicate object description of trac.util.presentation.istext, other instance in api/trac_util_presentation, use :noindex: for one of them
/home/src/trac/util/text.py:docstring of trac.util.text.getpreferredencoding:1: WARNING: duplicate object description of trac.util.text.getpreferredencoding, other instance in api/trac_util_text, use :noindex: for one of them
/home/src/trac/util/text.py:docstring of trac.util.text.strip_line_ws:1: WARNING: duplicate object description of trac.util.text.strip_line_ws, other instance in api/trac_util_text, use :noindex: for one of them
/home/src/trac/util/text.py:docstring of trac.util.text.cleandoc:1: WARNING: duplicate object description of trac.util.text.cleandoc, other instance in api/trac_util_text, use :noindex: for one of them
/home/src/trac/util/text.py:docstring of trac.util.text.sub_vars:1: WARNING: duplicate object description of trac.util.text.sub_vars, other instance in api/trac_util_text, use :noindex: for one of them
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 51%] api/trac_util_presentation
Exception occurred:
  File "/venv/py311/lib/python3.11/site-packages/sphinx/highlighting.py", line 130, in get_lexer
    lexer = lexer_classes[lang](**opts)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'DjangoLexer' object is not callable
The full traceback has been saved in /dev/shm/sphinx-err-k52psmo5.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [Makefile:646: apidoc-html] Error 2

Attachments (0)

Change History (2)

comment:1 by Jun Omae, 16 months ago

Milestone: 1.5.51.5.4
Release Notes: modified (diff)
Resolution: fixed
Status: newclosed

Fixed in [17676].

comment:2 by Ryan J Ollos, 16 months ago

Owner: set to Jun Omae

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.