<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="">No, looks like updating DYLS_LIBRARY_PATH didn’t solve the problem.<div class=""><br class=""></div><div class="">However, vtkpython works well. Just come across this description:</div><div class=""><a href="https://stackoverflow.com/questions/48148376/running-vtk-from-python-not-just-vtkpython" class="">https://stackoverflow.com/questions/48148376/running-vtk-from-python-not-just-vtkpython</a></div><div class=""><br class=""></div><div class="">The similar check gives me similar list of dependencies with vtk python depending on libpython3.6m.dylib:</div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">otool -L libvtkCommonCorePython36D-8.2.1.dylib</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">libvtkCommonCorePython36D-8.2.1.dylib:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>@rpath/libvtkCommonCorePython36D-8.2.1.dylib (compatibility version 1.0.0, current version 1.0.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">  </span>@rpath/libvtkWrappingPython36Core-8.2.1.dylib (compatibility version 1.0.0, current version 1.0.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>@rpath/libvtkCommonCore-8.2.1.dylib (compatibility version 1.0.0, current version 1.0.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">   </span>@rpath/libvtksys-8.2.1.dylib (compatibility version 1.0.0, current version 1.0.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">  </span>/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">     </span>/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">otool -L vtkpython</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">vtkpython:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">       </span>@rpath/libvtkWrappingPython36Core-8.2.1.dylib (compatibility version 1.0.0, current version 1.0.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>@rpath/libvtkPythonInterpreter-8.2.1.dylib (compatibility version 1.0.0, current version 1.0.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">    </span>/usr/lib/libutil.dylib (compatibility version 1.0.0, current version 1.0.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>@rpath/libpython3.6m.dylib (compatibility version 3.6.0, current version 3.6.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">    </span>@rpath/libvtksys-8.2.1.dylib (compatibility version 1.0.0, current version 1.0.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">  </span>@rpath/libvtkCommonCore-8.2.1.dylib (compatibility version 1.0.0, current version 1.0.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">   </span>/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">     </span>/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)</span></div></span></div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Evgeniya<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 26 Oct 2018, at 15:11, Jean-Christophe Fillion-Robin <<a href="mailto:jcfr@kitware.com" class="">jcfr@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Hi, <br class=""></div><div class=""><br class=""></div><div class="">If you explicitly set or update DYLD_LIBRARY_PATH environment variable first with the path" /Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/", are you able to import ?</div><div class=""><br class=""></div><div class="">While sub-optimal, knowing that this work would provide good information.</div><div class=""><br class=""></div><div class="">Jc<br class=""></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Oct 26, 2018 at 8:29 AM Evgeniya Malikova <<a href="mailto:evgenimalikova@gmail.com" class="">evgenimalikova@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">Forgot to add, main library files, like libvtkCommonCorePython36-8.2.1.dylib are in Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/ folder.<div class=""><br class=""></div><div class="">Best regards,</div><div class="">Evgeniya<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 26 Oct 2018, at 13:23, Evgeniya Malikova <<a href="mailto:evgenimalikova@gmail.com" target="_blank" class="">evgenimalikova@gmail.com</a>> wrote:</div><br class="m_-6178899952954180551Apple-interchange-newline"><div class=""><div style="word-wrap:break-word;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" target="_blank" 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" target="_blank" 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></div></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank" class="">http://www.vtk.org/Wiki/VTK_FAQ</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank" class="">http://markmail.org/search/?q=vtkusers</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank" class="">https://public.kitware.com/mailman/listinfo/vtkusers</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></div></body></html>