[vtkusers] Can't run build vtk from source with python wrappings
Evgeniya Malikova
evgenimalikova at gmail.com
Fri Oct 26 08:23:17 EDT 2018
Hello, I’m trying to run vtk with python wrappings build from source https://gitlab.kitware.com/vtk/vtk.git. 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 https://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder <https://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder>):
Traceback (most recent call last):
File "/Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/vtkCommonCore.py", line 5, in <module>
from .vtkCommonCorePython import *
ImportError: dlopen(/Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/vtkCommonCorePython.so, 2): Library not loaded: @rpath/libvtkCommonCorePython36D-8.2.1.dylib
Referenced from: /Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/vtkCommonCorePython.so
Reason: image not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/evgeniya/PycharmProjects/untitled/vtk_test.py", line 1, in <module>
import vtk
File "/Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/__init__.py", line 7, in <module>
from .vtkCommonCore import *
File "/Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/vtkCommonCore.py", line 9, in <module>
from vtkCommonCorePython import *
ModuleNotFoundError: No module named ‘vtkCommonCorePython'
This is the error with added path to /Users/evgeniya/anaconda3/lib/python3.6/site-packages/vtk/ to PYTHONPATH variable.
Looks very much like libraries are found but can’t be loaded for some reasons. Any suggestions what can cause such an error?
Thank you very much in advance,
Best regards,
Evgeniya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181026/5b83a491/attachment.html>
More information about the vtkusers
mailing list