[Paraview] ParaView, Python and the CLR

Christian Gabriel cgabriel at matrix-solutions.com
Fri Nov 4 20:18:11 EDT 2016


Thanks ... Will look into that

Luckily, our models aren't large enough to run them distributed/on clients, hence I don't think I'll have to worry about that too much, but will keep that in mind as well ..

Chris

------ Original message------
From: Andy Bauer
Date: Fri, Nov 4, 2016 6:30 PM
To: Christian Gabriel;
Cc: paraview at paraview.org;
Subject:Re: [Paraview] ParaView, Python and the CLR

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<mailto: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<http://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




More information about the ParaView mailing list