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?
dokken
December 20, 2021, 5:59pm
2
The user interface has been updated:
committed 03:11PM - 26 Nov 21 UTC
* Add AdjacencyList wrapper
* Udpates
* Add some docs
* Simplifications…
* Add Mesh Python class
* Add ufl domain
* Wrap mesh for one demo
* More updates
* flake8 fixes
* More updates
* MeshTag update
* More updates
* More updates
* Fix import
* gmsh demo updates
* io updates
* Geometry fixes
* flake8 fix
* Simplifications
* Simplify mesh construction
* Simplifications
* More simplifications
* flake8 fix
* Test updates
* Import updates
* Work around doc error
* More updates
* flake8 fixes
* Update Newton test changes
* Work on AdjacencyList
* flake8 fix
* Type fixes
* flake8 fix
* Wrapper updates
* flake8 fix
* Remove commented code
* Doc fixes
* More doc updates
* Update docs
* Remove some top-level imports
* Demo updates
* Test updates
* Tets updates
* Demo updates
* flake8 fix
* More test fixes
* Assembly test updates
* flake8 fix
* Test update
* Add some docs
* Small doc improvement
* Update documentation
* Flake8
* Fix doc formatting
* Rename midpoints -> compute_midpoints
* Add missing license header
* flake8 fix
* More typing additions
* Edit docs
* Doc updates
* Add some return types and typing to meshtag intializer
* Minor doc edit
Co-authored-by: Jørgen S. Dokken <dokken92@gmail.com>
Co-authored-by: Jørgen Dokken <jsd55@cam.ac.uk>
and
committed 12:50PM - 15 Dec 21 UTC
* Refactor generation to mesh.
* Builds. Tests not touched.
* Runs.
* T… idy up before fixing tests.
* Broke something in casters.
* Won't build, don't fully understand why
* line wraps
* More auto changes
* cpp demos.
* More autochanges.
* Should be possible to harmonise these functions.
* flake8
* Remove old directory
* One file.
* Builds, tests won't pass
* Tests sedded.
* Unit tests pass I think.
* More updates
* isort
* isort
* flake8
* Fix
* clang-format
* Fix headers
* Fix docs
* Fix elasticity demo
* clang-format
Co-authored-by: Garth N. Wells <gnw20@cam.ac.uk>
The tutorial shows the new import syntax
https://jorgensd.github.io/dolfinx-tutorial/
1 Like