[Mlir-commits] [mlir] [mlir][Python] create MLIRPythonSupport (PR #171775)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Dec 21 13:27:35 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>[code=1] tools/mlir/python/type_stubs/_mlir_libs/_mlir/__init__.pyi tools/mlir/python/type_stubs/_mlir_libs/_mlir/ir.pyi tools/mlir/python/type_stubs/_mlir_libs/_mlir/passmanager.pyi tools/mlir/python/type_stubs/_mlir_libs/_mlir/rewrite.pyi</summary>

```
FAILED: [code=1] tools/mlir/python/type_stubs/_mlir_libs/_mlir/__init__.pyi tools/mlir/python/type_stubs/_mlir_libs/_mlir/ir.pyi tools/mlir/python/type_stubs/_mlir_libs/_mlir/passmanager.pyi tools/mlir/python/type_stubs/_mlir_libs/_mlir/rewrite.pyi
cmd.exe /C "cd /D C:\_work\llvm-project\llvm-project\mlir\cmake\modules && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E env PYTHONPATH="" C:/Python312/python.exe C:/Python312/Lib/site-packages/nanobind/stubgen.py --module _mlir -i C:/_work/llvm-project/llvm-project/build/tools/mlir/python_packages/mlir_core/mlir/_mlir_libs --recursive --include-private --output-dir C:/_work/llvm-project/llvm-project/build/tools/mlir/python/type_stubs/_mlir_libs --quiet && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E cmake_transform_depfile Ninja gccdepfile C:/_work/llvm-project/llvm-project/llvm C:/_work/llvm-project/llvm-project/mlir/python C:/_work/llvm-project/llvm-project/build C:/_work/llvm-project/llvm-project/build/tools/mlir/python C:/_work/llvm-project/llvm-project/build/tools/mlir/python/type_stubs/_mlir_libs/_mlir.d C:/_work/llvm-project/llvm-project/build/CMakeFiles/d/653c6be7fedec5ffe9dd8e0df6071a07380ec6e39f7fb42268532eb64de27d80.d"
Traceback (most recent call last):
File "C:\Python312\Lib\site-packages\nanobind\stubgen.py", line 1488, in <module>
main()
File "C:\Python312\Lib\site-packages\nanobind\stubgen.py", line 1408, in main
mod_imported = importlib.import_module(mod)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\importlib\__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 921, in _load_unlocked
File "<frozen importlib._bootstrap>", line 813, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1289, in create_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
ImportError: DLL load failed while importing _mlir: The specified module could not be found.
```
</details>
<details>
<summary>[code=1] tools/mlir/python/type_stubs/_mlir_libs/_mlirPythonTestNanobind.pyi</summary>

```
FAILED: [code=1] tools/mlir/python/type_stubs/_mlir_libs/_mlirPythonTestNanobind.pyi
cmd.exe /C "cd /D C:\_work\llvm-project\llvm-project\mlir\cmake\modules && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E env PYTHONPATH="" C:/Python312/python.exe C:/Python312/Lib/site-packages/nanobind/stubgen.py --module mlir._mlir_libs._mlirPythonTestNanobind -i C:/_work/llvm-project/llvm-project/build/tools/mlir/python_packages/mlir_core --recursive --include-private --output-dir C:/_work/llvm-project/llvm-project/build/tools/mlir/python/type_stubs/_mlir_libs --quiet && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E cmake_transform_depfile Ninja gccdepfile C:/_work/llvm-project/llvm-project/llvm C:/_work/llvm-project/llvm-project/mlir/python C:/_work/llvm-project/llvm-project/build C:/_work/llvm-project/llvm-project/build/tools/mlir/python C:/_work/llvm-project/llvm-project/build/tools/mlir/python/type_stubs/_mlir_libs/mlir._mlir_libs._mlirPythonTestNanobind.d C:/_work/llvm-project/llvm-project/build/CMakeFiles/d/0a36cda5915fd4da227f6661c73f695db7c744026d9141e56a68febd4df9a5d4.d"
Traceback (most recent call last):
File "C:\Python312\Lib\site-packages\nanobind\stubgen.py", line 1488, in <module>
main()
File "C:\Python312\Lib\site-packages\nanobind\stubgen.py", line 1408, in main
mod_imported = importlib.import_module(mod)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\importlib\__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "C:\_work/llvm-project/llvm-project/build/tools/mlir/python_packages/mlir_core\mlir\_mlir_libs\__init__.py", line 237, in <module>
_site_initialize()
File "C:\_work/llvm-project/llvm-project/build/tools/mlir/python_packages/mlir_core\mlir\_mlir_libs\__init__.py", line 94, in _site_initialize
from ._mlir import ir
ImportError: DLL load failed while importing _mlir: The specified module could not be found.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/171775


More information about the Mlir-commits mailing list