I installed dolfinx via the docker build but I have dolfinx scripts that import PetscBinaryIO in order to read and write PETSc vecs in binary. When I run the scripts it says ModuleNotFoundError: No module named 'PetscBinaryIO'
How can I import PetscBinaryIO with the docker build? Is there more stuff I need to install?
You would need to add /usr/local/petsc/lib/petsc/bin/
to your pythonpath, i.e.
export PYTHONPATH=/usr/local/petsc/lib/petsc/bin/:$PYTHONPATH
2 Likes