On 5/1/18 06:00, [email protected] wrote:
Date: Tue, 1 May 2018 10:48:02 +0200
From: "petr.2006"<[email protected]>
To: MacPorts Users<[email protected]>
Subject: conflict vtk vs. paraview
Message-ID:<[email protected]>
Content-Type: text/plain; charset=us-ascii
It seems that vkt (at least with python35) can not be installed together with
paraview. Paraview includes it own version of vtk and it is preferenced when it
is installed. I have just tried paraview for testing, hence it is not big issue
for me.
That is an example how python35 script fails when paraview is installed:
Traceback (most recent call last):
File "/Applications/MacPorts/paraview.app/Contents/Python/vtk/vtkCommonCore.py",
line 5, in <module>
from .vtkCommonCorePython import *
ImportError: dlopen(/Applications/MacPorts/paraview.app/Contents/Python/vtk/vtkCommonCorePython.so,
2): Library not loaded: @executable_path/../Libraries/libvtkCommonCorePython27D-pv5.4.1.dylib
Referenced from:
/Applications/MacPorts/paraview.app/Contents/Python/vtk/vtkCommonCorePython.so
Reason: image not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/pet/bin/tubes.py", line 11, in <module>
import vtk
File "/Applications/MacPorts/paraview.app/Contents/Python/vtk/__init__.py", line
41, in <module>
from .vtkCommonCore import *
File "/Applications/MacPorts/paraview.app/Contents/Python/vtk/vtkCommonCore.py",
line 9, in <module>
from vtkCommonCorePython import *
ImportError: dlopen(/Applications/MacPorts/paraview.app/Contents/Libraries/vtkCommonCorePython.so,
2): Library not loaded: @executable_path/../Libraries/libvtkCommonCorePython27D-pv5.4.1.dylib
Referenced from:
/Applications/MacPorts/paraview.app/Contents/Libraries/vtkCommonCorePython.so
Reason: image not found
From my experience, they can both be installed, but you can't have both
paraview's vtk libraries and the independent vtk libraries in
$PYTHONPATH and $DYLD_LIBRARY_PATH. You are probably adding the paraview
ones somehow before you run your script. If you don't do that, then the
independent vtk libraries should be loaded and should work OK.
Jonathan