Massimiliano Leoni | 18 Apr 12:40 2015
Picon

Pvbatch not performing significantly better in parallel

Hi everybody,

 

I am trying to run pvbatch in parallel to render an animation, with a very easy script that looks like

  • import sys
  • from paraview.simple import *

  • # read pvsm file from command line and load it
  • stateFile = sys.argv[1]
  • simulation = stateFile.split("/")[-1].split(".")[0]
  • servermanager.LoadState(stateFile)

  • # set active view and render animation
  • SetActiveView(GetRenderView())
  • WriteAnimation(simulation + ".jpg",magnification=2,quality=2)

I compiled paraview from sources, configuring with

cmake -DPARAVIEW_BUILD_QT=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DPARAVIEW_ENABLE_PYTHON=ON -DPARAVIEW_USE_MPI=ON ..

and then building all.

I am doing a benchmark on 11GB of data distributed over many pvd/vtu files [written by an MPI application in parallel].

I copied the data to a tmpfs folder to ensure the execution is not slowed down by disk access.

Executing pvbatch on 1 or 16 processors doesn't really seem to change anything.
In particular, I was expecting to see the frames appearing in blocks of 16 when running with mpi on 16 procs, but they always appear one at a time at a constant pace, which makes me suspect that the other processes aren't really contributing to the rendering.

 

What could I be doing wrong?
Any suggestion is highly appreciated.

Best regards,

Massimiliano

<div>
<p>Hi everybody,</p>
<p>&nbsp;</p>
<p>I am trying to run pvbatch in parallel to render an animation, with a very easy script that looks like</p>
<ul>
<li>import sys</li>
<li>from paraview.simple import *</li>
<li><br></li>
<li># read pvsm file from command line and load it</li>
<li>stateFile = sys.argv[1]</li>
<li>simulation = stateFile.split("/")[-1].split(".")[0]</li>
<li>servermanager.LoadState(stateFile)</li>
<li><br></li>
<li># set active view and render animation</li>
<li>SetActiveView(GetRenderView())</li>
<li>WriteAnimation(simulation + ".jpg",magnification=2,quality=2)</li>
</ul>
<p>I compiled paraview from sources, configuring with</p>
<p>cmake -DPARAVIEW_BUILD_QT=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF  -DPARAVIEW_ENABLE_PYTHON=ON -DPARAVIEW_USE_MPI=ON ..</p>
<p>and then building all.</p>
<p>I am doing a benchmark on 11GB of data distributed over many pvd/vtu files [written by an MPI application in parallel].</p>
<p>I copied the data to a tmpfs folder to ensure the execution is not slowed down by disk access.</p>
<p>Executing pvbatch on 1 or 16 processors doesn't really seem to change anything.<br>In particular, I was expecting to see the frames appearing in blocks of 16 when running with mpi on 16 procs, but they always appear one at a time at a constant pace, which makes me suspect that the other processes aren't really contributing to the rendering.</p>
<p>&nbsp;</p>
<p>What could I be doing wrong?<br>Any suggestion is highly appreciated.</p>
<p>Best regards,</p>
<p>Massimiliano</p>
</div>
Chris Richardson | 17 Apr 11:39 2015
Picon
Picon

XDMF Set


I would like to be able to specify data, or subsets of data in the XDMF
format with Edge or Facet sets.

According to the header file of XdmfSet.h:

XdmfSet is a Class that handles sets of nodes,cells,faces, and edges
	on an XdmfGrid. They may be centered on the Node, Edge,
	Face, Cell. An XdmfSet can have from 1 to 3 DataItems. The last 
DataItem
         is always the "Ids" or the indexes into Nodes, Cells, etc. If 
SetType is
         "Face" or "Edge", the First DataItem defines the CellIds. If 
SetType is
         "Edge" second DataItem defines FaceIds

I have two questions:

1) What is the purpose of the FaceIds for a set of Edges?

 From what I can tell, using ParaView, the three dataitems provide:
global CellIDs, unused FaceIDs, cell-local EdgeIds

e.g. in this case, the first DataItem "0 0 1 1" lists the cells,
      the second DataItem "0 1 2 3" is ignored, and the third DataItem "0 
1 0 2"
      lists the cell-local Edges which have data attached?

  <Set SetType="Edge" Name="edgeSet">
           <DataItem NumberType="Int" Dimensions="4" Format="XML">
               0 0 1 1
           </DataItem>
           <DataItem NumberType="Int" Dimensions="4" Format="XML">
               0 1 2 3
           </DataItem>
           <DataItem NumberType="Int" Dimensions="4" Format="XML">
               0 1 0 2
           </DataItem>
           <Attribute Name="Set Values" Center="Edge">
               <DataItem Format="XML" Dimensions="4">
               100 200 400 600
               </DataItem>
           </Attribute>
       </Set>

