Skip to content
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

Inference failed for all members of... #508

Open
MatthijsBurgh opened this issue Jan 11, 2025 · 0 comments
Open

Inference failed for all members of... #508

MatthijsBurgh opened this issue Jan 11, 2025 · 0 comments
Labels

Comments

@MatthijsBurgh
Copy link
Contributor

Since 3.4.0, I get the following error when trying to build the docs for my project, image_recognition_rqt.

Extension error (autoapi.extension):
Handler <function run_autoapi at 0x7c0618fa0ca0> for event 'builder-inited' threw an exception (exception: Inference failed for all members of [<Call l.46 at 0x7c06117eb5b0>].)

I could get it working when putting a try...except around

value = next(target.infer())
if value is astroid.util.Uninferable:
value = None
,

    try:
        value = next(target.infer())
    except astroid.InferenceError:
        value = None
    if value is astroid.util.Uninferable:
        value = None

But unsure whether this is the correct approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants