Skip to contentSkip to conversation

trying to build kas docs, "No module named 'sphinxarg'"

OT Robert P. J. Day 3 participants 4 messages Jun 25, 2025 – Jun 26, 2025

lore
Share & tools
lore
#0 lore raw

Given the abudance of Sphinx expertise here, I'm hoping people will forgive me for a little off-topic querying ... I checked out kas:

https://github.com/siemens/kas.git

and tried to build the Sphinx docs with:

  $ make html

and got:

Generate kas-container usage documentation
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v7.4.7
loading translations [en]... done

Extension error:
Could not import extension sphinxarg.ext (exception: No module named 'sphinxarg')
make: *** [Makefile:53: html] Error 2

I've installed python3-configargparse, but no change. Can anyone suggest what I need to fetch and install? Thank you kindly.

rday

#1 lore raw
Quoted 17 lines · Robert P. J. Day

Given the abudance of Sphinx expertise here, I'm hoping people will forgive me for a little off-topic querying ... I checked out kas:

https://github.com/siemens/kas.git

and tried to build the Sphinx docs with:

  $ make html

and got:

Generate kas-container usage documentation
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v7.4.7
loading translations [en]... done

Quoted 8 lines

Extension error:
Could not import extension sphinxarg.ext (exception: No module named 'sphinxarg')
make: *** [Makefile:53: html] Error 2

I've installed python3-configargparse, but no change. Can anyone suggest what I need to fetch and install? Thank you kindly.

You probably just need to install sphinx-argparse.
https://sphinx-argparse.readthedocs.io/en/latest/

Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
Quoted 24 lines · Antonin Godard
Quoted 23 lines · Robert P. J. Day

Given the abudance of Sphinx expertise here, I'm hoping people will forgive me for a little off-topic querying ... I checked out kas:

https://github.com/siemens/kas.git

and tried to build the Sphinx docs with:

  $ make html

and got:

Generate kas-container usage documentation
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v7.4.7
loading translations [en]... done

Extension error:
Could not import extension sphinxarg.ext (exception: No module named 'sphinxarg')
make: *** [Makefile:53: html] Error 2

Quoted 5 lines
Quoted 2 lines

I've installed python3-configargparse, but no change. Can anyone suggest what I need to fetch and install? Thank you kindly.

You probably just need to install sphinx-argparse.
https://sphinx-argparse.readthedocs.io/en/latest/

that's one of the first things i tried yesterday, failed, try it
again this morning, worked just fine. *sigh*.

rday

#3 lore raw
Quoted 25 lines · Robert P. J. Day via lists.yoctoproject.org
Quoted 23 lines · Antonin Godard
Quoted 22 lines · Robert P. J. Day

Given the abudance of Sphinx expertise here, I'm hoping people will forgive me for a little off-topic querying ... I checked out kas:

https://github.com/siemens/kas.git

and tried to build the Sphinx docs with:

  $ make html

and got:

Generate kas-container usage documentation
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v7.4.7
loading translations [en]... done

Extension error:
Could not import extension sphinxarg.ext (exception: No module named 'sphinxarg')
make: *** [Makefile:53: html] Error 2

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

I've installed python3-configargparse, but no change. Can anyone suggest what I need to fetch and install? Thank you kindly.

You probably just need to install sphinx-argparse.
https://sphinx-argparse.readthedocs.io/en/latest/

that's one of the first things i tried yesterday, failed, try it
again this morning, worked just fine. *sigh*.

FWIW there is a requirements.txt in the docs folder that should help with the dependencies when used like "pip install -r requirements.txt" (I guess it's too late now, but maybe next time)

Quoted 10 lines

rday

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7227): https://lists.yoctoproject.org/g/docs/message/7227
Mute This Topic: https://lists.yoctoproject.org/mt/113830450/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-