Skip to content

Inference failed for all members of... #508

Closed
@MatthijsBurgh

Description

@MatthijsBurgh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions