[Mlir-commits] [llvm] [mlir] [MLIR][Python] reland stubgen (PR #157853)
Mehdi Amini
llvmlistbot at llvm.org
Wed Sep 10 12:20:11 PDT 2025
joker-eph wrote:
`$ pip install nanobind --upgrade`
> > ```
> > # | ninja: error: 'build/tools/mlir/python/type_stubs/_mlir_libs/_mlir/__init__.pyi', needed by 'python_packages/standalone/mlir_standalone/_mlir_libs/_mlir/__init__.pyi', missing and no known rule to make it
> > ```
>
> Can you check your nanobind version: `pip freeze | grep nanobind`; you need `>=2.9.0`. I (and others) observed this failure mode due to a non-updated version of nanobind (which dumps the stubs differently).
Thanks! `$ pip install nanobind --upgrade` did the trick!
Is this something we could detect and error out in CMake?
https://github.com/llvm/llvm-project/pull/157853
More information about the Mlir-commits
mailing list