Numpy shared libs are not built

I am trying to build at 04a58a9005. The built package misses all numpy shared libs, like This results in exceptions like

ModuleNotFoundError: No module named ‘numpy.core._multiarray_umath’

on start-up. These shared libs are simply not built at all, i.e, they are not excluded on packaging. I don’t have any clue about this.

Building on Arch Linux with clang 10 and cmake 3.17.3.

Can you advise for a fix ?


Directory python-numpy is just empty in the superbuild tree, and python-numpy-prefix lists as follows :

ls -l python-numpy-prefix/src/python-numpy-stamp/python-numpy-*
-rw-r--r-- 1 arc arc    0 27 juin  17:16 python-numpy-prefix/src/python-numpy-stamp/python-numpy-build
-rw-r--r-- 1 arc arc    0 27 juin  17:16 python-numpy-prefix/src/python-numpy-stamp/python-numpy-configure
-rw-r--r-- 1 arc arc    0 27 juin  17:16 python-numpy-prefix/src/python-numpy-stamp/python-numpy-done
-rw-r--r-- 1 arc arc    0 27 juin  16:20 python-numpy-prefix/src/python-numpy-stamp/python-numpy-download
-rw-r--r-- 1 arc arc    0 27 juin  16:20 python-numpy-prefix/src/python-numpy-stamp/python-numpy-generate_project_description
-rw-r--r-- 1 arc arc    0 27 juin  17:16 python-numpy-prefix/src/python-numpy-stamp/python-numpy-install
-rw-r--r-- 1 arc arc  223 27 juin  17:16 python-numpy-prefix/src/python-numpy-stamp/python-numpy-install-err.log
-rw-r--r-- 1 arc arc  447 27 juin  17:16 python-numpy-prefix/src/python-numpy-stamp/python-numpy-install-out.log
-rw-r--r-- 1 arc arc 2241 27 juin  16:17 python-numpy-prefix/src/python-numpy-stamp/python-numpy-install-Release.cmake
-rw-r--r-- 1 arc arc    0 27 juin  16:20 python-numpy-prefix/src/python-numpy-stamp/python-numpy-mkdir
-rw-r--r-- 1 arc arc    0 27 juin  16:20 python-numpy-prefix/src/python-numpy-stamp/python-numpy-patch
-rw-r--r-- 1 arc arc    0 27 juin  16:20 python-numpy-prefix/src/python-numpy-stamp/python-numpy-update

Most files are empty !

Are you building in debug mode?

What command has triggered ModuleNotFound error? A simple import numpy?

It’s a release build actually.

The ModuleNotFoundError is in console when starting Slicer itself.

Here is the content of numpy/core :

ls programs/Slicer-4.11.0-2020-06-26-linux-amd64/lib/Python/lib/python3.6/site-packages/numpy/core/          tests  lib        include           __pycache__

while there are many shared libs there in a normal build :

cd programs/Slicer-4.11.0-2020-06-19-linux-amd64/lib/Python/lib/python3.6/site-packages/numpy/core/
#user@localhost core[0]$ ls *.so

None of these shared libs get built.

Thanks for considering.

Linux build was successful a few days ago but there are no test results available on the dashboard, because of some network error:

@jcfr @sjh26 could you have a look? The Linux build has been having this “build error” for a while now.

@chir.set Do latest factory builds work correctly? If yes, then you can check out what exact built tools are used and how they differ from your configuration:

Factory build works correctly at least. It means more complexity to install loadable extensions, like VMTK, every time I unpack a factory build.