Is that correct?

2) How can I specify an Edge set in 2D? Nothing seems to work in this 
case,
    as ParaView complains that the cells have invalid Faces.

--

-- 
Chris Richardson
BP Institute
Madingley Road
Cambridge CB3 0EZ
周恒众 | 17 Apr 05:37 2015

Do Paraview support the parallel of ply file ?

Dear:
        I use a ply file to do the test . I use two servers to render it and MPI to support the communication . when I use the command: mpirun -n 2 /bin/env DISPLAY=:0 /usr/local/paraview4.2/bin/pvserver ,and a client connect the server . Then I render the file , I found that " vtkParallelRenderManager::SatelliteStartRender();vtkParallelRenderManager::StartRender()",the two function in vtkParallelRenderManager.cxx file isn't use in this test and these fuctions in vtkCommunicator.css:

int vtkCommunicator::Receive(vtkDataObject* data, int remoteHandle,int tag);

vtkDataObject *vtkCommunicator::ReceiveDataObject(int remoteHandle, int tag);

int vtkCommunicator::ReceiveDataObject(vtkDataObject* data, int remoteHandle,int tag, int dataType);

int vtkCommunicator::ReceiveElementalDataObject(vtkDataObject* data, int remoteHandle, int tag);

int vtkCommunicator::Receive(vtkDataArray* data, int remoteHandle, int tag)

also haven't been use on the satellite process. I can't underStand , It used which function to receive the data from the node process .  And where to distribute the data? Who can help me .Thank you !
                                                                                                                                                                                                                                 Sincerely!
                                                                                                                                                                                                                                  zhz


<div>
<div>
<div>Dear&#65306;</div>
<div>&nbsp; &nbsp; &nbsp; <span>&nbsp; I use a ply file to do the test . I use two servers to render it and MPI to support the communication . when I use the command:<span>&nbsp;mpirun -n 2 /bin/env DISPLAY=:0 /usr/local/paraview4.2/bin/pvserver ,and a client connect the server . Then I render the file , I found that "&nbsp;</span><span>vtkParallelRenderManager::SatelliteStartRender()&#65307;vtkParallelRenderManager::StartRender()",the two function in&nbsp;</span></span><span>vtkParallelRenderManager.cxx file isn't use in this test and these fuctions in&nbsp;</span><span>vtkCommunicator.css</span><span>:</span>
</div>
<div>
<p>int vtkCommunicator::Receive(vtkDataObject* data, int remoteHandle,int tag)&#65307;</p>
<p>vtkDataObject *vtkCommunicator::ReceiveDataObject(int remoteHandle, int tag)&#65307;</p>
<p>int vtkCommunicator::ReceiveDataObject(vtkDataObject* data, int remoteHandle,int tag, int dataType)&#65307;</p>
<p>int vtkCommunicator::ReceiveElementalDataObject(vtkDataObject* data, int remoteHandle,&nbsp;int tag)&#65307;</p>
<p>int vtkCommunicator::Receive(vtkDataArray* data, int remoteHandle, int tag)</p>
</div>
<div>
<span>also haven't been use on the&nbsp;</span><span>satellite&nbsp;</span><span>process. I can't underStand , It used which function to receive the data from the node process . &nbsp;And where to distribute the data? Who can help me .Thank you !</span>
</div>
<div><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sincerely!</span></div>
<div><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zhz</span></div>
</div>
<br><br><span title="neteasefooter"><span></span></span>
</div>
Patrick Brockmann | 16 Apr 18:32 2015
Picon

animation changing geometry representation

Hi,

How do change the representation of an object from the UI of paraview
when you make an animation ?

I know how to do change a property but not a type of representation of 
the geometry (Surface, Surface With Edges, Wireframe).
Ideally I would to pass from one representation to another with a 
progressive ramp.

Thanks for pointing me any tutorial on "making animation with paraview" 
if it exists.
Regards
Patrick

--

-- 
LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
Data Analysis and Visualization Engineer
ICMC - IPSL Climate Modelling Centre
--

Antoine Dechaume | 16 Apr 09:47 2015
Picon

Populate drop down list from filter data

Dear list,

our team is working on a filter bound to a GUI panel.
The filter, among other things, stores a vector of strings. The GUI panel is a kind of customized properties panel (it derives from QDockWidget).
In that custom panel, we want to create a drop down list with the data from the vector of strings held by the filter. The length of the vector of strings is determined at run time by the filter.

We've been working on this for a couple of days, with the help of wiki and by looking around for a similar feature in the paraview sources, unfortunately without success.

Does anyone know how we could do that?

