[Paraview] ParaView, Python and the CLR

Andy Bauer andy.bauer at kitware.com
Fri Nov 4 18:30:26 EDT 2016


You may need to set things like your PYTHONPATH and LD_LIBRARY_PATH in the
programmable source itself instead of in the environment you're running
ParaView from. For example:
import sys
sys.path.append("/home/me/mypy")

Remember that the programmable source runs the script on the server.


On Fri, Nov 4, 2016 at 5:37 PM, Christian Gabriel <
cgabriel at matrix-solutions.com> wrote:

> Good day
>
>
>
> I’m trying to use a Programmable Source to read data from a proprietary
> file format (DHI/MikeZero).
>
>
>
> I have access to its SDK via Python, however, it uses managed code
> (natively written in C#), hence I got my environment set up to use the CLR
> module and add references to the MikeZero SDK:
>
>
>
> import clr
>
> clr.AddReference("DHI.Generic.MikeZero.DFS")
>
> from DHI.Generic.MikeZero.DFS import *
>
>
>
> This works well in “stand alone” python scripts.
>
>
>
> I tried using the same approach in ParaView/Programmable Source, but it
> can’t find the CLR module.
>
>
>
> Is there a set-up step I’m missing in the ParaView Environment to get
> access to external modules such as CLR?
>
>
>
> Thanks, Chris
>
>
>
> _______________________________________________
> 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/20161104/d9caee1f/attachment.html>


More information about the ParaView mailing list