[Paraview] importing paraview from ipython

the lily the.1.lily at hotmail.com
Tue Oct 9 08:58:15 EDT 2012


Ya that is exactly what I did, does the python version has to be the same to the one with paraview ? 

Sent from my iPhone

On Oct 8, 2012, at 4:45 PM, "Pat Marion" <pat.marion at kitware.com> wrote:

> You need to do both things.
> 
> 1) Set DYLD_LIBRARY_PATH
> 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.
> 
> Pat
> 
> On Sat, Oct 6, 2012 at 5:27 PM, the lily <the.1.lily at hotmail.com> wrote:
> 
> I tried that but it is still not working 
> 
> I get the same error when I try to import paraview 
> 
> 
> ImportError                               Traceback (most recent call last)
> <ipython-input-1-65ab27a8486b> in <module>()
> ----> 1 from paraview import simple as pvsimple
> 
> ImportError: No module named paraview
> 
> From: pat.marion at kitware.com
> Date: Sat, 6 Oct 2012 14:39:03 -0400
> 
> Subject: Re: [Paraview] importing paraview from ipython
> To: the.1.lily at hotmail.com
> CC: leo.liu at kitware.com; paraview at paraview.org
> 
> 
> 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:
> 
> 
> $  export DYLD_LIBRARY_PATH=/Applications/Paraview/Contents/Libraries
> $ ipython
> 
> Pat
> 
> 
> On Fri, Oct 5, 2012 at 4:35 PM, the lily <the.1.lily at hotmail.com> wrote:
> 
> Hi
> 
> I have appended all the paths from pvpython to ipython but still not working now I get the following error
> 
> ImportError: dlopen(/Applications/Paraview/Contents/Libraries/vtkCommonPython.so, 2): Library not loaded: @executable_path/../Libraries/libvtkCommonPythonD.pv3.14.dylib
>   Referenced from: /Applications/Paraview/Contents/Libraries/vtkCommonPython.so
>   Reason: image not found
> 
> 
> hope someone can help
> 
> 
> From: the.1.lily at hotmail.com
> To: leo.liu at kitware.com
> Date: Fri, 5 Oct 2012 23:15:22 +0300
> CC: paraview at paraview.org
> 
> Subject: Re: [Paraview] importing paraview from ipython
> 
> 
> thanks but how can I access the sys.path 
> 
> I mean where is that located ?
> 
> 
> Date: Fri, 5 Oct 2012 11:24:00 -0400
> Subject: Re: [Paraview] importing paraview from ipython
> From: leo.liu at kitware.com
> To: the.1.lily at hotmail.com
> CC: paraview at paraview.org
> 
> Looks like your python paths aren't set up correctly.  I would do:
> 
> - Run pvpython and do "import sys; print sys.path". You should see a bunch of paths related to ParaView python.
> - 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
> 
> Leo
> 
> On Fri, Oct 5, 2012 at 10:08 AM, the lily <the.1.lily at hotmail.com> wrote:
> 
> 
> Dear all
> 
> I would like to import Paraview from ipython
> 
> but I get the following error
> 
>  ImportError: No module named paraview
> 
> is there a way to connect paraview with ipython
> 
> 
> 
> thanks
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
> 
> 
> 
> _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20121009/05b19d26/attachment-0001.htm>


More information about the ParaView mailing list