jorgensd / dolfinx-tutorial

A reimplementation of the Springer book: https://github.com/hplgit/fenics-tutorial/, covering new topics as well as transitioning from dolfin to dolfinx
https://jorgensd.github.io/dolfinx-tutorial/
114 stars 64 forks source link

avoid import error #148

Closed MarDiehl closed 1 year ago

MarDiehl commented 1 year ago

I got AttributeError: module 'dolfinx.fem' has no attribute 'petsc' on IPython.

see also https://stackoverflow.com/questions/27744767

jorgensd commented 1 year ago

Im quite certain this is due to the fact that you are using dolfinx post 0.6.0.

I've got a release branch on github that adresses the changes between 0.6.0 and 0.7.0, but I haven't had time to merge it into main yet and make a release. See https://github.com/jorgensd/dolfinx-tutorial/compare/main...release

MarDiehl commented 1 year ago

yes, I'm using 0.7