[Paraview] pvpython and H5Part Issues

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed Oct 21 14:50:50 EDT 2015


Hi Amit,

inside pvpython you should do the following

from paraview.simple import *
LoadDistributedPlugin('H5PartReader', ns=globals())

Then you should be good.

Seb

On Wed, Oct 21, 2015 at 12:36 PM, Amit Goel <Amit.Goel at ucf.edu> wrote:

>  I used GUI to generate a python script from the actions of visualizing
> and h5part file. From GUI I can see the visualization, but when I use
> pvpython, this is the error I get:
>
>
> fluid:~ armando$
> /Applications/ArmandoApps/paraview.app/Contents/bin/pvpython
> Python 2.7.10 (default, Jul 14 2015, 19:46:27)
> [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> armandoh5part =
> H5PartReader(FileName='/Users/—-snip--/accretionsim/build/armando.h5part')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'H5PartReader' is not defined
>
> The H5Part plugin is enabled in GUI, thats how I was able to visualize and
> generate the script.
>
> Do I have to load the plugin in pvpython ? If yes then how can I do that ?
>
> Regards
>
> Amit
>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20151021/4f2fa9e3/attachment.html>


More information about the ParaView mailing list