<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Apologies for the earlier messages, Thunderbird seems to have a
      mind of its own today lol</p>
    <p><br>
    </p>
    <p>So I ran demo/test.py and it is successful. Nothing more to
      report here.</p>
    <p><br>
    </p>
    <p>Thanks</p>
    <p>Ziad<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 2020-03-10 2:39 p.m., Ziad Boutanios
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c5aadda2-5862-edf1-c276-265dfd54ec7d@gmail.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <p>Hi,</p>
      <p><br>
      </p>
      <p>I tried rebuilding today after several laptop restarts and the
        cache serialization errors are gone, so most probably a cache
        issue with nothing to do with Dune as you suggested. I still get
        the "<i>Failed building wheel</i>" errors (see attached build
        log) but it looks like the build was successful<br>
      </p>
      <p><br>
      </p>
      <p>Ziad<br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
      <div class="moz-cite-prefix">On 2020-03-08 2:36 p.m., Dedner,
        Andreas wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:VI1PR01MB39510E441EBC62DC4C6B79069AE10@VI1PR01MB3951.eurprd01.prod.exchangelabs.com">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 12pt; color: rgb(0, 0, 0);"> <i>Hi.</i><br>
          <blockquote style="margin-top: 0px; margin-bottom: 0px;">
            <div><i>Cache entry deserialization failed, entry ignored</i></div>
            <div><i><br>
              </i></div>
          </blockquote>
          <div><i>I have  not seen this error before but a bit of
              internet research indicates that this is caused by a
              corrupted cache from pip and therefore has nothing to do
              with dune-python. What happens if you try to install
              something else into the virtualenv, i.e.,</i></div>
          <div><i>pip install ufl</i></div>
          <div><i>or something like that - does that also give the cache
              error?</i></div>
          <div><i>Some suggestions I found e.g.<br>
            </i></div>
          <div><a
