Importing library from new directory. #3444
-
I'm using pybind to call some functions from the GPD (https://github.com/atenpas/gpd) library. I can compile the shared library as expected but am observing some strange behavior depending on where I try to import it from. My directory setup is like this:
This setup works (I can import From gdb:
I'm using python 3.8 and compiling using this in
This issue is confusing to me because the program works perfectly as long as the python file ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think I've resolved this, it seems to be because of a relative path problem. Eigen was trying to load weights from a file that did not exist, which resulted in a segmentation fault when the program tried to access those values. |
Beta Was this translation helpful? Give feedback.
I think I've resolved this, it seems to be because of a relative path problem. Eigen was trying to load weights from a file that did not exist, which resulted in a segmentation fault when the program tried to access those values.