Error on dolfinx docker container

Dear FENICS community

I’m facing an strange error in the latest build of the dolfinx in docker. After pulling the image and try to run any code from the demo, I get import errors like

ImportError: cannot import name 'DirichletBC' from 'dolfinx' (/usr/local/dolfinx-real/lib/python3.8/dist-packages/dolfinx/__init__.py)

ImportError: cannot import name 'BoxMesh' from 'dolfinx' (/usr/local/dolfinx-real/lib/python3.8/dist-packages/dolfinx/__init__.py)

I’m running the image with

  docker run -ti -v "$(pwd)":/root/shared dolfinx/dolfinx:latest

Any clues about what is going on?

The user interface has been updated:

and

The tutorial shows the new import syntax
https://jorgensd.github.io/dolfinx-tutorial/

1 Like