Library not loaded: @rpath/Python3.framework/Versions/3.8/Python3
Referenced from: /Users/builder/external/VTK-test/bin/vtkpython
Reason: tried: '/Users/builder/external/VTK-test/lib/Python3.framework/Versions/3.8/Python3' (no such file), '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/Python3.framework/Versions/3.8/Python3' (no such file), '/Users/builder/external/VTK-test/lib/Python3.framework/Versions/3.8/Python3' (no such file), '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/Python3.framework/Versions/3.8/Python3' (no such file), '/Library/Frameworks/Python3.framework/Versions/3.8/Python3' (no such file), '/System/Library/Frameworks/Python3.framework/Versions/3.8/Python3' (no such file)
I suppose I can fix this by installing my own python, but… perhaps there is something that should be fixed here?
This is the “terrible rpath” issue on macOS. The library says “you need to use rpath to use me” (with the @rpath/ library id), but nothing says what path to actually add. Here, you’ll need to do it manually. See how CI does it.
I have discussed it in the CMake Discourse before (and maybe even an issue), but libraries will need an IMPORTED_RPATH property to be set so that CMake can know to add the right -Wl,-rpath, flags to the linker.
Traceback (most recent call last):
File "/Users/builder/external/VTK/IO/Geometry/Testing/Python/Plot3D.py", line 2, in <module>
import vtk
ModuleNotFoundError: No module named 'vtk'
Anyone know why this might be? (I know next to nothing about how python works…)