Skip to content

Fix Python 3.12 compatibility - use importlib.util.find_spec("numpy") instead of imp #986

Open
@nicklasb

Description

@nicklasb

Hi!

In the pip distribution (at least on windows), in flatbuffers\compat.py, it uses imp, which is removed in python 3.12, so I had to monkey patch it to use importlib instead to make the library work properly.

I couldn't find that code anywhere, so I suppose it is in some pip package source somewhere, otherwise I'd made a PR.

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