Hi All
This is a bit of a head scratcher, I’ve got a python class that does some generation and markup, which ultimately constructs an exodus mesh. The underlying geometry is parametrically instanciated, and is called by another python script. If I were to want to run this python script that interfaces directly with Cubit, I would need to do the following
LD_LIBRARY_PATH=/path/to/cubit/bin:/path/to/cubit/bin/python3 PYTHONPATH=/path/to/cubit/bin myscript.py
I can remove the need for PYTHONPATH by setting it internal to the script and then all is well.
Now, my driving script is part of another framework, with a complex dependency stack managed mostly by pip, but does include system packages, most notably, requiring standard C++ libraries. When I set the LD_LIBRARY_PATH with Cubit dependencies in higher order, then Cubit runs fine, however when I run with Cubit dependencies in the opposing order, i.e. in the order required for my other dependencies to call my other parts of the program, then cubit doesnt run because of symbol mismatces.
I feel that maybe this could be fixed by setting the RPATH on the various parts of the budled libraries in Cubit, or is there any other advice?