<div dir="ltr"><div><div>Hi Amit,<br><br>Since you appear to be using OSX, the environment variable you want is DYLD_LIBRARY_PATH, not LD_LIBRARY_PATH.<br><br></div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 22, 2015 at 1:32 PM, Amit Goel <span dir="ltr"><<a href="mailto:Amit.Goel@ucf.edu" target="_blank">Amit.Goel@ucf.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Hi
<div><br>
</div>
<div>I downloaded the Paraview app and put it in a folder. Then I tried following instructions on this page: <a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/py-doc/quick-start.html" target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/py-doc/quick-start.html</a></div>
<div><br>
</div>
<div>
<div style="margin:0px;font-size:11px;font-family:Menlo">export PYTHONPATH=/Applications/ArmandoApps/paraview.app/Contents/Python:$PYTHONPATH</div>
</div>
<div style="margin:0px">
<div style="font-family:Menlo;font-size:11px;margin:0px">export LD_LIBRARY_PATH=/Applications/ArmandoApps/paraview.app/Contents/Libraries/:$LD_LIBRARY_PATH</div>
<div style="font-family:Menlo;font-size:11px;margin:0px"><br>
</div>
<div style="font-family:Menlo;font-size:11px;margin:0px">and I get this error:</div>
<div style="font-family:Menlo;font-size:11px;margin:0px"><br>
</div>
<div style="margin:0px">
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px">Python 2.7.10 (default, Sep 14 2015, 23:52:44) </span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px">[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px">Type "copyright", "credits" or "license()" for more information.</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px">>>> from paraview.simple import *</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px">Error: Could not import vtkCommonComputationalGeometryPython</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px"><br>
</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px">Traceback (most recent call last):</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px"> File "<pyshell#0>", line 1, in <module></span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px"> from paraview.simple import *</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px"> File "/Applications/ArmandoApps/paraview.app/Contents/Python/paraview/simple.py", line 39, in <module></span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px"> import servermanager</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px"> File "/Applications/ArmandoApps/paraview.app/Contents/Python/paraview/servermanager.py", line 48, in <module></span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px"> import paraview, re, os, os.path, new, sys, atexit, vtk</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px"> File "/Applications/ArmandoApps/paraview.app/Contents/Python/paraview/vtk/__init__.py", line 7, in <module></span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px"> from vtkCommonCorePython import *</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px">ImportError: No module named vtkCommonCorePython</span></font></div>
<div style="margin:0px"><font face="Menlo"><span style="font-size:11px">>>> </span></font></div>
<div style="font-family:Menlo;font-size:11px"><br>
</div>
<div style="font-family:Menlo;font-size:11px">When i add vtk subfolder also to PYTHONPATH, I get this error:</div>
<div style="font-family:Menlo;font-size:11px"><br>
</div>
<div>
<div><font face="Menlo"><span style="font-size:11px">ImportError: dlopen(/Applications/ArmandoApps/paraview.app/Contents/Python/vtk/vtkCommonCorePython.so, 2): Library not loaded: @executable_path/../Libraries/libvtkCommonCorePython27D-pv4.3.1.dylib</span></font></div>
<div><font face="Menlo"><span style="font-size:11px"> Referenced from: /Applications/ArmandoApps/paraview.app/Contents/Python/vtk/vtkCommonCorePython.so</span></font></div>
<div><font face="Menlo"><span style="font-size:11px"> Reason: image not found</span></font></div>
</div>
<div><font face="Menlo"><span style="font-size:11px"><br>
</span></font></div>
<div><span style="font-family:Menlo;font-size:11px">vtkCommonCorePython.so is present in LD_LIBRARY_PATH set earlier.</span></div>
<div style="font-family:Menlo;font-size:11px"><br>
</div>
<div style="font-family:Menlo;font-size:11px">So question is: Am I following correct instructions ?</div>
<div style="font-family:Menlo;font-size:11px"><br>
</div>
<div style="font-family:Menlo;font-size:11px">I guess there are three scenarios I would be working with in coming days:</div>
<div style="font-family:Menlo;font-size:11px"><br>
</div>
<div style="font-family:Menlo;font-size:11px">1. python code to run default python.app on my local MacOS, read H5Part file and visualize it.</div>
<div style="font-family:Menlo;font-size:11px">2. python code to run compiled python on my cluster</div>
<div style="font-family:Menlo;font-size:11px">3. python code to run compiled python server on my cluster</div>
<div style="font-family:Menlo;font-size:11px"><br>
</div>
<div style="font-family:Menlo;font-size:11px">I dont know yet what would the difference in 2nd and 3rd point but for now I am trying to write a python script that would start python and open a file and visualize it.</div>
<div style="font-family:Menlo;font-size:11px"><br>
</div>
<div style="font-family:Menlo;font-size:11px">Any help would be highly appreciated.</div>
<div style="font-family:Menlo;font-size:11px"><br>
</div>
<div style="font-family:Menlo;font-size:11px">Regards</div><span class="HOEnZb"><font color="#888888">
<div style="font-family:Menlo;font-size:11px"><br>
</div>
<div style="font-family:Menlo;font-size:11px">Amit</div>
<div style="font-family:Menlo;font-size:11px"><br>
</div>
</font></span></div>
</div>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>