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><div><br></div><div><br></div>-- <br>Chukwudi Chukwudozie <br><a href="mailto:cchukw1@tigers.lsu.edu">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:3373546822<br>Office: 2255786064
</div>