<div dir="ltr">Thanks for the report, Adam. This is helpful. We'll look at getting it fixed.<div><br></div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 14, 2015 at 8:19 PM, Adam Lyon <span dir="ltr"><<a href="mailto:lyon@fnal.gov" target="_blank">lyon@fnal.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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> File "<string>", line 7, in <module></div><div> File "/Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/backend_agg.py", line 38, in <module></div><div> 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> Referenced from: /Applications/paraview4.3.1.app/Contents/Python/matplotlib/backends/_backend_agg.so</div><div> 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. </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. </div><div><br></div><div>Hope this helps. Thanks for the simple thing to try. </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 class=""><div><div style="font-size:12.8000001907349px"><i><font color="#999999">------</font></i></div></div><div><i><font color="#999999"><br></font></i></div><div><b><font color="#3d85c6">Adam L. Lyon</font></b></div><div><i><font color="#999999">Scientist; Associate Division Head for Systems for Scientific Applications</font></i></div><div><span style="font-family:Arial;font-size:9pt"><font color="#999999"><i><br></i></font></span></div><div><font color="#3d85c6">Scientific Computing Division & Muon g-2 Experiment</font></div><div><font color="#999999">Fermi National Accelerator Laboratory</font></div></span><span class=""><div><font color="#999999"><a href="tel:630%20840%205522" value="+16308405522" target="_blank">630 840 5522</a> office</font></div><div><font color="#999999"><a href="http://www.fnal.gov" target="_blank">www.fnal.gov</a></font></div><div><font color="#999999"><a href="mailto:lyon@fnal.gov" target="_blank">lyon@fnal.gov</a></font></div><div><font color="#999999"><br></font></div><div><font color="#999999">Connect with us!</font><br><font color="#9fc5e8"><span style="font-size:12.8000001907349px"><a href="http://www.fnal.gov/pub/today/" target="_blank">Newsletter</a></span><span style="font-size:12.8000001907349px"> | <a href="https://www.facebook.com/Fermilab" target="_blank"><span>Facebook</span></a> | <a href="https://twitter.com/Fermilab" target="_blank"><span>Twitter</span></a></span></font></div></span></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><span class="">On Tue, Apr 14, 2015 at 6:12 PM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">Hi Adam,
<div><br>
</div><span class="">
<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 class="">
<p style="margin:0px">import matplotlib</p>
<p style="margin:0px">print matplotlib.__file__</p>
<p style="margin:0px"><br>
</p>
<p style="margin:0px;text-indent:0px">import matplotlib.backends</p>
<p style="margin:0px"></p>
<p style="margin:0px">print matplotlib.backends.__file__</p>
<p style="margin:0px"><br>
</p>
<p style="margin:0px">import matplotlib.backends.backend_agg</p>
<p style="margin:0px">print matplotlib.backends.backend_agg.__file__</p>
<p style="margin:0px"><br>
</p>
<p style="margin:0px">Please report what the Output Messages window says.</p>
<p style="margin:0px"><br>
</p>
<p style="margin:0px">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.</p>
<p style="margin:0px"><br>
</p>
</span><p style="margin:0px">Thanks,</p>
<p style="margin:0px">Cory</p>
</div>
</div><div><div class="h5"><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">
<<a href="mailto:lyon@fnal.gov" target="_blank">lyon@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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. 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.
<div><br>
</div>
<div>Do you have a simple matplotlib plot I can try? Thanks! -- Adam</div>
<div><br>
</div>
<div><br>
<div>
<div><img src="cid:ii_14cb98853934ff4c" alt="Inline image 1" width="526" height="249"></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 style="font-size:12.8000001907349px"><i><font color="#999999">------</font></i></div>
</div>
<div><i><font color="#999999"><br>
</font></i></div>
<div><b><font color="#3d85c6">Adam L. Lyon</font></b></div>
<div><i><font color="#999999">Scientist; Associate Division Head for Systems for Scientific Applications</font></i></div>
<div><span style="font-family:Arial;font-size:9pt"><font color="#999999"><i><br>
</i></font></span></div>
<div><font color="#3d85c6">Scientific Computing Division & Muon g-2 Experiment</font></div>
<div><font color="#999999">Fermi National Accelerator Laboratory</font></div>
</span>
<div><font color="#999999"><a href="tel:630%20840%205522" value="+16308405522" target="_blank">630 840 5522</a> office</font></div>
<div><font color="#999999"><a href="http://www.fnal.gov" target="_blank">www.fnal.gov</a></font></div>
<div><font color="#999999"><a href="mailto:lyon@fnal.gov" target="_blank">lyon@fnal.gov</a></font></div>
<div><font color="#999999"><br>
</font></div>
<div><font color="#999999">Connect with us!</font><br>
<font color="#9fc5e8"><span style="font-size:12.8000001907349px"><a href="http://www.fnal.gov/pub/today/" target="_blank">Newsletter</a></span><span style="font-size:12.8000001907349px"> |
<a href="https://www.facebook.com/Fermilab" target="_blank"><span>Facebook</span></a> | <a href="https://twitter.com/Fermilab" target="_blank"><span>Twitter</span></a></span></font></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"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br>
</span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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"><<a href="mailto:lyon@fnal.gov" target="_blank">lyon@fnal.gov</a>></span> wrote:<br>
</span></span>
<div>
<div>
<div>
<div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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. </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 style="font-size:12.8000001907349px"><i><font color="#999999">------</font></i></div>
</div>
<div><i><font color="#999999"><br>
</font></i></div>
<div><b><font color="#3d85c6">Adam L. Lyon</font></b></div>
<div><i><font color="#999999">Scientist; Associate Division Head for Systems for Scientific Applications</font></i></div>
<div><span style="font-family:Arial;font-size:9pt"><font color="#999999"><i><br>
</i></font></span></div>
<div><font color="#3d85c6">Scientific Computing Division & Muon g-2 Experiment</font></div>
<div><font color="#999999">Fermi National Accelerator Laboratory</font></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&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&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 class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>