<div dir="ltr">I've had that issue in the past, but never bothered looking into it. Me, I'll hold out for 2018.1 (which kills Python 2 support) to fix these kind of bugs.<div><br></div><div>Cheers,</div><div>Nico</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 13, 2018 at 4:54 PM Fabrice Silva <<a href="mailto:silva@lma.cnrs-mrs.fr">silva@lma.cnrs-mrs.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Additional information from Johannes Ring (fenics dev) on <br>
<a href="https://groups.google.com/d/topic/fenics-support/mfJdWYwq0-w/discussion" rel="noreferrer" target="_blank">https://groups.google.com/d/topic/fenics-support/mfJdWYwq0-w/discussion</a><br>
<br>
The problem is that the path to petsc4py is included in<br>
/usr/share/dolfin/cmake/DOLFINConfig.cmake and<br>
/usr/share/dolfin/cmake/DOLFINTargets.cmake, while it should only<br>
have been included in /usr/share/dolfin/cmake/DOLFINPython27.cmake<br>
and /usr/share/dolfin/cmake/DOLFINPython36.cmake.<br>
<br>
The quick fix would be to either install python-petsc4py (the<br>
petsc4py include files are the same for python2 and python3) or to<br>
remove the path to petsc4py from DOLFINConfig.cmake and<br>
DOLFINTargets.cmake.<br>
<br>
These recommendations solve the trouble (even if other errors are still<br>
raised in the overly-simplified script).<br>
<br>
</blockquote></div>