-
Notifications
You must be signed in to change notification settings - Fork 135
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
Issue in 3.1.1: Handler <function run_autoapi at 0x7c590c5005e0> for event 'builder-inited' threw an exception (exception: [Errno 2] No such file or directory #448
Comments
Just confirmed that pinning sphinx-autoapi to version 3.1.0 solves the issue, meaning it was indeed something (somehow) in the 3.1.1 release. Looking at the code, i dont know enough to be able to pin point it, but im more confident its in there somewhere now. Gonna update the issue title to reflect that |
This just started happening to me too recently. It seems like the issue is that sphinx-autoapi/autoapi/extension.py Lines 149 to 159 in 8001fbd
but it fails, since the folder does not exist on my system, not sure why. I've worked around it by adding this to conf.py
but it would be nice to know why this started happening and what's wrong in my config :\ |
I just ran into the same issue, here's what I found: I believe the So what counts as undocumented?The short answer is: every module needs a docstring.
So for something to be documented by autoapi, all of his parents need to be documented and they must all have module docstrings.
The solutionEither add module docstrings everywhere (or find some other solution to force autoapi to document these files) or add the Actual permanent fixFrom a code point of view, I'm still trying to trace down the origin of the problem but I think the problem stems from here: sphinx-autoapi/autoapi/_mapper.py Lines 337 to 343 in 8001fbd
I think due to the parameters, This seems to be caused by sphinx-autoapi/autoapi/_objects.py Lines 222 to 242 in eecb6e8
returning True for everything.
I would expect even modules without a top-level module docstring should still be documented by autoapi. @alexfikl (Tagged you since it might answer your question) Let me know if that helps! |
@sachahu1 Can confirm that adding back |
I think that it's legitimate for a module with no docstring to not get rendered unless |
This is new as of today, i have a build from yesterday that built the docs ok. Ive mentioned this in #441 but ill reiterate here for completeness.
Just another data point here, i get the same thing if i run in a venv but not if i use system python (granted i still get an error, but i think its unrelated to this issue)
versions:
Here's installing deps:
Here's the commands
and lastly here's the conf.py
Here's the output, this was not happening yesterday before this went in eecb6e8 (I am not 100% confident this change made it happen, i just see a correlation between this going in and this issue)
For what its worth, i have been using sphinx-autoapi for a while now, and only recently started seeing this. Hard to pinpoint because i dont redeploy docs everyday, but definitely in the last month this came up.
Not sure why its looking in
docs/source/autoapi/index.rst
thats never where the index has beenThe text was updated successfully, but these errors were encountered: