Skip to content

AttributeError: module 'importlib.resources' has no attribute 'path' on Python 3.13 #12401

@domdfcoding

Description

@domdfcoding

Describe the bug
On Python 3.13.0a1, while building numpy (directly from GitHub) meson fails first with AttributeError: module 'importlib.resources' has no attribute 'path' and then ../../meson.build:40:22: ERROR: Unhandled python exception.

importlib.resources.path was removed in Python 3.13

To Reproduce

  1. Build Python 3.13.0a1 from source (https://github.com/python/cpython/releases/tag/v3.13.0a1)
  2. Run python3.13 -m pip wheel git+https://github.com/numpy/numpy

Expected behavior
Meson correctly compiles numpy

system parameters

  • Native build
  • Ubuntu 20.04
  • Python 3.13
  • Meson 1.2.99

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