Skip to content

Make better configury check for all the python modules required for Sphinx #13648

@rhc54

Description

@rhc54

Thank you for taking the time to submit an issue!

Background information

What version of Open MPI are you using? (e.g., v4.1.6, v5.0.1, git branch name and hash, etc.)

Head of OMPI main branch

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

Git clone

If you are building/installing from a git clone, please copy-n-paste the output from git submodule status.

Please describe the system on which you are running

  • Operating system/version: Rocky 9
  • Computer hardware: container
  • Network type: TCP

Details of the problem

Trying to build OMPI main and hit the following fatal error:

Configuration error!

Versions
========

* Platform:         linux; (Linux-6.12.54-linuxkit-aarch64-with-glibc2.34)
* Python version:   3.11.7 (CPython)
* Sphinx version:   8.2.3
* Docutils version: 0.21.2
* Jinja2 version:   3.1.6
* Pygments version: 2.19.1

Last Messages
=============

None.

Loaded Extensions
=================

None.

Traceback
=========

      File "/usr/local/lib/python3.11/site-packages/sphinx/config.py", line 616, in eval_config_file
        raise ConfigError(msg % traceback.format_exc()) from exc
    sphinx.errors.ConfigError: There is a programmable error in your configuration file:

    Traceback (most recent call last):
      File "/usr/local/lib/python3.11/site-packages/sphinx/config.py", line 601, in eval_config_file
        exec(code, namespace)  # NoQA: S102
        ^^^^^^^^^^^^^^^^^^^^^
      File "/opt/hpc/build/ompi/docs/conf.py", line 20, in <module>
        import sphobjinv as soi
    ModuleNotFoundError: No module named 'sphobjinv'


The full traceback has been saved in:
/tmp/sphinx-err-_1l67_q5.log

To report this error to the developers, please open an issue at <https://github.com/sphinx-doc/sphinx/issues/>. Thanks!
Please also report this if it was a user error, so that a better error message can be provided next time.
make[1]: *** [Makefile:2785: _build/man/ompi-wrapper-compiler.1] Error 2
make: *** [Makefile:1536: all-recursive] Error 1

It looks like this came in with the intersphinx changes by @jsquyres. Looks like you have to install some new module, but I can't find the magic to do so - and am therefore dead in the water. Sigh.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions