Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

ngsolve-stubs CMake Error

More
1 year 8 months ago - 1 year 8 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 8 months ago by tengen.
More
1 year 7 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 7 months ago - 1 year 7 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 7 months ago by tengen.
More
1 year 7 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.167 seconds