<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Thanks for the help. When I set DYLD now the idle stops working:
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">fluid:~ armando$ export DYLD_LIBRARY_PATH=/Applications/ArmandoApps/paraview.app/Contents/Libraries/:$DYLD_LIBRARY_PATH</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">fluid:~ armando$ export PYTHONPATH=/Applications/ArmandoApps/paraview.app/Contents/Python/vtk:/Applications/ArmandoApps/paraview.app/Contents/Python:$PYTHONPATH</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">fluid:~ armando$ idle</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">** IDLE can't import Tkinter.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Your Python may not be configured for Tk. **</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I have python and py-tkinter installed using macports and if I open a new terminal, idle just works fine.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I am searching on Macports / python and other forums… if anyone on paraview list has encountered it before please let me know.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Regards</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">amit</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Sep 22, 2015, at 1:35 PM, Shawn Waldon <<a href="mailto:shawn.waldon@kitware.com" class="">shawn.waldon@kitware.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">Hi Amit,<br class="">
<br class="">
Since you appear to be using OSX, the environment variable you want is DYLD_LIBRARY_PATH, not LD_LIBRARY_PATH.<br class="">
<br class="">
</div>
HTH,<br class="">
</div>
Shawn<br class="">
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Tue, Sep 22, 2015 at 1:32 PM, Amit Goel <span dir="ltr" class="">
<<a href="mailto:Amit.Goel@ucf.edu" target="_blank" class="">Amit.Goel@ucf.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">Hi
<div class=""><br class="">
</div>
<div class="">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" class="">http://www.paraview.org/ParaView3/Doc/Nightly/www/py-doc/quick-start.html</a></div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin:0px;font-size:11px;font-family:Menlo" class="">export PYTHONPATH=/Applications/ArmandoApps/paraview.app/Contents/Python:$PYTHONPATH</div>
</div>
<div style="margin:0px" class="">
<div style="font-family:Menlo;font-size:11px;margin:0px" class="">export LD_LIBRARY_PATH=/Applications/ArmandoApps/paraview.app/Contents/Libraries/:$LD_LIBRARY_PATH</div>
<div style="font-family:Menlo;font-size:11px;margin:0px" class=""><br class="">
</div>
<div style="font-family:Menlo;font-size:11px;margin:0px" class="">and I get this error:</div>
<div style="font-family:Menlo;font-size:11px;margin:0px" class=""><br class="">
</div>
<div style="margin:0px" class="">
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">Python 2.7.10 (default, Sep 14 2015, 23:52:44) </span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">Type "copyright", "credits" or "license()" for more information.</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">>>> from paraview.simple import *</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">Error: Could not import vtkCommonComputationalGeometryPython</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class=""><br class="">
</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">Traceback (most recent call last):</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">  File "<pyshell#0>", line 1, in <module></span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">    from paraview.simple import *</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">  File "/Applications/ArmandoApps/paraview.app/Contents/Python/paraview/simple.py", line 39, in <module></span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">    import servermanager</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">  File "/Applications/ArmandoApps/paraview.app/Contents/Python/paraview/servermanager.py", line 48, in <module></span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">    import paraview, re, os, os.path, new, sys, atexit, vtk</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">  File "/Applications/ArmandoApps/paraview.app/Contents/Python/paraview/vtk/__init__.py", line 7, in <module></span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">    from vtkCommonCorePython import *</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">ImportError: No module named vtkCommonCorePython</span></font></div>
<div style="margin:0px" class=""><font face="Menlo" class=""><span style="font-size:11px" class="">>>> </span></font></div>
<div style="font-family:Menlo;font-size:11px" class=""><br class="">
</div>
<div style="font-family:Menlo;font-size:11px" class="">When i add vtk subfolder also to PYTHONPATH, I get this error:</div>
<div style="font-family:Menlo;font-size:11px" class=""><br class="">
</div>
<div class="">
<div class=""><font face="Menlo" class=""><span style="font-size:11px" class="">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 class=""><font face="Menlo" class=""><span style="font-size:11px" class="">  Referenced from: /Applications/ArmandoApps/paraview.app/Contents/Python/vtk/vtkCommonCorePython.so</span></font></div>
<div class=""><font face="Menlo" class=""><span style="font-size:11px" class="">  Reason: image not found</span></font></div>
</div>
<div class=""><font face="Menlo" class=""><span style="font-size:11px" class=""><br class="">
</span></font></div>
<div class=""><span style="font-family:Menlo;font-size:11px" class="">vtkCommonCorePython.so is present in LD_LIBRARY_PATH set earlier.</span></div>
<div style="font-family:Menlo;font-size:11px" class=""><br class="">
</div>
<div style="font-family:Menlo;font-size:11px" class="">So question is: Am I following correct instructions ?</div>
<div style="font-family:Menlo;font-size:11px" class=""><br class="">
</div>
<div style="font-family:Menlo;font-size:11px" class="">I guess there are three scenarios I would be working with in coming days:</div>
<div style="font-family:Menlo;font-size:11px" class=""><br class="">
</div>
<div style="font-family:Menlo;font-size:11px" class="">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" class="">2. python code to run compiled python on my cluster</div>
<div style="font-family:Menlo;font-size:11px" class="">3. python code to run compiled python server on my cluster</div>
<div style="font-family:Menlo;font-size:11px" class=""><br class="">
</div>
<div style="font-family:Menlo;font-size:11px" class="">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" class=""><br class="">
</div>
<div style="font-family:Menlo;font-size:11px" class="">Any help would be highly appreciated.</div>
<div style="font-family:Menlo;font-size:11px" class=""><br class="">
</div>
<div style="font-family:Menlo;font-size:11px" class="">Regards</div>
<span class="HOEnZb"><font color="#888888" class="">
<div style="font-family:Menlo;font-size:11px" class=""><br class="">
</div>
<div style="font-family:Menlo;font-size:11px" class="">Amit</div>
<div style="font-family:Menlo;font-size:11px" class=""><br class="">
</div>
</font></span></div>
</div>
</div>
<br class="">
_______________________________________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">
www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">
http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank" class="">
http://paraview.org/Wiki/ParaView</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank" class="">
http://markmail.org/search/?q=ParaView</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank" class="">http://public.kitware.com/mailman/listinfo/paraview</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>