<div style="font-family: Helvetica; font-size: 13px; ">Both PYTHONPATH and DYLD_LIBRARY_PATH are empty strings. But in the Python interpreter, running:<br></div><div style="font-family: Helvetica; font-size: 13px; "><br></div><div style="font-size: 13px; "><font face="'Courier New'">import sys</font></div><div style="font-size: 13px; "><font face="'Courier New'">print sys.path</font></div>
<div><div><br></div><div>gives this:</div><div><br></div><div><font face="'Courier New'">['', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages', ... '/Library/Python/2.7/site-packages/VTK-5.8.0-py2.7.egg, ...]</font></div><div><br></div><div>As for running the vtkpython executable, it too crashes:</div><div><br></div><div><div><font face="'Courier New'">dyld: Library not loaded: libvtksys.5.8.dylib</font></div><div><font face="'Courier New'"> Referenced from: /usr/local/bin/vtkpython</font></div><div><font face="'Courier New'"> Reason: image not found</font></div><div><font face="'Courier New'">[1] 27318 trace trap vtkpython</font></div></div><div><br></div><div>libvtksys.5.8.dylib is located in /usr/local/lib/vtk-5.8. I wonder if that is part of the problem?</div><div><br></div><div><br></div><div>-- </div><div>Arnav</div><div><br></div></div>
<p style="color: #A0A0A8;">On Thursday, March 29, 2012 at 5:30 PM, David Gobbi wrote:</p><blockquote type="cite"><div>
<span><div><div><div>Hmm... that's the error that I see on my system when I try loading</div><div>python 2.5 modules into python 2.6, but I imagine that you compiled</div><div>VTK against the python 2.7 dylibs, so for you everything should be</div><div>fine.</div><div><br></div><div>Do "echo $PYTHONPATH" and "echo $DYLD_LIBRARY_PATH" to make sure that</div><div>those variables aren't pointing to the wrong modules or dylibs.</div><div><br></div><div>Also try running the "vtkpython" executable in VTK's bin dir to see if</div><div>that works better.</div><div><br></div><div> - David</div><div><br></div><div><br></div><div>On Thu, Mar 29, 2012 at 5:39 PM, Arnav Moudgil <<a href="mailto:amoudgil@stanford.edu">amoudgil@stanford.edu</a>> wrote:</div><blockquote type="cite"><div><div>Hi David,</div><div><br></div><div>Yes, I had ActiveState Tcl installed as well. I deleted it and VTK found the</div><div>system installations of Tcl/Tk. So it compiles okay and, with some effort,</div><div>installs itself in the right directories. Now, however, I'm having problems</div><div>loading VTK from Python. Here's the error:</div><div><br></div><div>Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)</div><div>[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div>import vtk</div></blockquote></blockquote></blockquote><div>Fatal Python error: Interpreter not initialized (version mismatch?)</div><div>^C[1] 26559 abort python</div><div><br></div><div>Any idea what's going on here?</div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>--</div><div>Arnav</div><div><br></div><div>On Wednesday, March 28, 2012 at 6:22 PM, David Gobbi wrote:</div><div><br></div><div>Hi Arnav,</div><div><br></div><div>There is a typo in your CMakeCache, in the TCL_INCLUDE_PATH.</div><div><br></div><div>The error you are getting seems to indicate that there is another</div><div>tcl.h somewhere in your include path... maybe somewhere in</div><div>/usr/include or /usr/local/include. Do you have multiple Tk</div><div>installations on your machine?</div><div><br></div><div>- David</div><div><br></div><div><br></div><div>On Wed, Mar 28, 2012 at 6:11 PM, Arnav Moudgil <<a href="mailto:amoudgil@stanford.edu">amoudgil@stanford.edu</a>></div><div>wrote:</div><div><br></div><div>Hi all,</div><div><br></div><div>I've been trying to install VTK on my Mac for the past two days and have not</div><div>been successful. First I was getting this error:</div><div><br></div><div>..../VTK/Rendering/vtkCocoaTkUtilities.mm:57: error: ‘struct</div><div>TkWindowPrivate’ has no member named ‘view’</div><div><br></div><div><br></div><div>I subsequently changed all references of Tcl/Tk to the system installation</div><div>of Tcl/Tk, as outlined here:</div><div><a href="http://www.vtk.org/pipermail/vtkusers/2011-October/119722.html">http://www.vtk.org/pipermail/vtkusers/2011-October/119722.html</a></div><div><br></div><div>I am trying to install with Java, Tcl, and Python wrappings, though if it</div><div>helps any I can gget by with just the Python wrappings. Here is the error I</div><div>currently get:</div><div><br></div><div><br></div><div>Scanning dependencies of target vtkRenderingPythonTkWidgets</div><div><br></div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/vtkTkWidgetsInit.cxx.o</div><div>In file included from /Users/ocean57/Downloads/VTK/Common/vtkTk.h:26,</div><div>from</div><div>/Users/ocean57/Downloads/VTK/Rendering/vtkTkWidgetsInit.cxx:16:</div><div>/System/Library/Frameworks/Tk.framework/Headers/tk.h:23:3: error: #error Tk</div><div>8.5 must be compiled with tcl.h from Tcl 8.5</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLLightingPainterPython.cxx.o</div><div>make[2]: ***</div><div>[Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/vtkTkWidgetsInit.cxx.o]</div><div>Error 1</div><div>make[1]: *** [Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/all]</div><div>Error 2</div><div>make[1]: *** Waiting for unfinished jobs....</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLPainterDeviceAdapterPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLPolyDataMapperPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLPolyDataMapper2DPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLPropertyPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLRenderWindowPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLRendererPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLRepresentationPainterPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLScalarsToColorsPainterPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLTexturePython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOverlayPassPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkRenderPassCollectionPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkSequencePassPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkShadowMapBakerPassPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkShadowMapPassPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkSobelGradientMagnitudePassPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkTranslucentPassPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkUniformVariablesPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkVolumetricPassPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkGLSLShaderPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkGLSLShaderDeviceAdapterPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkGLSLShaderProgramPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkFreeTypeLabelRenderStrategyPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLFreeTypeTextMapperPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkGenericOpenGLRenderWindowPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkCocoaRenderWindowInteractorPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkCocoaRenderWindowPython.cxx.o</div><div>[ 64%] Building CXX object</div><div>Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkRenderingPythonInit.cxx.o</div><div>Linking CXX shared library ../bin/libvtkRenderingPythonD.dylib</div><div>[ 64%] Built target vtkRenderingPythonD</div><div>make: *** [all] Error 2</div><div><br></div><div>My CMakeCache.txt file is here: <a href="http://stanford.edu/~amoudgil/CMakeCache.txt">http://stanford.edu/~amoudgil/CMakeCache.txt</a></div><div><br></div><div>Please help! Thanks!</div></div></blockquote></div></div></span>
</div></blockquote><div>
<br>
</div>