href="https://stackoverflow.com/questions/49671215/cache-entry-deserialization-failed-entry-ignored"
              id="LPNoLP307253" moz-do-not-send="true">https://stackoverflow.com/questions/49671215/cache-entry-deserialization-failed-entry-ignored</a><br>
          </div>
          is to delete ~/.cache/pip but I have no idea if this can cause
          other issues....</div>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 12pt; color: rgb(0, 0, 0);"> In case it has
          something to do with dune-python, it would be helpful to get
          the output of running<br>
        </div>
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 12pt; color: rgb(0, 0, 0);"> pip install --upgrade
          .<br>
          <div>in the python folder in the build directory of
            dune-python.</div>
          <div><br>
          </div>
          <div>Hope this helps</div>
          <div>Andreas<br>
          </div>
        </div>
        <hr style="display:inline-block;width:98%" tabindex="-1">
        <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
            face="Calibri, sans-serif" color="#000000"><b>From:</b> Dune
            <a class="moz-txt-link-rfc2396E"
              href="mailto:dune-bounces@lists.dune-project.org"
              moz-do-not-send="true"><dune-bounces@lists.dune-project.org></a>
            on behalf of Ziad Boutanios <a
              class="moz-txt-link-rfc2396E"
              href="mailto:ziad.boutanios@gmail.com"
              moz-do-not-send="true"><ziad.boutanios@gmail.com></a><br>
            <b>Sent:</b> 07 March 2020 19:07<br>
            <b>To:</b> <a class="moz-txt-link-abbreviated"
              href="mailto:dune@lists.dune-project.org"
              moz-do-not-send="true">dune@lists.dune-project.org</a> <a
              class="moz-txt-link-rfc2396E"
              href="mailto:dune@lists.dune-project.org"
              moz-do-not-send="true"><dune@lists.dune-project.org></a><br>
            <b>Subject:</b> [Dune] building dune-python</font>
          <div> </div>
        </div>
        <div>
          <p>Hi,</p>
          <p><b>OS</b>: <br>
          </p>
          <p>debian stable</p>
          <p><b>Dune modules built</b>: <br>
          </p>
          <p>dune-fem dune-geometry dune-localfunctions dune-spgrid
            dune-alugrid dune-fempy      dune-grid dune-pdelab
            dune-typetree dune-common dune-functions dune-istl
            dune-python    dune-uggrid</p>
          <p><b>Options</b>: (in config.opts)<br>
          </p>
          <p>BUILDDIR=build-cmake<br>
            USE_CMAKE=yes<br>
            MAKE_FLAGS=-j4<br>
            CXXFLAGS="-O3 -DNDEBUG -funroll-loops -finline-functions
            -Wall -ftree-vectorize -fno-stack-protector -mtune=native"<br>
            CMAKE_FLAGS="-DCMAKE_CXX_FLAGS='$CXXFLAGS' \<br>
                         -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \<br>
                         -DALLOW_CXXFLAGS_OVERWRITE=ON \<br>
                         -DENABLE_HEADERCHECK=OFF \<br>
                         -DUSE_PTHREADS=ON \<br>
                         -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE \<br>
                         -DCMAKE_DISABLE_DOCUMENTATION=TRUE \<br>
                         -DADDITIONAL_PIP_PARAMS="-upgrade" \<br>
                         -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=TRUE \<br>
                         -DPYTHON_INSTALL_LOCATION="system"<br>
                        "</p>
          <p>I'm also working within a python3 virtual environment. The
            build completed without errors following this command:</p>
          <p><i>    ./dune-common/bin/dunecontrol --opts=config.opts all</i><br>
          </p>
          <p>but when trying to complete the dune-python installation
            with:</p>
          <p><i>    ./dune-python/bin/setup-dunepy.py --opts=config.opts
              install</i></p>
          <p>I get the following errors:</p>
          <p>    <i>Failed building wheel for dune.python</i><i><br>
            </i><i>    Cache entry deserialization failed, entry ignored</i><i><br>
            </i><i>    Cache entry deserialization failed, entry ignored</i><i><br>
            </i><i>    Cache entry deserialization failed, entry ignored</i><i><br>
            </i><i>    Failed building wheel for dune.fem</i><i><br>
            </i><i>    Failed building wheel for UFL</i><i><br>
            </i><i>    Failed building wheel for dune.spgrid</i><i><br>
            </i><i>    Failed building wheel for dune.alugrid</i><br>
            <br>
            Running <i>python test.py</i> in dune-python/demo returns
            the following:</p>
          <p>  <i>configuration did not work:  CMake Error at
              CMakeLists.txt:8 (find_package):</i><i><br>
            </i><i>  By not providing "Finddune-common.cmake" in
              CMAKE_MODULE_PATH this project</i><i><br>
            </i><i>  has asked CMake to find a package configuration
              file provided by</i><i><br>
            </i><i>  "dune-common", but CMake did not find one.</i><i><br>
            </i><i><br>
            </i><i>  Could not find a package configuration file
              provided by "dune-common" with</i><i><br>
            </i><i>  any of the following names:</i><i><br>
            </i><i><br>
            </i><i>    dune-commonConfig.cmake</i><i><br>
            </i><i>    dune-common-config.cmake</i><i><br>
            </i><i><br>
            </i><i>  Add the installation prefix of "dune-common" to
              CMAKE_PREFIX_PATH or set</i><i><br>
            </i><i>  "dune-common_DIR" to a directory containing one of
              the above files.  If</i><i><br>
            </i><i>  "dune-common" provides a separate development
              package or SDK, be sure it</i><i><br>
            </i><i>  has been installed.</i></p>
          <p>Tried setting CMAKE_PREFIX_PATH to the installation prefix
            of dune-common and configuring again but still the same
            errors. <br>
          </p>
          <p>I'm surprised the configuration script is not finding the
            dune-common location automatically. Also, the two files
            dune-commonConfig.cmake and dune-common-config.cmake are
            nowhere to be found in the modules folders. Is there more to
            it than the official instructions on the website? Strangely
            enough some of the dependency checks of setup-dunepy.py ask
            for module versions >=2.8</p>
          <p>Thanks in advance,</p>
          <p>Ziad<br>
          </p>
        </div>
      </blockquote>
    </blockquote>
  </body>
</html>