CellType not in dolfinx.mesh anymore

Hi.

I am trying to run a (not so much) older code in dolfinx and I get error while doing

from dolfinx.mesh import CellType

any idea how is done now?

Thanks

python3 -c "import dolfinx; print(dolfinx.__version__); import dolfinx.mesh; print(dolfinx.mesh.CellType)"
0.3.1.0
<class 'dolfinx.cpp.mesh.CellType'>

Thanks.
Seems that while creating a new docker run with dolfinx/dolfinx:latest, it installed the 0.1

1 Like

You need to call docker pull dolfinx/dolfinx:latest if you have previously pulled this image to update it

Edit
The :latest tag has been replaced with :nightly and one should use
docker pull dolfinx/dolfinx:nightly to get the docker image that is based on main and built every night

1 Like