Skip to content

from importlib.abc import Traversable doesn't work with Python >=3.14 #1521

Description

@leodr

In a freshly created lab/env with a simple setup prime eval crashes because of this import

from importlib.abc import Traversable

This was relocated in Python 3.14 to from importlib.resources.abc import Traversable and is used in 8 places across the repo.

Codex said you could use this instead:

try:
    from importlib.resources.abc import Traversable
except ImportError:
    from importlib.abc import Traversable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions