- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
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
sphinx-build: error: argument -d/--maxdepth: invalid int value #5104
Comments
Additional details: In our |
As I suspected, sphinx.apidoc.main([...]) to: sphinx.apidoc.main(argv=[...]) or: sphinx.ext.apidoc.main([...]) it solves the problem. I'm actually wondering if my changes in #3668 are related to this bug. I hope I didn't break anything... |
@tk0miya I tracked down the problem to this particular commit: If I undo the |
Sorry for inconvenience. This is a bug of I just pushed the fix for |
Any idea how far off Sphinx-2.0 is? We're trying to maintain compatibility with as many versions of Sphinx as we can, so we may have to check the Sphinx version before importing. |
How about checking ImportError?
Of course, you can use |
Fix #5104: apidoc: Interface of ``sphinx.apidoc:main()`` has changed
As discussed, the interface of Note: The argument of Thank you for reporting. |
I recently updated to the latest version of Sphinx and am now unable to build the documentation for my project.
Problem
When I try to build the documentation for my project, I encounter the following error message:
Procedure to reproduce the problem
Error logs / results
This was first reported in spack/spack#8491 (comment). This issue appears to be identical to readthedocs/readthedocs-build#44. The RtD issue suggests locking the version of Sphinx to 1.7.0. Indeed, this issue has never caused us trouble as we lock our version to 1.7.0 for Travis and RtD, but I would like to be able to build the docs locally.
Expected results
The docs should build correctly. According to
sphinx-build --help
,-d
should accept a path, not an int:Perhaps this is coming from
sphinx-apidoc
?Reproducible project / your project
https://github.com/spack/spack
Environment info
The text was updated successfully, but these errors were encountered: