<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks, this works fine.<div>I have been looking forward to using paraview.simple in the regular python prompt.</div><div>pvpython is nice but the prompt does not provide all the features of the full prompt from python so this is a big improvement for me!</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Best,</div><div>Luc</div></span>
</div>
<br><div><div>On 16 avr. 2014, at 08:22, Utkarsh Ayachit wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Including the script inline this time:<br><br>----------------------------------------------------------------<br># Path to look for missing *.dyld files under.<br>export DYLD_FALLBACK_LIBRARY_PATH="/Users/utkarsh/Desktop/paraview4.1.0.app/Contents/Libraries"<br><br># Path to look for missing *.so files under.<br>export LD_LIBRARY_PATH="/Users/utkarsh/Desktop/paraview4.1.0.app/Contents/Libraries"<br><br># Path to look for missing frameworks under.<br>export DYLD_FALLBACK_FRAMEWORK_PATH="/Users/utkarsh/Desktop/paraview4.1.0.app/Contents/Frameworks"<br><br># Path where Python should find Python Modules and Packages.<br>export PYTHONPATH=/Users/utkarsh/Desktop/paraview4.1.0.app/Contents/Python:/Users/utkarsh/Desktop/paraview4.1.0.app/Contents/Libraries<br><br># Now run Python.<br>python2.6<br>---------------------------------------------------------------------------<br><br>On Wed, Apr 16, 2014 at 8:20 AM, Utkarsh Ayachit<br><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br><blockquote type="cite">If you want to use Python27, download the<br></blockquote><blockquote type="cite">"ParaView-4.1.0-Darwin-64bit-Lion-Python27.dmg" binary. You're using<br></blockquote><blockquote type="cite">the one built forPython 2.6.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Attached is a script I use to run ParaView with Python 2.6. Simply<br></blockquote><blockquote type="cite">update the script to point to directories on your machine and then run<br></blockquote><blockquote type="cite">"python2.7" instead of python2.6". Hope that helps.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Mon, Apr 7, 2014 at 8:28 PM, Luc Berger-Vergiat <<a href="mailto:lb2653@columbia.edu">lb2653@columbia.edu</a>> wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Hi,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I am having difficulties to load paraview.simple in python 2.7 on my mac.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I installed the latest paraview app which is paraview.4.1.0<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Here is what I do in my terminal:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Luc$ python<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Type "help", "copyright", "credits" or "license" for more information.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">from paraview.simple import *<br></blockquote></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Error: Could not import vtkCommonComputationalGeometryPython<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Traceback (most recent call last):<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  File "<stdin>", line 1, in <module><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  File "/Applications/paraview.app/Contents/Python/paraview/simple.py", line 41, in <module><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">    import servermanager<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  File "/Applications/paraview.app/Contents/Python/paraview/servermanager.py", line 48, in <module><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">    import paraview, re, os, os.path, new, sys, atexit, vtk<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  File "/Applications/paraview.app/Contents/Python/paraview/vtk/__init__.py", line 7, in <module><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">    from vtkCommonCorePython import *<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ImportError: dlopen(/Applications/paraview.app/Contents/Libraries/vtkCommonCorePython.so, 2): Library not loaded: @executable_path/../Libraries/libvtkCommonCorePython26D-pv4.1.1.dylib<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  Referenced from: /Applications/paraview.app/Contents/Libraries/vtkCommonCorePython.so<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  Reason: image not found<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">here are my PYTHONPATH and DYLD_LIBRARY_PATH variables.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">PYTHONPATH="/Applications/paraview.app/Contents/Python:/Applications/paraview.app/Contents/Libraries:/Users/Luc/FEAP/ShearBands/prepost_tools:${PYTHONPATH}"<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">export PYTHONPATH<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">DYLD_LIBRARY_PATH="/Applications/paraview.app/Contents/bin:/Applications/paraview.app/Contents/Python:/Applications/paraview.app/Contents/Libraries:${DYLD_LIBRARY_PATH}"<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">export DYLD_LIBRARY_PATH<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">My suspicion is that @executable_path/../Libraries/libvtkCommonCorePython26D-pv4.1.1.dylib is not correct for some reason. Maybe @executable_path/../ is not interpreted correctly by my system?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">How can I fix this issue?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Best,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Luc<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Powered by <a href="http://www.kitware.com">www.kitware.com</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Follow this link to subscribe/unsubscribe:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br></blockquote></blockquote></div></blockquote></div><br></div></body></html>