[Mlir-commits] [mlir] [MLIR][Python] fix stubgen (PR #157583)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Wed Sep 10 02:52:17 PDT 2025
ftynse wrote:
When I work around the missing files, building a downstream from the installation hits further problems:
```
FAILED: python/_mlir_libs/_mlirDialectsGPU.pyi ~/git/downstream/build/python/_mlir_libs/_mlirDialectsGPU.pyi
cd ~/usr-llvm/lib/cmake/mlir && ~/git/downstream/.venv/bin/python3.11 ~/git/downstream/.venv/lib/python3.11/site-packages/nanobind/stubgen.py --module ._mlir_libs._mlirDialectsGPU -i ~/git/downstream --recursive --include-private --output-dir ~/git/downstream/build/python/_mlir_libs --quiet
Traceback (most recent call last):
File "~/git/downstream/.venv/lib/python3.11/site-packages/nanobind/stubgen.py", line 1444, in <module>
main()
File "~/git/downstream/.venv/lib/python3.11/site-packages/nanobind/stubgen.py", line 1371, in main
mod_imported = importlib.import_module(mod)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 121, in import_module
raise TypeError(msg.format(name))
TypeError: the 'package' argument is required to perform a relative import for '._mlir_libs._mlirDialectsGPU'
```
https://github.com/llvm/llvm-project/pull/157583
More information about the Mlir-commits
mailing list