[rtems-docs PATCH] sphinx/style: Fix building with the latest sphinx

Joel Sherrill joel at rtems.org
Tue Dec 19 21:12:59 UTC 2023


I tried the patch on Rocky 9 with Python 3.9.14 and sphinx-build  5.3.0
from a pip local install.

(rtemsdocs) [joel at localhost rtems-docs]$ ./waf distclean
Waf: The wscript in '/home/joel/rtems-work/rtems-docs' is unreadable
Traceback (most recent call last):
  File
"/home/joel/rtems-work/rtems-docs/.waf3-2.0.25-767522112be77f8585812fcfaa08e805/waflib/Scripting.py",
line 102, in waf_entry_point
    set_main_module(wscript)
  File
"/home/joel/rtems-work/rtems-docs/.waf3-2.0.25-767522112be77f8585812fcfaa08e805/waflib/Scripting.py",
line 142, in set_main_module
    Context.g_module=Context.load_module(file_path)
  File
"/home/joel/rtems-work/rtems-docs/.waf3-2.0.25-767522112be77f8585812fcfaa08e805/waflib/Context.py",
line 362, in load_module
    exec(compile(code,path,'exec'),module.__dict__)
  File "/home/joel/rtems-work/rtems-docs/wscript", line 17, in <module>
    from common import waf as docs_waf
  File "/home/joel/rtems-work/rtems-docs/common/waf.py", line 17, in
<module>
    import conf
  File "/home/joel/rtems-work/rtems-docs/common/conf.py", line 87, in
<module>
    import sphinx_rtd_theme_rtems
  File
"/home/joel/rtems-work/rtems-docs/common/sphinx_rtd_theme_rtems/__init__.py",
line 9, in <module>
    import sphinx
ModuleNotFoundError: No module named 'sphinx'

Any ideas what I might be missing?

FWIW the patch didn't apply on my CentOS 7 VM with an even older Sphinx.

--joel

On Tue, Dec 19, 2023 at 1:05 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> On 19.12.23 02:34, chrisj at rtems.org wrote:
> > From: Chris Johns<chrisj at rtems.org>
> >
> > Tested on sphinx 7.2, 6.1.3 AND 5.3.0
> >
> > Closes #4980
>
> Thanks, it is a really nice improvement to be able to use newer Sphinx
> versions.
>
> --
> embedded brains GmbH & Co. KG
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax:   +49-89-18 94 741 - 08
>
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20231219/30d99b91/attachment.htm>


More information about the devel mailing list