Build failure with python 3.12 - ModuleNotFoundError: No module named 'imp'

Job #6144381512 failed for 95c3fbca:

FAILED tests/test_functions.py::test_im_read_write - ModuleNotFoundError: No module named 'imp'
FAILED tests/test_functions.py::test_mesh_read_write - ModuleNotFoundError: No module named 'imp'
FAILED tests/test_import.py::test_visvis_import - ModuleNotFoundError: No module named 'imp'
FAILED tests/test_processing.py::test_line2mesh - ModuleNotFoundError: No module named 'imp'
FAILED tests/test_processing.py::test_unwindfaces - ModuleNotFoundError: No module named 'imp'
FAILED tests/test_processing.py::test_combine_meshes - ModuleNotFoundError: No module named 'imp'
FAILED tests/test_processing.py::test_calculate_normals - ModuleNotFoundError: No module named 'imp'
FAILED tests/test_processing.py::test_statistics - ModuleNotFoundError: No module named 'imp'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information