conflict vtk vs. paraview
Jonathan Stickel
jjstickel at gmail.com
Tue May 1 15:56:12 UTC 2018
On 5/1/18 06:00, macports-users-request at lists.macports.org wrote:
> Date: Tue, 1 May 2018 10:48:02 +0200
> From: "petr.2006"<petr.2006 at centrum.cz>
> To: MacPorts Users<macports-users at lists.macports.org>
> Subject: conflict vtk vs. paraview
> Message-ID:<4FE9582D-9361-4166-B2A2-96DA1A9F9CC0 at centrum.cz>
> 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
More information about the macports-users
mailing list