Cheers,
Antoine.
<div><div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Dear list,<br><br>
</div>our team is working on a filter bound to a GUI panel.</div>The filter, among other things, stores a vector of strings. The GUI panel is a kind of customized properties panel (it derives from QDockWidget).<br>
</div>In that custom panel, we want to create a drop down list with the data from the vector of strings held by the filter. The length of the vector of strings is determined at run time by the filter.<br><br>
</div>We've been working on this for a couple of days, with the help of <a href="http://www.paraview.org/Wiki/Plugin_HowTo#Drop_down_list_with_values_from_input_file">wiki</a> and by looking around for a similar feature in the paraview sources, unfortunately without success.<br><br>
</div>Does anyone know how we could do that?<br><br>
</div>Cheers,<br>
</div>Antoine.<br>
</div></div>
Kevin Dean | 16 Apr 01:37 2015

Re: ParaView as ThirdParty

also, when execute paraview (with python enabled), I get Segmentation Fault... is there a way I can debug this to figure out what the problem might be...

Kevin E. Dean

On Wed, Apr 15, 2015 at 4:31 PM, Kevin Dean <kevin.dean <at> decisionsciencescorp.com> wrote:

---------- Forwarded message ----------
From: Kevin Dean <kevin.dean <at> decisionsciencescorp.com>
Date: Wed, Apr 15, 2015 at 4:30 PM
Subject: ParaView as ThirdParty
To: ParaView <at> paraview.org


