Skip to content

Docs build with Sphinx 8 #14595

@frenzymadness

Description

@frenzymadness

When building the ipython RPM package in Fedora Linux, we discovered that there is a configuration problem incompatible with the latest Sphinx 8:

ERROR: Invalid inventory location value `''` in intersphinx_mapping['python'][1]. Inventory locations must be non-empty strings or None.
ERROR: Invalid inventory location value `''` in intersphinx_mapping['rpy2'][1]. Inventory locations must be non-empty strings or None.
ERROR: Invalid inventory location value `''` in intersphinx_mapping['jupyterclient'][1]. Inventory locations must be non-empty strings or None.
ERROR: Invalid inventory location value `''` in intersphinx_mapping['jupyter'][1]. Inventory locations must be non-empty strings or None.
ERROR: Invalid inventory location value `''` in intersphinx_mapping['jedi'][1]. Inventory locations must be non-empty strings or None.
ERROR: Invalid inventory location value `''` in intersphinx_mapping['traitlets'][1]. Inventory locations must be non-empty strings or None.
ERROR: Invalid inventory location value `''` in intersphinx_mapping['ipykernel'][1]. Inventory locations must be non-empty strings or None.
ERROR: Invalid inventory location value `''` in intersphinx_mapping['prompt_toolkit'][1]. Inventory locations must be non-empty strings or None.
ERROR: Invalid inventory location value `''` in intersphinx_mapping['ipywidgets'][1]. Inventory locations must be non-empty strings or None.
ERROR: Invalid inventory location value `''` in intersphinx_mapping['ipyparallel'][1]. Inventory locations must be non-empty strings or None.
ERROR: Invalid inventory location value `''` in intersphinx_mapping['pip'][1]. Inventory locations must be non-empty strings or None.

Configuration error:
Invalid `intersphinx_mapping` configuration (11 errors).

It seems from the log that the fallback cannot be an empty string anymore.

The values are defined in:

python = { url = 'https://docs.python.org/3/', fallback = '' }
rpy2 = { url = 'https://rpy2.github.io/doc/latest/html/', fallback = '' }
jupyterclient = { url = 'https://jupyter-client.readthedocs.io/en/latest/', fallback = '' }
jupyter = { url = 'https://jupyter.readthedocs.io/en/latest/', fallback = '' }
jedi = { url = 'https://jedi.readthedocs.io/en/latest/', fallback = '' }
traitlets = { url = 'https://traitlets.readthedocs.io/en/latest/', fallback = '' }
ipykernel = { url = 'https://ipykernel.readthedocs.io/en/latest/', fallback = '' }
prompt_toolkit = { url = 'https://python-prompt-toolkit.readthedocs.io/en/stable/', fallback = '' }
ipywidgets = { url = 'https://ipywidgets.readthedocs.io/en/stable/', fallback = '' }
ipyparallel = { url = 'https://ipyparallel.readthedocs.io/en/stable/', fallback = '' }
pip = { url = 'https://pip.pypa.io/en/stable/', fallback = '' }

And the problem is that there is no representation of None available in the TOML specification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions