Skip to content

Replace startup exception by warning #31080

@tobiasdiez

Description

@tobiasdiez

Since #22755, when lazy_import is used during startup, a runtime exception is thrown. This leads to problems if you want to use code with lazy imports in a library mode (e.g. in standalone tests or python scripts).

To support these use cases, this ticket replaces the exception to a print (which matches other warnings printed by the same code).

CC: @mkoeppe @fchapoton @tscrim @jhpalmieri @seblabbe

Component: build

Author: Tobias Diez

Branch/Commit: a5eb21d

Reviewer: Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/31080

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions