# Error trying to compile dolfinx python API

**URL:** https://fenicsproject.discourse.group/t/error-trying-to-compile-dolfinx-python-api/12005
**Category:** installation
**Created:** [August 21, 2023, 2:08am UTC](https://fenicsproject.discourse.group/t/error-trying-to-compile-dolfinx-python-api/12005 "2023-08-21T02:08:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MPenaR](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/mpenar/32/2985_2.png) [@MPenaR](https://fenicsproject.discourse.group/u/MPenaR)
#### Post date: [August 21, 2023, 2:08am UTC](https://fenicsproject.discourse.group/t/error-trying-to-compile-dolfinx-python-api/12005/1 "2023-08-21T02:08:17Z")

</div>

I’ve compiled PETSc ( `--with-scalar-type=complex --with-petsc4py --download-mpi4py` ) as well as dolfinx c++ library.

I tried now to compile the python API however I get an error:

```auto
      [92%] Building CXX object CMakeFiles/cpp.dir/dolfinx/wrappers/refinement.cpp.o
      In file included from /home/manuel/petsc/arch-linux-c-debug/lib/petsc4py/include/petsc4py/../../PETSc_api.h:9,
                       from /home/manuel/petsc/arch-linux-c-debug/lib/petsc4py/include/petsc4py/petsc4py.h:10,
                       from /home/manuel/dolfinx/python/dolfinx/wrappers/caster_petsc.h:9,
                       from /home/manuel/dolfinx/python/dolfinx/wrappers/petsc.cpp:9:
      /home/manuel/petsc/arch-linux-c-debug/lib/petsc4py/include/petsc4py/../../PETSc.h:392:3: error: ‘DMPlexTransform’ does not name a type
        392 | DMPlexTransform tr;
            | ^ ~~~~~~~~~~~~~~

```

(so close, 92% … 😢 )

By the way, I also get the message:

```auto
      !!
      
              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************
      
      !!

```

I don’t really know which kind of system information can I supply so it’s easier for someone to help me. Thank you very much!!

PS:  
I was using the `main` branch from `dolfinx` and the `release` branch from `PETSc`. I tested now with the `main` branch from `PETSc` and the installation breaks earlier, not being able to compile the c++ dolfinx library.

---

<div class="post-metadata">

### Author: ![dipankul\_bhattachary](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dipankul_bhattachary/32/5848_2.png) [@dipankul\_bhattachary](https://fenicsproject.discourse.group/u/dipankul_bhattachary)
#### Post date: [November 14, 2023, 3:42pm UTC](https://fenicsproject.discourse.group/t/error-trying-to-compile-dolfinx-python-api/12005/2 "2023-11-14T15:42:53Z")

</div>

Did you find the solution to this problem?
