We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I was running into the following error
Running Sphinx v4.0.0 making output directory... done [autosummary] generating autosummary for: XXX Extension error: Handler <function run_apidoc at 0x7f83a4aa1550> for event 'builder-inited' threw an exception (exception: cannot import name 'walk' from 'sphinx.util.osutil' (XXX/lib/python3.8/site-packages/sphinx/util/osutil.py)) make: *** [html] Error 2
Turns out the problem comes from import better_apidoc in conf.py. The fix is extremely simple: just don't use the walk from sphinx, but use os.walk.
import better_apidoc
conf.py
walk
os.walk
https://github.com/goerz/better-apidoc/blob/master/better_apidoc.py#L39
As it turns out, sphinx.utils.walk is deprecated anyway. See https://www.sphinx-doc.org/en/master/changes.html#id96.
sphinx.utils.walk
Do you guys think it is a good idea to fix this?
The text was updated successfully, but these errors were encountered:
Definitely! I'll have to make a compatibility update for Sphinx 4.0.
Thanks for reporting, and contributing the fix!
Sorry, something went wrong.
No branches or pull requests
Hi,
I was running into the following error
Turns out the problem comes from
import better_apidoc
inconf.py
. The fix is extremely simple: just don't use thewalk
from sphinx, but useos.walk
.https://github.com/goerz/better-apidoc/blob/master/better_apidoc.py#L39
As it turns out,
sphinx.utils.walk
is deprecated anyway. See https://www.sphinx-doc.org/en/master/changes.html#id96.Do you guys think it is a good idea to fix this?
The text was updated successfully, but these errors were encountered: