<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello, I’m trying to run vtk with python wrappings build from source <a href="https://gitlab.kitware.com/vtk/vtk.git" class="">https://gitlab.kitware.com/vtk/vtk.git</a>. Target os - MacOs, python version 3.6. The basic call of “import vtk” from python gives error that libraries can’t be loaded (python program from <a href="https://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder" class="">https://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder</a>):<div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">Traceback (most recent call last):</div><div class="">  File "/Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/vtkCommonCore.py", line 5, in <module></div><div class="">    from .vtkCommonCorePython import *</div><div class="">ImportError: dlopen(/Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/vtkCommonCorePython.so, 2): Library not loaded: @rpath/libvtkCommonCorePython36D-8.2.1.dylib</div><div class="">  Referenced from: /Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/vtkCommonCorePython.so</div><div class="">  Reason: image not found</div><div class=""><br class=""></div><div class="">During handling of the above exception, another exception occurred:</div><div class=""><br class=""></div><div class="">Traceback (most recent call last):</div><div class="">  File "/Users/evgeniya/PycharmProjects/untitled/vtk_test.py", line 1, in <module></div><div class="">    import vtk</div><div class="">  File "/Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/__init__.py", line 7, in <module></div><div class="">    from .vtkCommonCore import *</div><div class="">  File "/Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/vtkCommonCore.py", line 9, in <module></div><div class="">    from vtkCommonCorePython import *</div><div class="">ModuleNotFoundError: No module named ‘vtkCommonCorePython'</div></div><div class=""><br class=""></div><div class="">This is the error with added path to /Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/ to PYTHONPATH variable.</div><div class=""><br class=""></div><div class="">Looks very much like libraries are found but can’t be loaded for some reasons. Any suggestions what can cause such an error?</div><div class=""><br class=""></div><div class="">Thank you very much in advance,</div><div class="">Best regards,</div><div class="">Evgeniya</div><div class=""><br class=""></div></body></html>