Comment 2 for bug 1980878

Revision history for this message
Christophe Prud'homme (prudhomm-debian) wrote :

None of the explanations to run petsc4py in /usr/share/doc/python3-petsc4py/README.Debian work by simply installing python3-petsc4py-real and python3-petsc4py

what works is to set by hand PETSC_DIR, there should be a default alternative, IMHO

> PETSC_DIR=/usr/lib/petscdir/petsc3.15/x86_64-linux-gnu-real python3 -c "import petsc4py; print(petsc4py.__path__)"
['/usr/lib/petscdir/petsc3.15/x86_64-linux-gnu-real/lib/python3/dist-packages/petsc4py']