ngsolve-stubs CMake Error


I am at the step make install in the build from source instructions.
I am getting:

CMake Error at python/cmake_install.cmake:71 (file):
file INSTALL cannot find
No such file or directory.
Call Stack (most recent call first):
cmake_install.cmake:96 (include)

Can anyone help me with this?

Hello tengen,

maybe try setting -DBUILD_STUB_FILES=OFF in the cmake options.

Best wishes,

That has worked, thank you.

Although this doesn’t solve the problem but is just a work around. Do you have any idea how to solve this issue?
I know that stubs are usually used with testing and for that matter, I can use the flag you suggested. But still this error should not appear.

the stubs are just for auto completion in editors. You can also call pybind11-stubgen manually to create them and just copy them to the python installation dir if you want autocompletion.
For some help in pybind11-stubgen see here GitHub - sizmailov/pybind11-stubgen: Generates stubs for python modules (targeted to C++ extensions compiled with pybind11)