For PYTHONPATH, try removing the last /paraview components from the path, so you&#39;re setting:   /Applications/ParaView.app/Contents/Python  <br><br>Also add /Applications/ParaView.app/Contents/Libraries to PYTHONPATH and DYLD_LIBRARY_PATH.  Note, that is DYLD not LD.  You don&#39;t need to add the Contents/bin directory to DYLD_LIBRARY_PATH, and you don&#39;t need to add DYLD_LIBRARY_PATH to PATH, and you don&#39;t need to add PYTHONPATH to PATH.<br>

<br><br>In summary, ParaView uses both pure python modules and c extension modules.  The pure python modules are in Contents/Python, and the c extension modules are in Contents/Libraries.  Both these paths should be on PYTHONPATH (or append sys.path at the top of your main script).  The c extenion modules have dependencies on dynamic libraries which are located in Contents/Libraries, so Contents/Libraries this needs to be in the DYLD_LIBRARY_PATH.<br>

<br>Pat<br><br><br><div class="gmail_quote">On Sat, Mar 16, 2013 at 12:58 PM, Chukwudi Chukwudozie <span dir="ltr">&lt;<a href="mailto:cchukw1@tigers.lsu.edu" target="_blank">cchukw1@tigers.lsu.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, <div><br></div><div>I want help to be able to do the following two things using my mac OS X 10.7.5 but I have not been successful.</div>

<div><br></div><div>1. Run a paraview python script on terminal using pvpython.</div>
<div>2. Run the same script on terminal using python.<br clear="all"><div><br></div><div>For (1) above, I saved the trace for a particular operation and ran it using pvpython and it worked. However, I got a paraview python scripts (newscript.py) on the internet and when I try to run them on my terminal using pvpython, it aborts with the error below.</div>


<div><br></div><div><div>Traceback (most recent call last):</div><div>  File &quot;newscript.py&quot;, line 3, in &lt;module&gt;</div><div>    Connect()</div><div>  File &quot;/Applications/ParaView.app/Contents/Python/paraview/servermanager.py&quot;, line 1932, in Connect</div>


<div>    connection = Connection(id, session)</div><div>  File &quot;/Applications/ParaView.app/Contents/Python/paraview/servermanager.py&quot;, line 1806, in __init__</div><div>    raise RuntimeError, &quot;Concurrent connections not supported!&quot;</div>


<div>RuntimeError: Concurrent connections not supported!</div></div><div><br></div><div><br></div><div>For (2) above, I tried to run on my terminal using system python, the saved trace (newparaview.py) that was successful with pvpython and it keeps aborting with the following error messages</div>


<div><br></div><div><div>Traceback (most recent call last):</div><div>  File &quot;newparaview.py&quot;, line 2, in &lt;module&gt;</div><div>    from paraview.servermanager import *</div><div>ImportError: No module named paraview.servermanager</div>


</div><div><br></div><div>My .bash_profile file looks like this.</div><div><br></div><div><div>export LD_LIBRARY_PATH=/Applications/ParaView.app/Contents/bin</div><div>export PATH=$PATH:${LD_LIBRARY_PATH}</div><div><br></div>


<div>export PYTHONPATH=$PYTHONPATH:/Applications/ParaView.app/Contents/Python/paraview:/Applications/ParaView.app/Contents/bin</div><div>export PATH=$PATH:{$PYTHONPATH}</div><div><br></div><div># Setting PATH for EPD_free-7.2-2</div>


<div># The orginal version is saved in .bash_profile.pysave</div><div>PATH=&quot;/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}&quot;</div><div>export PATH</div></div><div><br></div><div><br></div><div>


Regards,</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div>-- <br>Chukwudi Chukwudozie <br><a href="mailto:cchukw1@tigers.lsu.edu" target="_blank">cchukw1@tigers.lsu.edu</a><br>Craft and Hawkins Department of Petroleum Engineering<br>

Louisiana State University<br>
Patrick F. Taylor Hall (CEBA)<br>Room 3429<br>Baton Rouge LA, 70803<br>Cell:<a href="tel:3373546822" value="+13373546822" target="_blank">3373546822</a><br>Office: <a href="tel:2255786064" value="+12255786064" target="_blank">2255786064</a>
</font></span></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>