ngsolve-stubs CMake Error

More
1 year 11 months ago - 1 year 11 months ago #4464 by tengen
Hello,

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

CMake Error at python/cmake_install.cmake:71 (file):
  file INSTALL cannot find
  "/home/vlatko/ngsuite/ngsolve-build/ngsolve/python/../stubs/ngsolve-stubs":
  No such file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:96 (include)

Can anyone help me with this?
Last edit: 1 year 11 months ago by tengen.
More
1 year 11 months ago #4469 by hvwahl
Replied by hvwahl on topic ngsolve-stubs CMake Error
Hello tengen,

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

Best wishes,
Henry
The following user(s) said Thank You: tengen
More
1 year 11 months ago - 1 year 11 months ago #4470 by tengen
Replied by tengen on topic ngsolve-stubs CMake Error
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.
Last edit: 1 year 11 months ago by tengen.
More
1 year 11 months ago #4471 by christopher
Hi,
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.com/sizmailov/pybind11-stubgen
Time to create page: 0.178 seconds