[Dune] building dune-python
Ziad Boutanios
ziad.boutanios at gmail.com
Tue Mar 10 19:44:40 CET 2020
Apologies for the earlier messages, Thunderbird seems to have a mind of
its own today lol
So I ran demo/test.py and it is successful. Nothing more to report here.
Thanks
Ziad
On 2020-03-10 2:39 p.m., Ziad Boutanios wrote:
>
> Hi,
>
>
> 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 "/Failed
> building wheel/" errors (see attached build log) but it looks like the
> build was successful
>
>
> Ziad
>
>
>
>
> On 2020-03-08 2:36 p.m., Dedner, Andreas wrote:
>> /Hi./
>>
>> /Cache entry deserialization failed, entry ignored/
>> /
>> /
>>
>> /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.,/
>> /pip install ufl/
>> /or something like that - does that also give the cache error?/
>> /Some suggestions I found e.g.
>> /
>> https://stackoverflow.com/questions/49671215/cache-entry-deserialization-failed-entry-ignored
>> is to delete ~/.cache/pip but I have no idea if this can cause other
>> issues....
>> In case it has something to do with dune-python, it would be helpful
>> to get the output of running
>> pip install --upgrade .
>> in the python folder in the build directory of dune-python.
>>
>> Hope this helps
>> Andreas
>> ------------------------------------------------------------------------
>> *From:* Dune <dune-bounces at lists.dune-project.org> on behalf of Ziad
>> Boutanios <ziad.boutanios at gmail.com>
>> *Sent:* 07 March 2020 19:07
>> *To:* dune at lists.dune-project.org <dune at lists.dune-project.org>
>> *Subject:* [Dune] building dune-python
>>
>> Hi,
>>
>> *OS*:
>>
>> debian stable
>>
>> *Dune modules built*:
>>
>> 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
>>
>> *Options*: (in config.opts)
>>
>> BUILDDIR=build-cmake
>> USE_CMAKE=yes
>> MAKE_FLAGS=-j4
>> CXXFLAGS="-O3 -DNDEBUG -funroll-loops -finline-functions -Wall
>> -ftree-vectorize -fno-stack-protector -mtune=native"
>> CMAKE_FLAGS="-DCMAKE_CXX_FLAGS='$CXXFLAGS' \
>> -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
>> -DALLOW_CXXFLAGS_OVERWRITE=ON \
>> -DENABLE_HEADERCHECK=OFF \
>> -DUSE_PTHREADS=ON \
>> -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE \
>> -DCMAKE_DISABLE_DOCUMENTATION=TRUE \
>> -DADDITIONAL_PIP_PARAMS="-upgrade" \
>> -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=TRUE \
>> -DPYTHON_INSTALL_LOCATION="system"
>> "
>>
>> I'm also working within a python3 virtual environment. The build
>> completed without errors following this command:
>>
>> / ./dune-common/bin/dunecontrol --opts=config.opts all/
>>
>> but when trying to complete the dune-python installation with:
>>
>> / ./dune-python/bin/setup-dunepy.py --opts=config.opts install/
>>
>> I get the following errors:
>>
>> /Failed building wheel for dune.python//
>> // Cache entry deserialization failed, entry ignored//
>> // Cache entry deserialization failed, entry ignored//
>> // Cache entry deserialization failed, entry ignored//
>> // Failed building wheel for dune.fem//
>> // Failed building wheel for UFL//
>> // Failed building wheel for dune.spgrid//
>> // Failed building wheel for dune.alugrid/
>>
>> Running /python test.py/ in dune-python/demo returns the following:
>>
>> /configuration did not work: CMake Error at CMakeLists.txt:8
>> (find_package)://
>> // By not providing "Finddune-common.cmake" in CMAKE_MODULE_PATH
>> this project//
>> // has asked CMake to find a package configuration file provided by//
>> // "dune-common", but CMake did not find one.//
>> //
>> // Could not find a package configuration file provided by
>> "dune-common" with//
>> // any of the following names://
>> //
>> // dune-commonConfig.cmake//
>> // dune-common-config.cmake//
>> //
>> // Add the installation prefix of "dune-common" to CMAKE_PREFIX_PATH
>> or set//
>> // "dune-common_DIR" to a directory containing one of the above
>> files. If//
>> // "dune-common" provides a separate development package or SDK, be
>> sure it//
>> // has been installed./
>>
>> Tried setting CMAKE_PREFIX_PATH to the installation prefix of
>> dune-common and configuring again but still the same errors.
>>
>> 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
>>
>> Thanks in advance,
>>
>> Ziad
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20200310/fc8700a2/attachment.htm>
More information about the Dune
mailing list