Issue 127434
Summary [OpenMP] Some tests failing with Python >= 3.12 due to dependency on `imp`
Labels openmp
Assignees
Reporter koachan
    When I tried running OpenMP tests, some tests are failing:
```
********************
Failed Tests (2):
  ompd-test :: api_tests/test_ompd_finalize.c
  ompd-test :: api_tests/test_ompd_get_curr_parallel_handle.c
```

Further checks (by running the commands manually etc.) shows that the failing ones appear to be depending on `imp` [which has been removed since Python 3.12](https://docs.python.org/3.12/whatsnew/3.12.html#whatsnew312-removed-imp):
```
Traceback (most recent call last):
  File "/home/k/llvm-debug/src/llvm-project/out/runtimes/runtimes-bins/openmp/libompd/test/../gdb-plugin/python-module/ompd/__init__.py", line 9, in <module>
    import ompd
  File "/home/k/llvm-debug/src/llvm-project/out/runtimes/runtimes-bins/openmp/libompd/test/../gdb-plugin/python-module/ompd/ompd.py", line 5, in <module>
    from ompd_address_space import ompd_address_space
 File "/home/k/llvm-debug/src/llvm-project/out/runtimes/runtimes-bins/openmp/libompd/test/../gdb-plugin/python-module/ompd/ompd_address_space.py", line 3, in <module>
    from ompd_handles import ompd_thread, ompd_task, ompd_parallel
  File "/home/k/llvm-debug/src/llvm-project/out/runtimes/runtimes-bins/openmp/libompd/test/../gdb-plugin/python-module/ompd/ompd_handles.py", line 2, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'
```

I'm on Arch Linux with Python 3.13.1.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to