[Paraview] importing paraview from ipython

Pat Marion pat.marion at kitware.com
Sat Oct 6 14:39:03 EDT 2012


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.comVisit 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/ParaViewFollow 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/20121006/f55e9bef/attachment.htm>


More information about the ParaView mailing list