autodoc_mock_imports - Extension Error persists

25 views
Skip to first unread message

Brad Sappington

unread,
Jan 11, 2023, 9:36:48 AM1/11/23
to sphinx-users
Hey Folks, New to sphinx.

Started on an existing python project that needs sphinx implementation.  Was initially getting some module not found found errors for "bs4" and "pandas" which I remedied with 

autodoc_mock_imports = ["ModuleName",
"beautifulsoup4",
"pandas"]

This worked, however, there was a third module that imports "ModuleName" that is still getting this error.  "ModuleName" is a different repro that some folks install but isn't required in the build as a whole, its only needed for one element of the project to work.

Even with "ModuleName" in the mock, I still get the below error:


Extension error (sphinx_automodapi.automodsumm):
Handler <function process_automodsumm_generation at 0x7fade83141f0> for event 'builder-inited' threw an exception (exception: No module named 'ModuleName')
make: *** [html] Error 2


Any insight is appreciated!
-B
Reply all
Reply to author
Forward
0 new messages