-
Notifications
You must be signed in to change notification settings - Fork 26
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
parameters.py
Absolute Imports break Sphinx Build
#186
Comments
@cmutel, I painstakingly narrowed the issue down to the file/class structure now replicated here:
from test_library.test_module import banana
class highest:
def __init__(self):
self.a = 'a'
class middle(highest):
def __init__(self):
self.a = 'a'
class lowest:
def __init__(self):
self.db = "middle"
test_module = lowest() It is all a little peculiar. If the instance of the Maybe you can pick this up... |
No idea how you even thought to debug in that direction... what about just moving |
It still does - sorry. You can quickly check my debugging repo: https://github.com/michaelweinold/sphinx-autoapi-debugging
From what I can see, this should work. |
I have posted the MWE from above in the related issue: |
The recent move to absolute imports:
broke the
inheritance-diagram
functionality of theautoapi
Sphinx extension:AttributeError: 'AssignName' object has no attribute 'getattr'
readthedocs/sphinx-autoapi#480A quick workaround would be to simply disable the generation of inheritance diagrams in
conf.py
like so:Passing
-v -v -v
to thesphinx-build
command, as documented allowed me to narrow the issue down thebw2data/parameters.py
file:Manually removing this file will result in a successful Sphinx build.
I will need to leave the remainder of this investigation to the gentlemen who broke the build in the first place (@cmutel et al.) 😬
I created a debugging repository that should make this fairly easy: https://github.com/michaelweinold/sphinx-autoapi-debugging
The text was updated successfully, but these errors were encountered: