# failure to compile vtkmpi4py in PV5.6.0

**URL:** https://discourse.paraview.org/t/failure-to-compile-vtkmpi4py-in-pv5-6-0/1876
**Category:** ParaView Support
**Created:** [May 17, 2019, 11:07am UTC](https://discourse.paraview.org/t/failure-to-compile-vtkmpi4py-in-pv5-6-0/1876 "2019-05-17T11:07:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jfavre](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jfavre](https://discourse.paraview.org/u/jfavre)
#### Post date: [May 17, 2019, 11:07am UTC](https://discourse.paraview.org/t/failure-to-compile-vtkmpi4py-in-pv5-6-0/1876/1 "2019-05-17T11:07:17Z")

</div>

I have switched desktop to a newer machine, gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1)

turning on MPI, I can no longer compile with the following failure:

/usr/bin/cc -DMPICH\_SKIP\_MPICXX -DOMPI\_SKIP\_MPICXX -DPyMPI\_MISSING\_MPI\_Status\_c2f -DPyMPI\_MISSING\_MPI\_Status\_f2c -DPyMPI\_MISSING\_MPI\_Type\_create\_f90\_complex -DPyMPI\_MISSING\_MPI\_Type\_create\_f90\_integer -DPyMPI\_MISSING\_MPI\_Type\_create\_f90\_real -D\_MPICC\_H -Dvtkmpi4py\_MPI\_EXPORTS -DVTK\_IN\_VTK -Dmpi4py\_MPI\_EXPORTS -I/local/apps/ParaView/ParaView-v5.6.0Build -I/local/apps/ParaView/ParaView-v5.6.0Build/VTK/ThirdParty/mpi4py -I/local/apps/ParaView/ParaView-v5.6.0/VTK/ThirdParty/mpi4py -I/usr/include/x86\_64-linux-gnu/mpich -I/usr/include/python3.7m -I/local/apps/ParaView/ParaView-v5.6.0/VTK/ThirdParty/mpi4py/vtkmpi4py/src -w -O2 -g -DNDEBUG -fPIC -o CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o -c /local/apps/ParaView/ParaView-v5.6.0/VTK/ThirdParty/mpi4py/vtkmpi4py/src/MPI.c

In file included from /local/apps/ParaView/ParaView-v5.6.0/VTK/ThirdParty/mpi4py/vtkmpi4py/src/MPI.c:4:  
/local/apps/ParaView/ParaView-v5.6.0/VTK/ThirdParty/mpi4py/vtkmpi4py/src/mpi4py.MPI.c: In function ‘\_\_Pyx\_PyCFunction\_FastCall’:  
/local/apps/ParaView/ParaView-v5.6.0/VTK/ThirdParty/mpi4py/vtkmpi4py/src/mpi4py.MPI.c:163017:13: error: too many arguments to function ‘(PyObject \* (_)(PyObject , PyObject \* const, Py\_ssize\_t))meth’  
return (_((\_\_Pyx\_PyCFunctionFast)meth)) (self, args, nargs, NULL);

I’d appreciate any advice. TIA

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [May 17, 2019, 1:22pm UTC](https://discourse.paraview.org/t/failure-to-compile-vtkmpi4py-in-pv5-6-0/1876/2 "2019-05-17T13:22:39Z")

</div>

Jean,  
I think I hit the same problem recently. Are you trying to compile paraview 5.6 with python 3.7?

You’ll need to use python 3.6 for paraview 5.6. I think master works with python 3.7.

Dan

---

<div class="post-metadata">

### Author: ![jfavre](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jfavre](https://discourse.paraview.org/u/jfavre)
#### Post date: [May 17, 2019, 1:38pm UTC](https://discourse.paraview.org/t/failure-to-compile-vtkmpi4py-in-pv5-6-0/1876/3 "2019-05-17T13:38:04Z")

</div>

Hello Dan

indeed, I am using the default python3 of Ubuntu 19.04 (i.e. python 3.7).

I confirm that PV master compiles OK.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [May 20, 2019, 10:50am UTC](https://discourse.paraview.org/t/failure-to-compile-vtkmpi4py-in-pv5-6-0/1876/4 "2019-05-20T10:50:07Z")

</div>

To manually update 5.6, see [Superbuild with Anaconda Python 3.7.1](https://discourse.paraview.org/t/superbuild-with-anaconda-python-3-7-1/1391/29)
