Weirdly enough, when doing `import dolfin` a second time, the error is
```
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-c13f418a68dc> in <module>()
----> 1 import dolfin
/usr/lib/python3/dist-packages/dolfin/__init__.py in <module>()
    138 from .common.plotting import plot
    139 
--> 140 from .fem.assembling import (assemble, assemble_system, 
assemble_multimesh,
    141                              SystemAssembler, assemble_local)
    142 from .fem.form import Form

/usr/lib/python3/dist-packages/dolfin/fem/assembling.py in <module>()
     31 
     32 import ufl
---> 33 import dolfin.cpp as cpp
     34 from dolfin.fem.form import Form
     35 from dolfin import MPI

AttributeError: module 'dolfin' has no attribute 'cpp'
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1792720

Title:
  RuntimeError: Error when importing mpi4py

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dolfin/+bug/1792720/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to