-
Notifications
You must be signed in to change notification settings - Fork 133
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
AttributeError: 'Import' object has no attribute 'getattr' #289
Comments
What version of autoapi are you using? |
|
Hello @AWhetter, I created a sample project that creates such an error. Please have a look. It seems the way I am importing stuff with absolute path from the package is kind of undesirable for autoapi. Like this: import sample.module_b.bbb
class SubBBB:
"""Sub BBB Class
"""
def __init__(self) -> None:
pass
def some_function(self, arg1: sample.module_b.bbb.BBB):
return arg1 We would like to avoid relative imports using dots since it is not recommended in different coding style guidelines in python. This is a very small sample project which should make the debugging easier for you. Thanks a lot. |
Possible fix:
|
I'm having the same problem and the proposed change @MarcSeebold resolves it for me |
Thanks @AWhetter . Do you have an estimate when will this fix be released on PyPi server? |
Hello,
I have an issue very similar to #193 but on different object type.
I am using
sphinx started to generate the following error. Unfortunately I cannot share the project.
Thanks
The text was updated successfully, but these errors were encountered: