Skip to content

Better error message for missing optional dependencies #186

@aseyboldt

Description

@aseyboldt

If you enable the normalizing flow adaptation, but don't have the required dependencies installed, the error only shows up once it tries to sample in one of the child processes:

RuntimeError: All initialization points failed

Caused by:
    Could not initialize state because of bad initial gradient: Anyhow(ImportError: The 'flowjax' package is required to use normalizing flow adaptation.)

We should check this earlier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions