Currently the bindings only work with gcc but clang fails with:
ImportError: Unable to cast Python instance of type <class 'dune.typeregistry._typeregistry.TypeRegistry'> to C++ type 'Dune::Python::detail::TypeRegistry'
The reason there is that the compiler might not be correctly set for the bindings from dune-common to _ikarus and the dune-ypmodule for the just-in-time compilation.
The fix might not be to hard but might takes some time.
Currently the bindings only work with gcc but clang fails with:
ImportError: Unable to cast Python instance of type <class 'dune.typeregistry._typeregistry.TypeRegistry'> to C++ type 'Dune::Python::detail::TypeRegistry'
The reason there is that the compiler might not be correctly set for the bindings from dune-common to
_ikarus
and thedune-yp
module for the just-in-time compilation.The fix might not be to hard but might takes some time.
Reference: https://gitlab.dune-project.org/core/dune-common/-/issues/237