<p dir="ltr">Hi,</p>
<p dir="ltr">I think you should *add* the Paraview <br>
path to the environment variable. Now<br>
you overwrite it. So the typical syntax<br>
is (bash):</p>
<p dir="ltr">export avar=adir:$avar</p>
<p dir="ltr">(Send from my phone, so I hope the formatting is reasonable).</p>
<p dir="ltr">Marco</p>
<div class="gmail_quote">Op 23 sep. 2015 01:16 schreef "Amit Goel" <<a href="mailto:Amit.Goel@ucf.edu">Amit.Goel@ucf.edu</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
There is this weird behaviour :
<div><br>
</div>
<div>
<div style="margin:0px;font-size:11px;font-family:Menlo">fluid:~ armando$ export DYLD_LIBRARY_PATH=/lib</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">fluid:~ armando$ idle</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">idle works just fine even if I point DYLD_LIBRARY_PATH to anything… as in above example /lib</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">But when I set it to paraview:</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">
<div style="margin:0px">fluid:~ armando$ export DYLD_LIBRARY_PATH=/Applications/ArmandoApps/paraview.app/Contents/Libraries/</div>
<div style="margin:0px">fluid:~ armando$ idle</div>
<div style="margin:0px">** IDLE can't import Tkinter.</div>
<div style="margin:0px">Your Python may not be configured for Tk. **</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">I get tkinter error.</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">Any ideas anyone please ?</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">Regards</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">amit</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px"><br>
</div>
</div>
<div>
<blockquote type="cite">
<div>On Sep 22, 2015, at 2:03 PM, Amit Goel <<a href="mailto:amit.goel@ucf.edu" target="_blank">amit.goel@ucf.edu</a>> wrote:</div>
<br>
<div>
<div style="word-wrap:break-word">
Thanks for the help. When I set DYLD now the idle stops working:
<div><br>
</div>
<div>
<div style="margin:0px;font-size:11px;font-family:Menlo">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">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">fluid:~ armando$ idle</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">** IDLE can't import Tkinter.</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Your Python may not be configured for Tk. **</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">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"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">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"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Regards</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">amit</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"><br>
</div>
<div style="margin:0px;font-size:11px;font-family:Menlo"><br>
</div>
<div>
<blockquote type="cite">
<div>On Sep 22, 2015, at 1:35 PM, Shawn Waldon <<a href="mailto:shawn.waldon@kitware.com" target="_blank">shawn.waldon@kitware.com</a>> wrote:</div>
<br>
<div>
<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><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>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" 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" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</div>
</blockquote>
</div>
<br>
</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>