Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not all arguments converted during string formatting in extlinks #48

Open
papoteur-mga opened this issue Feb 25, 2023 · 7 comments
Open
Milestone

Comments

@papoteur-mga
Copy link

Trying to build the documentation of python-vine, I get this error:

# Platform:         linux; (Linux-5.15.88-desktop-1.mga8-x86_64-with-glibc2.36)
# Sphinx version:   6.1.3
# Python version:   3.10.9 (CPython)
# Docutils version: 0.19
# Jinja2 version:   3.0.3
# Pygments version: 2.13.0

# Last messages:
#   loading intersphinx inventory from https://docs.python.org/dev/objects.inv...
#   loading intersphinx inventory from https://www.sphinx-doc.org/en/stable/objects.inv...
#   building [mo]: targets for 0 po files that are out of date
#   writing output...
#   
#   building [html]: targets for 8 source files that are out of date
#   updating environment:
#   [new config]
#   8 added, 0 changed, 0 removed
#   reading sources... [ 12%] changelog

# Loaded extensions:
#   sphinx.ext.mathjax (6.1.3)
#   sphinxcontrib.applehelp (1.0.2)
#   sphinxcontrib.devhelp (1.0.2)
#   sphinxcontrib.htmlhelp (2.0.0)
#   sphinxcontrib.serializinghtml (1.1.5)
#   sphinxcontrib.qthelp (1.0.3)
#   alabaster (0.7.12)
#   sphinx.ext.autodoc.preserve_defaults (6.1.3)
#   sphinx.ext.autodoc.type_comment (6.1.3)
#   sphinx.ext.autodoc.typehints (6.1.3)
#   sphinx.ext.autodoc (6.1.3)
#   sphinx.ext.intersphinx (6.1.3)
#   sphinx.ext.todo (6.1.3)
#   sphinx.ext.coverage (6.1.3)
#   sphinx.ext.imgmath (6.1.3)
#   sphinx.ext.ifconfig (6.1.3)
#   sphinx.ext.viewcode (6.1.3)
#   sphinx.ext.extlinks (6.1.3)
#   sphinx_celery.autodocargspec (unknown version)
#   sphinx_celery.github_issues (unknown version)
#   sphinx_celery.signal_crossref (unknown version)
#   sphinx_celery.setting_crossref (unknown version)
#   sphinx_celery.apicheck (unknown version)
#   sphinx_celery.configcheck (unknown version)
#   sphinx_celery (unknown version)

# Traceback:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/sphinx/cmd/build.py", line 284, in build_main
    app.build(args.force_all, args.filenames)
  File "/usr/lib/python3.10/site-packages/sphinx/application.py", line 347, in build
    self.builder.build_update()
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 311, in build_update
    self.build(to_build,
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 327, in build
    updated_docnames = set(self.read())
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 434, in read
    self._read_serial(docnames)
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 455, in _read_serial
    self.read_doc(docname)
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 511, in read_doc
    publisher.publish()
  File "/usr/lib/python3.10/site-packages/docutils/core.py", line 224, in publish
    self.document = self.reader.read(self.source, self.parser,
  File "/usr/lib/python3.10/site-packages/sphinx/io.py", line 105, in read
    self.parse()
  File "/usr/lib/python3.10/site-packages/docutils/readers/__init__.py", line 76, in parse
    self.parser.parse(self.input, document)
  File "/usr/lib/python3.10/site-packages/sphinx/parsers.py", line 80, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 169, in run
    results = StateMachineWS.run(self, input_lines, input_offset,
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 2785, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 325, in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 391, in new_subsection
    newabsoffset = self.nested_parse(
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 279, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 1273, in bullet
    i, blank_finish = self.list_item(match.end())
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 1295, in list_item
    self.nested_parse(indented, input_offset=line_offset,
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 279, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
  File "/usr/lib/python3.10/site-packages/docutils/statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 2716, in blank
    paragraph, literalnext = self.paragraph(
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 416, in paragraph
    textnodes, messages = self.inline_text(text, lineno)
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 425, in inline_text
    nodes, messages = self.inliner.parse(text, lineno,
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 649, in parse
    before, inlines, remaining, sysmessages = method(self, match,
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 792, in interpreted_or_phrase_ref
    nodelist, messages = self.interpreted(rawsource, escaped, role,
  File "/usr/lib/python3.10/site-packages/docutils/parsers/rst/states.py", line 889, in interpreted
    nodes, messages2 = role_fn(role, rawsource, text, lineno, self)
  File "/usr/lib/python3.10/site-packages/sphinx/ext/extlinks.py", line 103, in role
    title = caption % part
TypeError: not all arguments converted during string formatting

It seems that the error is due to the combination of sphinx 6 and sphinx_celery. The behaviour of extlinks seems to have changed. See sphinx-doc/sphinx#11094

@auvipy
Copy link
Member

auvipy commented Feb 27, 2023

would you mind try to fix it?

@papoteur-mga
Copy link
Author

would you mind try to fix it?

Sorry, but no. This occurs during packaging build. If the error persists, I will disable build of documentation.
Perhaps the problem is in docutils.

@eldondev
Copy link

I believe this may be fixed by #40 , but no release contains this change. @auvipy Would it be possible for you to consider releasing with this change? I will test locally later on today.

@auvipy
Copy link
Member

auvipy commented May 15, 2023

thanks for raising. I will make a release soon

@auvipy auvipy added this to v5.3 May 15, 2023
@Nusnus Nusnus moved this to Todo in v5.3 May 26, 2023
@Nusnus Nusnus added this to v5.4 May 31, 2023
@Nusnus Nusnus removed this from v5.3 May 31, 2023
@Nusnus Nusnus moved this to Todo in v5.4 May 31, 2023
@auvipy auvipy added this to the v2.1.0 milestone Oct 12, 2023
@pabs3
Copy link

pabs3 commented Nov 5, 2023

This and #40 now causes all builds using sphinx 6 or later to fail and this is beginning to affect distros like Debian and Gentoo (for example), so a new release would be appreciated.

@auvipy
Copy link
Member

auvipy commented Nov 8, 2023

sadly I do not have release access and have to wait

@cclauss
Copy link
Contributor

cclauss commented Jan 18, 2024

Should the be closed also? If not, what are the todos?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

5 participants