<html><head></head><body bgcolor="#FFFFFF"><div>Ya that is exactly what I did, does the python version has to be the same to the one with paraview ? <br><br>Sent from my iPhone</div><div><br>On Oct 8, 2012, at 4:45 PM, "Pat Marion" <<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>You need to do both things.<br><br>1) Set DYLD_LIBRARY_PATH<br>2) Set the sys.path as Leo said in the earlier email. You can also set the PYTHONPATH environment variable instead of appending sys.path in python.<br><br>Pat<br>
<br><div class="gmail_quote">On Sat, Oct 6, 2012 at 5:27 PM, the lily <span dir="ltr"><<a href="mailto:the.1.lily@hotmail.com" target="_blank">the.1.lily@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<br>I tried that but it is still not working <div><br></div><div>I get the same error when I try to import paraview </div><div><br></div><div><br></div><div><div>ImportError Traceback (most recent call last)</div>
<div><ipython-input-1-65ab27a8486b> in <module>()</div><div>----> 1 from paraview import simple as pvsimple</div><div class="im"><div><br></div><div>ImportError: No module named paraview</div><div><br></div>
</div><div><div></div><hr>From: <a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a><br>Date: Sat, 6 Oct 2012 14:39:03 -0400<div class="im"><br>Subject: Re: [Paraview] importing paraview from ipython<br>
</div>To: <a href="mailto:the.1.lily@hotmail.com" target="_blank">the.1.lily@hotmail.com</a><br>CC: <a href="mailto:leo.liu@kitware.com" target="_blank">leo.liu@kitware.com</a>; <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><div>
<div class="h5"><br><br>You need to set the environment variable DYLD_LIBRARY_PATH to the directory that contains libvtkCommonPythonD.dylib. Try entering this into your Terminal before launching ipython:<br><br><br>$ export DYLD_LIBRARY_PATH=/Applications/Paraview/Contents/Libraries<br>
$ ipython<br><br>Pat<br><br><br><div>On Fri, Oct 5, 2012 at 4:35 PM, the lily <span dir="ltr"><<a href="mailto:the.1.lily@hotmail.com" target="_blank">the.1.lily@hotmail.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<br>Hi<div><br></div><div>I have appended all the paths from pvpython to ipython but still not working now I get the following error</div><div><br></div><div><div>ImportError: dlopen(/Applications/Paraview/Contents/Libraries/vtkCommonPython.so, 2): Library not loaded: @executable_path/../Libraries/libvtkCommonPythonD.pv3.14.dylib</div>
<div> Referenced from: /Applications/Paraview/Contents/Libraries/vtkCommonPython.so</div><div> Reason: image not found</div><div><br></div><div><br></div><div>hope someone can help</div><div><br></div><div>
<div><br></div></div><div><div><div></div><hr>From: <a href="mailto:the.1.lily@hotmail.com" target="_blank">the.1.lily@hotmail.com</a><br>To: <a href="mailto:leo.liu@kitware.com" target="_blank">leo.liu@kitware.com</a><br>
Date: Fri, 5 Oct 2012 23:15:22 +0300<br>CC: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a></div><div><div><br>Subject: Re: [Paraview] importing paraview from ipython<br><br>
<div dir="ltr">
<div><br></div>thanks but how can I access the sys.path <div><br></div><div>I mean where is that located ?</div><div><br></div><div><br><div><div></div><hr>Date: Fri, 5 Oct 2012 11:24:00 -0400<br>Subject: Re: [Paraview] importing paraview from ipython<br>
From: <a href="mailto:leo.liu@kitware.com" target="_blank">leo.liu@kitware.com</a><br>To: <a href="mailto:the.1.lily@hotmail.com" target="_blank">the.1.lily@hotmail.com</a><br>CC: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<br>Looks like your python paths aren't set up correctly. I would do:<div><br></div><div>- Run pvpython and do "import sys; print sys.path". You should see a bunch of paths related to ParaView python.</div>
<div>
- In ipython, append these paths to your sys.path. I think ipython also has a start up script, something like ipy_user_conf.py. If you do the importing there, you can save your self from having to retype this every time</div>
<div><br></div><div>Leo</div><div><br></div><div><div>On Fri, Oct 5, 2012 at 10:08 AM, the lily <span dir="ltr"><<a href="mailto:the.1.lily@hotmail.com" target="_blank">the.1.lily@hotmail.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<div><br></div><div><br></div><div>Dear all</div><div><br></div><div>I would like to import Paraview from ipython</div><div><br></div><div>but I get the following error</div><div><br></div><div> <span style="font-size:10pt">ImportError: No module named paraview</span></div>
<div><span style="font-size:10pt"><br></span></div><div>is there a way to connect paraview with ipython</div><div><br></div><div><br></div><div><br></div><div>thanks</div>                                            </div></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></div></div>                                            </div>
<br>_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>
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>
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>
Follow this link to subscribe/unsubscribe:
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a></div></div></div></div>                                            </div></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></div></div></div>                                            </div></div>
</blockquote></div><br>
</div></blockquote></body></html>