so, I have been able to use ParaView as a thirdparty (in it's own install/not build directory) for a little bit. However, there are a couple of things:

(1) when selecting PARAVIEW_INSTALL_DEVELOPMENT_FILES, I must have PARAVIEW_ENABLE_PYTHON:BOOL=ON; otherwise I get build errors for missing libraries.

(2) then after a successful build, I try to build my project against these ParaView/VTK libraries again; however, I get an error with vtkPVInitializePythonModules()

Linking CXX executable mtview
CMakeFiles/mtview.dir/
ParaViewMainWindow.cxx.o: In function `ParaViewMainWindow':
/home/kdean/workspace-dsc/
mtview/ParaViewMainWindow.cxx:108: undefined reference to `vtkPVInitializePythonModules'
collect2: ld returned 1 exit status
make[2]: *** [mtview] Error 1
make[1]: *** [CMakeFiles/mtview.dir/all] Error 2
make: *** [all] Error 2

Is there a reference point to try and Debug this issue? Thanks a lot.

Kevin E. Dean



This email and its contents are confidential. If you are not the intended recipient, please do not disclose or use the information within this email or its attachments. If you have received this email in error, please report the error to the sender by return email and delete this communication from your records.
<div>
<div dir="ltr">
<div>
<span>also, when execute paraview (<span>with python enabled</span>), I get Segmentation Fault... is there a way I can debug this to figure out what the problem might be...</span><br><br>
</div>
<span>Kevin E. Dean</span><br>
</div>
<div class="gmail_extra">
<br><div class="gmail_quote">On Wed, Apr 15, 2015 at 4:31 PM, Kevin Dean <span dir="ltr">&lt;<a href="mailto:kevin.dean <at> decisionsciencescorp.com" target="_blank">kevin.dean <at> decisionsciencescorp.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote"><div class="HOEnZb"><div class="h5">
<div dir="ltr">
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: Kevin Dean <span dir="ltr">&lt;<a href="mailto:kevin.dean <at> decisionsciencescorp.com" target="_blank">kevin.dean <at> decisionsciencescorp.com</a>&gt;</span><br>Date: Wed, Apr 15, 2015 at 4:30 PM<br>Subject: ParaView as ThirdParty<br>To: <a href="mailto:ParaView <at> paraview.org" target="_blank">ParaView <at> paraview.org</a><br><br><br><div dir="ltr">
<div>
<div>
<div>
<div><span>so, I have been able to use ParaView as a thirdparty (in it's own install/not build directory) for a little bit. However, there are a couple of things:<br><br></span></div>
<span>(1) when selecting PARAVIEW_INSTALL_DEVELOPMENT_≤/span><span>FILES, I must have PARAVIEW_ENABLE_PYTHON:BOOL=</span><span>ON; otherwise I get build errors for missing libraries.<br><br></span>
</div>
<span>(2) then after a successful build, I try to build my project against these ParaView/VTK libraries again; however, I get an error with vtkPVInitializePythonModules() <br><br>Linking CXX executable mtview<br>CMakeFiles/mtview.dir/≤/span><span>ParaViewMainWindow.cxx.o: In function `ParaViewMainWindow':<br>/home/kdean/workspace-dsc/</span><span>mtview/ParaViewMainWindow.cxx:</span><span>108: undefined reference to `<span>vtkPVInitializePythonModules</span>'<br>collect2: ld returned 1 exit status<br>make[2]: *** [mtview] Error 1<br>make[1]: *** [CMakeFiles/mtview.dir/all] Error 2<br>make: *** [all] Error 2<br><br></span>
</div>
<span>Is there a reference point to try and Debug this issue? Thanks a lot. <br><br></span>
</div>
<span>Kevin E. Dean</span><br>
</div>
</div>
<br>
</div>
</div></div></blockquote>
</div>
<br>
</div>

<br><span>This email and its contents are confidential. If you are not the 
intended recipient, please do not disclose or use the information within
 this email or its attachments. If you have received this email in 
error, please report the error to the sender by return email and 
delete this communication from your records.</span>
</div>
Kevin Dean | 16 Apr 01:30 2015

ParaView as ThirdParty

so, I have been able to use ParaView as a thirdparty (in it's own install/not build directory) for a little bit. However, there are a couple of things:

(1) when selecting PARAVIEW_INSTALL_DEVELOPMENT_FILES, I must have PARAVIEW_ENABLE_PYTHON:BOOL=ON; otherwise I get build errors for missing libraries.

(2) then after a successful build, I try to build my project against these ParaView/VTK libraries again; however, I get an error with vtkPVInitializePythonModules()

Linking CXX executable mtview
CMakeFiles/mtview.dir/
ParaViewMainWindow.cxx.o: In function `ParaViewMainWindow':
/home/kdean/workspace-dsc/
mtview/ParaViewMainWindow.cxx:108: undefined reference to `vtkPVInitializePythonModules'
collect2: ld returned 1 exit status
make[2]: *** [mtview] Error 1
make[1]: *** [CMakeFiles/mtview.dir/all] Error 2
make: *** [all] Error 2

Is there a reference point to try and Debug this issue? Thanks a lot.

Kevin E. Dean

This email and its contents are confidential. If you are not the intended recipient, please do not disclose or use the information within this email or its attachments. If you have received this email in error, please report the error to the sender by return email and delete this communication from your records.
<div>
<div dir="ltr">
<div>
<div>
<div>
<div><span>so, I have been able to use ParaView as a thirdparty (in it's own install/not build directory) for a little bit. However, there are a couple of things:<br><br></span></div>
<span>(1) when selecting PARAVIEW_INSTALL_DEVELOPMENT_≤/span><span>FILES, I must have PARAVIEW_ENABLE_PYTHON:BOOL=</span><span>ON; otherwise I get build errors for missing libraries.<br><br></span>
</div>
<span>(2) then after a successful build, I try to build my project against these ParaView/VTK libraries again; however, I get an error with vtkPVInitializePythonModules() <br><br>Linking CXX executable mtview<br>CMakeFiles/mtview.dir/≤/span><span>ParaViewMainWindow.cxx.o: In function `ParaViewMainWindow':<br>/home/kdean/workspace-dsc/</span><span>mtview/ParaViewMainWindow.cxx:</span><span>108: undefined reference to `<span>vtkPVInitializePythonModules</span>'<br>collect2: ld returned 1 exit status<br>make[2]: *** [mtview] Error 1<br>make[1]: *** [CMakeFiles/mtview.dir/all] Error 2<br>make: *** [all] Error 2<br><br></span>
</div>
<span>Is there a reference point to try and Debug this issue? Thanks a lot. <br><br></span>
</div>
<span>Kevin E. Dean</span><br>
</div>

<br><span>This email and its contents are confidential. If you are not the 
intended recipient, please do not disclose or use the information within
 this email or its attachments. If you have received this email in 
error, please report the error to the sender by return email and 
delete this communication from your records.</span>
</div>
Greenwood, Michael | 15 Apr 21:49 2015
Picon

Contours of unstructured grid paraview 3 vs paraview 4

Hi I’ve upgraded to paraview 4 and now when building contours of my 3D unstructured grid, the contours are pixelated.  This was not the case in 3, and when you look at a slice of the contour overlayed with a slice of the volume data it is obvious that the contour in paraview 4 seems to be “hugging” the boundaries of my mesh instead of interpolating through it.  How can I get my nice smooth contours I had in version 3?

 

Thanks

<div>
<div class="WordSection1">
<p class="MsoNormal">Hi I&rsquo;ve upgraded to paraview 4 and now when building contours of my 3D unstructured grid, the contours are pixelated.&nbsp; This was not the case in 3, and when you look at a slice of the contour overlayed with a slice of the volume data it
 is obvious that the contour in paraview 4 seems to be &ldquo;hugging&rdquo; the boundaries of my mesh instead of interpolating through it.&nbsp; How can I get my nice smooth contours I had in version 3?<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Thanks<p></p></p>
<p class="MsoNormal"><span></span><p></p></p>
</div>
</div>
Stock, Mark | 15 Apr 19:59 2015

Removing *some* color legends in multi-screen immersive Paraview

Hello,

I am digging through the Paraview code to find out where I can control which of our 6-projector VR CAVE
screens will draw the color legends. The default seems to put all legends on all screens, which is very
distracting. Does anyone know where I can intercept these draw calls with an MPI_RANK check?

I'm on 4.2.0 with a 6-projector setup and a number of custom interactors. Not sure if the pvx and pvsm files
are helpful, but I attached them anyway.

Mark
Attachment (nrel.pvx): application/octet-stream, 2201 bytes
Attachment (v420_vrpn.pvsm): application/octet-stream, 33 KiB
Hello,

I am digging through the Paraview code to find out where I can control which of our 6-projector VR CAVE
screens will draw the color legends. The default seems to put all legends on all screens, which is very
distracting. Does anyone know where I can intercept these draw calls with an MPI_RANK check?

I'm on 4.2.0 with a 6-projector setup and a number of custom interactors. Not sure if the pvx and pvsm files
are helpful, but I attached them anyway.

Mark
Mason, Michael (IS | 15 Apr 18:05 2015
Picon

Using MPI on a single machine

Can anyone speculate on what sort of performance increase would be possible if I ran an MPI-enabled
ParaView on a single standalone workstation?  The machine is a new iMac with 32GB RAM, 8 cores, and an AMD
Radeon R9 M295X (4 GB VRAM).  I'm volume rendering a 4D NetCDF dataset (72 240 MB files).  I'm worried that
contention for the GPU among the multiple MPI processes will result in similar (or worse) performance. 
Using a single ParaView process, it takes about 15-20 seconds to volume render a single time step and I'm
looking for ways to reduce the rendering time.  I'd just like to know if there is even a small chance that I'll
get better performance before going through the process of building ParaView from source on OSX.  I've
done it before on Linux, so this will be a new experience.

One more question ... Would it be more efficient to combine/concat these individual files into a single,
larger NetCDF file?  Or does ParaView perform better with smaller files?

Thanks,
-Mike
Adam Lyon | 15 Apr 17:40 2015

Re: Python view

Great! Glad this is useful! -- A

------

Adam L. Lyon
Scientist; Associate Division Head for Systems for Scientific Applications

Scientific Computing Division & Muon g-2 Experiment
Fermi National Accelerator Laboratory
630 840 5522 office

Connect with us!
Newsletter  |  Facebook  |  Twitter

On Wed, Apr 15, 2015 at 8:54 AM, Cory Quammen <cory.quammen <at> kitware.com> wrote:
Thanks for the report, Adam. This is helpful. We'll look at getting it fixed.

Cory

On Tue, Apr 14, 2015 at 8:19 PM, Adam Lyon <lyon <at> fnal.gov> wrote:
Hi Cory - I tried your little script and got an interesting response...

/Applications/paraview4.3.1.app/Contents/Python/matplotlib/__init__.pyc
/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/__init__.pyc
Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/backend_agg.py", line 38, in <module>
    from _backend_agg import RendererAgg as _RendererAgg
ImportError: dlopen(/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/_backend_agg.so, 2): Library not loaded: /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release-Python27/install/lib/libfreetype.6.dylib
  Referenced from: /Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/_backend_agg.so
  Reason: image not found

These files exist,
/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/_backend_agg.so
/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/backend_agg.py
/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/backend_agg.pyc


Interestingly, these files exist, but don't seem to be used...
/Applications/paraview4.3.1.app/Contents/Libraries/libfreetype.6.dylib
/Applications/paraview4.3.1.app/Contents/Libraries/libfreetype.dylib

If I run pvpython I see the same errors. 

BUT --- If I do,
export DYLD_FALLBACK_LIBRARY_PATH=/Applications/paraview4.3.1.app/Contents/Libraries/

and then start Paraview from the command line,

/Applications/paraview4.3.1.app/Contents/MacOS/paraview

... and load the state file and the bluntfin.vts file ... Now I can see the matplotlib plots!!!!!!

So it looks to me like you aren't setting a dynamic library path correctly within Paraview's python. 

Hope this helps. Thanks for the simple thing to try. 

-- Adam


------

Adam L. Lyon
Scientist; Associate Division Head for Systems for Scientific Applications

Scientific Computing Division & Muon g-2 Experiment
Fermi National Accelerator Laboratory
630 840 5522 office

Connect with us!
Newsletter  |  Facebook  |  Twitter

On Tue, Apr 14, 2015 at 6:12 PM, Cory Quammen <cory.quammen <at> kitware.com> wrote:
Hi Adam,

I am running the exact same version of ParaView (my About box has the same contents as yours), so this is a little bit puzzling.

Could you try two things:

1). Run ParaView, create a Python View, then enter this script:

import matplotlib

print matplotlib.__file__


import matplotlib.backends

print matplotlib.backends.__file__


import matplotlib.backends.backend_agg

print matplotlib.backends.backend_agg.__file__


Please report what the Output Messages window says.


2). Open the contents of your ParaView Mac bundle (right-click, "Show Package Contents"), open up Contents -> Python -> matplotlib -> backends. Please let me know if you see a backend_agg.py file in there.


Thanks,

Cory


On Tue, Apr 14, 2015 at 4:12 PM, Adam Lyon <lyon <at> fnal.gov> wrote:
Hi Cory and Utkarsh - So I never see a plot - just a black window. The error message I sent earlier repeats every time I move my mouse over the python view window.  I'm using Paraview 4.3.1 downloaded from paraview.org. Paraview's "about" box is below. 

Do you have a simple matplotlib plot I can try? Thanks! -- Adam



------

Adam L. Lyon
Scientist; Associate Division Head for Systems for Scientific Applications

Scientific Computing Division & Muon g-2 Experiment
Fermi National Accelerator Laboratory
630 840 5522 office

Connect with us!
Newsletter  |  Facebook  |  Twitter

On Tue, Apr 14, 2015 at 2:06 PM, Cory Quammen <cory.quammen <at> kitware.com> wrote:
Hi Adam,

I am trying to reproduce this with ParaView 4.3.1 64-bit on a Mac with Yosemite 10.10.2, but haven't been able to. This is the latest Mac binary available for download on paraview.org. The matplotlib pot shows up as in the blog post. Is your ParaView binary from paraview.org?

Thanks,
Cory

On Tue, Apr 14, 2015 at 11:49 AM, Adam Lyon <lyon <at> fnal.gov> wrote:
Hi Cory - I wanted to try this -- I loaded the state file and the data file (thanks for the link). But when the python view tries to render, I get,

Error: Cannot import matplotlib.backends.backend_agg.FigureCanvasAgg

and nothing appears. I'm running Paraview 4.3.1 64-bit on my Mac with Yosemite. 

Is this a Mac problem? Thanks! -- Adam

------

Adam L. Lyon
Scientist; Associate Division Head for Systems for Scientific Applications

Scientific Computing Division & Muon g-2 Experiment
Fermi National Accelerator Laboratory




--
Cory Quammen
R&D Engineer
Kitware, Inc.




--
Cory Quammen
R&D Engineer
Kitware, Inc.




--
Cory Quammen
R&D Engineer
Kitware, Inc.

<div>
<div dir="ltr">Great! Glad this is useful! -- A</div>
<div class="gmail_extra">
<br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">
<div><div>------</div></div>
<div><br></div>
<div>Adam L. Lyon</div>
<div>Scientist; Associate Division Head for Systems for Scientific Applications</div>
<div><span><br></span></div>
<div>Scientific Computing Division &amp; Muon g-2 Experiment</div>
<div>Fermi National Accelerator Laboratory</div>
<div>630 840 5522 office</div>
<div><a href="http://www.fnal.gov" target="_blank">www.fnal.gov</a></div>
<div><a href="mailto:lyon <at> fnal.gov" target="_blank">lyon <at> fnal.gov</a></div>
<div><br></div>
<div>Connect with us!<br><span><a href="http://www.fnal.gov/pub/today/" target="_blank">Newsletter</a></span><span>&nbsp; |&nbsp; <a href="https://www.facebook.com/Fermilab" target="_blank"><span>Facebook</span></a>&nbsp; | &nbsp;<a href="https://twitter.com/Fermilab" target="_blank"><span>Twitter</span></a></span>
</div>
</div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Apr 15, 2015 at 8:54 AM, Cory Quammen <span dir="ltr">&lt;<a href="mailto:cory.quammen <at> kitware.com" target="_blank">cory.quammen <at> kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">

<div>
<div dir="ltr">Thanks for the report, Adam. This is helpful. We'll look at getting it fixed.
<span class="HOEnZb"><div><br></div>
<div>Cory</div>
</span>
</div>
<div><div class="h5">
<div class="gmail_extra">
<br><div class="gmail_quote">On Tue, Apr 14, 2015 at 8:19 PM, Adam Lyon <span dir="ltr">
&lt;<a href="mailto:lyon <at> fnal.gov" target="_blank">lyon <at> fnal.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div dir="ltr">Hi Cory - I tried your little script and got an interesting response...
<div><br></div>
<div>
<div>
<div>/Applications/paraview4.3.1.app/Contents/Python/matplotlib/__init__.pyc</div>
<div>/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/__init__.pyc</div>
<div>Traceback (most recent call last):</div>
<div>&nbsp; File "&lt;string&gt;", line 7, in &lt;module&gt;</div>
<div>&nbsp; File "/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/backend_agg.py", line 38, in &lt;module&gt;</div>
<div>&nbsp; &nbsp; from _backend_agg import RendererAgg as _RendererAgg</div>
<div>ImportError: dlopen(/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/_backend_agg.so, 2): Library not loaded: /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release-Python27/install/lib/libfreetype.6.dylib</div>
<div>&nbsp; Referenced from: /Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/_backend_agg.so</div>
<div>&nbsp; Reason: image not found</div>
</div>
<div><br></div>
<div>These files exist,</div>
<div>
<div>/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/_backend_agg.so</div>
<div>/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/backend_agg.py</div>
<div>/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/backend_agg.pyc</div>
</div>
<div><br></div>
<div><br></div>
<div>Interestingly, these files exist, but don't seem to be used...</div>
<div>
<div>/Applications/paraview4.3.1.app/Contents/Libraries/libfreetype.6.dylib</div>
<div>/Applications/paraview4.3.1.app/Contents/Libraries/libfreetype.dylib</div>
</div>
<div><br></div>
<div>If I run pvpython I see the same errors.&nbsp;</div>
<div><br></div>
<div>BUT --- If I do,</div>
<div>export DYLD_FALLBACK_LIBRARY_PATH=/Applications/paraview4.3.1.app/Contents/Libraries/≤br>
</div>
<div><br></div>
<div>and then start Paraview from the command line,</div>
<div><br></div>
<div>/Applications/paraview4.3.1.app/Contents/MacOS/paraview<br>
</div>
<div><br></div>
<div>... and load the state file and the bluntfin.vts file ... Now I can see the matplotlib plots!!!!!!</div>
<div><br></div>
<div>So it looks to me like you aren't setting a dynamic library path correctly within Paraview's python.&nbsp;</div>
<div><br></div>
<div>Hope this helps. Thanks for the simple thing to try.&nbsp;</div>
<div><br></div>
<div>-- Adam</div>
<div><br></div>
</div>
</div>
<div class="gmail_extra">
<br clear="all"><div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<span>
<div>
<div>------</div>
</div>
<div><br></div>
<div>Adam L. Lyon</div>
<div>Scientist; Associate Division Head for Systems for Scientific Applications</div>
<div><span><br></span></div>
<div>Scientific Computing Division &amp; Muon g-2 Experiment</div>
<div>Fermi National Accelerator Laboratory</div>
</span><span>
<div>
<a href="tel:630%20840%205522" value="+16308405522" target="_blank">630 840 5522</a> office</div>
<div><a href="http://www.fnal.gov" target="_blank">www.fnal.gov</a></div>
<div><a href="mailto:lyon <at> fnal.gov" target="_blank">lyon <at> fnal.gov</a></div>
<div><br></div>
<div>Connect with us!<br><span><a href="http://www.fnal.gov/pub/today/" target="_blank">Newsletter</a></span><span>&nbsp; |&nbsp;
<a href="https://www.facebook.com/Fermilab" target="_blank"><span>Facebook</span></a>&nbsp; | &nbsp;<a href="https://twitter.com/Fermilab" target="_blank"><span>Twitter</span></a></span>
</div>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br><div class="gmail_quote">
<span>On Tue, Apr 14, 2015 at 6:12 PM, Cory Quammen
<span dir="ltr">&lt;<a href="mailto:cory.quammen <at> kitware.com" target="_blank">cory.quammen <at> kitware.com</a>&gt;</span> wrote:<br></span>
<blockquote class="gmail_quote">
<div>
<div dir="ltr">Hi Adam,
<div><br></div>
<span>
<div>I am running the exact same version of ParaView (my About box has the same contents as yours), so this is a little bit puzzling.</div>
<div><br></div>
<div>Could you try two things:</div>
<div><br></div>
<div>1). Run ParaView, create a Python View, then enter this script:</div>
<div><br></div>
</span>
<div>
<span>
<p>import matplotlib</p>
<p>print matplotlib.__file__</p>
<p><br></p>
<p>import matplotlib.backends</p>
<p></p>
<p>print matplotlib.backends.__file__</p>
<p><br></p>
<p>import matplotlib.backends.backend_agg</p>
<p>print matplotlib.backends.backend_agg.__file__</p>
<p><br></p>
<p>Please report what the Output Messages window says.</p>
<p><br></p>
<p>2). Open the contents of your ParaView Mac bundle (right-click, "Show Package Contents"), open up Contents -&gt; Python -&gt; matplotlib -&gt; backends. Please let me know if you see a backend_agg.py file in there.</p>
<p><br></p>
</span>
<p>Thanks,</p>
<p>Cory</p>
</div>
</div>
<div>
<div>
<div>
<div>
<div class="gmail_extra">
<br><div class="gmail_quote">On Tue, Apr 14, 2015 at 4:12 PM, Adam Lyon <span dir="ltr">
&lt;<a href="mailto:lyon <at> fnal.gov" target="_blank">lyon <at> fnal.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div dir="ltr">Hi Cory and Utkarsh - So I never see a plot - just a black window. The error message I sent earlier repeats every time I move my mouse over the python view window.&nbsp; I'm using Paraview 4.3.1 downloaded from
<a href="http://paraview.org" target="_blank">paraview.org</a>. Paraview's "about" box is below.&nbsp;
<div><br></div>
<div>Do you have a simple matplotlib plot I can try? Thanks! -- Adam</div>
<div><br></div>
<div>
<br><div>
<div></div>
</div>
</div>
</div>
<div class="gmail_extra">
<br clear="all"><div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<span>
<div>
<div>------</div>
</div>
<div><br></div>
<div>Adam L. Lyon</div>
<div>Scientist; Associate Division Head for Systems for Scientific Applications</div>
<div><span><br></span></div>
<div>Scientific Computing Division &amp; Muon g-2 Experiment</div>
<div>Fermi National Accelerator Laboratory</div>
</span>
<div>
<a href="tel:630%20840%205522" value="+16308405522" target="_blank">630 840 5522</a> office</div>
<div><a href="http://www.fnal.gov" target="_blank">www.fnal.gov</a></div>
<div><a href="mailto:lyon <at> fnal.gov" target="_blank">lyon <at> fnal.gov</a></div>
<div><br></div>
<div>Connect with us!<br><span><a href="http://www.fnal.gov/pub/today/" target="_blank">Newsletter</a></span><span>&nbsp; |&nbsp;
<a href="https://www.facebook.com/Fermilab" target="_blank"><span>Facebook</span></a>&nbsp; | &nbsp;<a href="https://twitter.com/Fermilab" target="_blank"><span>Twitter</span></a></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br><div class="gmail_quote">
<span>On Tue, Apr 14, 2015 at 2:06 PM, Cory Quammen <span dir="ltr">
&lt;<a href="mailto:cory.quammen <at> kitware.com" target="_blank">cory.quammen <at> kitware.com</a>&gt;</span> wrote:<br></span>
<blockquote class="gmail_quote">
<div>
<span>
<div dir="ltr">Hi Adam,
<div><br></div>
<div>I am trying to reproduce this with ParaView 4.3.1 64-bit on a Mac with Yosemite 10.10.2, but haven't been able to. This is the latest Mac binary available for download on
<a href="http://paraview.org" target="_blank">paraview.org</a>. The matplotlib pot shows up as in the blog post. Is your ParaView binary from
<a href="http://paraview.org" target="_blank">paraview.org</a>?</div>
<div><br></div>
<div>Thanks,</div>
<div>Cory</div>
</div>
</span>
<div class="gmail_extra">
<br><div class="gmail_quote">
<span><span>On Tue, Apr 14, 2015 at 11:49 AM, Adam Lyon <span dir="ltr">
&lt;<a href="mailto:lyon <at> fnal.gov" target="_blank">lyon <at> fnal.gov</a>&gt;</span> wrote:<br></span></span>
<div>
<div>
<div>
<div>
<blockquote class="gmail_quote">
<div dir="ltr">Hi Cory - I wanted to try this -- I loaded the state file and the data file (thanks for the link). But when the python view tries to render, I get,
<div><br></div>
<div>Error: Cannot import matplotlib.backends.backend_agg.FigureCanvasAgg<br>
</div>
<div><br></div>
<div>and nothing appears. I'm running Paraview 4.3.1 64-bit on my Mac with Yosemite.&nbsp;</div>
<div><br></div>
<div>Is this a Mac problem? Thanks! -- Adam</div>
<div><br></div>
<div class="gmail_extra">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div>------</div>
</div>
<div><br></div>
<div>Adam L. Lyon</div>
<div>Scientist; Associate Division Head for Systems for Scientific Applications</div>
<div><span><br></span></div>
<div>Scientific Computing Division &amp; Muon g-2 Experiment</div>
<div>Fermi National Accelerator Laboratory</div>
<div><br></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
<br><br clear="all"><span>
<div><br></div>
<span>-- <br><div>Cory Quammen<br>
R&amp;D Engineer<br>
Kitware, Inc.</div>
</span></span>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br><br clear="all"><div><br></div>
-- <br><div>Cory Quammen<br>
R&amp;D Engineer<br>
Kitware, Inc.</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br><br clear="all"><div><br></div>
-- <br><div>Cory Quammen<br>
R&amp;D Engineer<br>
Kitware, Inc.</div>
</div>
</div></div>
</div>

</blockquote>
</div>
<br>
</div>
</div>

Gmane