Sphinx for Py – modules mocking

sphinx, when it finds a statement import something … tries to import, and complains if it doesn’t exists. This is a problem sometimes.

for avoidig such a situation, there’s an extension which emualtes a library which doesn’t exist.

Note

see this page here

sphinx configuration

just add this section:

# -- Options for autodoc -----------------------------------------------------

# mock ros and other stuff
autodoc_mock_imports = ["rospy"]