<div dir="ltr">Dear all<div>I am trying to use XDMF+ Paraview+ HDF5 + Python on ubuntu 13.04. But I got 2 errors. <br></div><div>1. Using cmake to make XDMF error.</div><div>If I set the </div><div>&quot;<i><font size="1">XDMF_SYSTEM_HDF5:BOOL=ON</font></i>&quot;</div>
<div>Then I get this error when I make it. No idea how to fix it.</div><div><font size="1"><i>XdmfH5Driver.cxx:186:1: error: braces around scalar initializer for type ‘herr_t (*)(H5FD_t*, unsigned char*, hbool_t) {aka int (*)(H5FD_t*, unsigned char*, unsigned int)}’</i></font><br>
</div><div><font size="1"><i><br></i></font></div><div>2. If I do not change any parameter of CMakeCache and make it , it is OK.</div><div>By the tutorial, I should copy the &quot;<i>libsrc/Xdmf.py</i>&quot; to &quot;<i>/usr/lib/python2.</i>7&quot;. Then I test some code from Paraview Python Shell. I always get this error</div>
<div><div><i><font size="1">Traceback (most recent call last):</font></i></div><div><i><font size="1">  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;</font></i></div><div><i><font size="1">  File &quot;/usr/lib/python2.7/Xdmf.py&quot;, line 19, in &lt;module&gt;</font></i></div>
<div><i><font size="1">    _Xdmf = swig_import_helper()</font></i></div><div><i><font size="1">  File &quot;/usr/lib/python2.7/Xdmf.py&quot;, line 17, in swig_import_helper</font></i></div><div><i><font size="1">    if fp is not None: fp.close()</font></i></div>
<div><i><font size="1">UnboundLocalError: local variable &#39;fp&#39; referenced before assignment</font></i></div></div><div><i><font size="1"><br></font></i></div><div><font size="1">Someone could help me how to fix it?</font></div>
<div><font size="1">Thanks a lot</font></div><div><font size="1">Long</font></div></div>