<div dir="ltr"><div>Hi Alan,<br><br></div><div>Are they working from a version of ParaView that used the installers? That's what I'm assuming for my next comments. For Mac I think they need to use DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH. I tried going through to do this myself and wasn't able to completely do it but was getting further along. Basically I opened a Python shell and tried manually importing the parts in servermanager.py. I'm not in front of a Mac right now so I can't point you to all of the paths I was using but basically I would add parts to the DYLD_LIBRARY_PATH and then do another import where if would give me more informative errors (things like can't find library /X/Y/Z/xxx.so).<br>
<br></div><div>Not a full solution but maybe enough to get you going in the proper direction.<br><br></div><div>Regards,<br>Andy<br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 3, 2014 at 3:20 PM, Scott, W Alan <span dir="ltr"><<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<font face="Calibri"><span style="font-size:11pt">
<div>I have two users that wants to use ParaView paraview.simple commands from a generic version of Python (i.e., not pvpython). Are there any tricks to getting this to work? One user is on a Mac, the other is on Linux. As you can see, my user is having
issues even importing paraview.simple.</div>
<div> </div>
<div>Here is a copy of the errors the user is having:</div>
<div> </div>
<div> </div>
<div>>import sys</div>
<div>>sys.path</div>
<div>['/Applications/paraview.app/Contents/Python', '/Applications/paraview.app/Contents/Libraries', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/Library/Python/2.6/site-packages',
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC']</div>
<div> </div>
<div>From looking at this, I added '/Applications/paraview.app/Contents/Python' and '/Applications/paraview.app/Contents/Libraries' to my PYTHONPATH. I also made a guess at which directory to add to my LD_LIBRARY_PATH. Unfortunately, it did not work, as you
can see below:</div>
<div> </div>
<div>$ echo $PYTHONPATH</div>
<div>:/Applications/paraview.app/Contents/Libraries/:/Applications/paraview.app/Contents/Python</div>
<div> </div>
<div>$ echo $LD_LIBRARY_PATH :/Applications/paraview.app/Contents/Libraries/:/Applications/paraview.app/Contents/Python/vtk</div>
<div>$ python</div>
<div> </div>
<div>>>> import paraview.simple</div>
<div>Error: Could not import vtkCommonComputationalGeometryPython</div>
<div>Traceback (most recent call last):</div>
<div> File "<stdin>", line 1, in <module></div>
<div> File "/Applications/paraview.app/Contents/Python/paraview/simple.py", line 41, in <module></div>
<div> import servermanager</div>
<div> File "/Applications/paraview.app/Contents/Python/paraview/servermanager.py", line 48, in <module></div>
<div> import paraview, re, os, os.path, new, sys, atexit, vtk</div>
<div> File "/Applications/paraview.app/Contents/Python/paraview/vtk/__init__.py", line 7, in <module></div>
<div> from vtkCommonCorePython import *</div>
<div>ImportError: dlopen(/Applications/paraview.app/Contents/Libraries/vtkCommonCorePython.so, 2): Library not loaded: @executable_path/../Libraries/libvtkCommonCorePython26D-pv4.1.1.dylib</div>
<div> Referenced from: /Applications/paraview.app/Contents/Libraries/vtkCommonCorePython.so</div>
<div> Reason: image not found</div>
<div>>>></div>
<div> </div>
<div> </div>
<div>Thanks,</div><span class="HOEnZb"><font color="#888888">
<div> </div>
<div>Alan</div>
<div> </div>
<div> </div>
<div> </div>
</font></span></span></font>
</div>
<br>_______________________________________________<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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>