Dear all,
I have installed the Fenics through Anaconda, but when I am trying to run an example I am getting the following error. Can someone help me with this??
Thanks in advance.
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa Traceback (most recent call last): File
"/home/camv/Documents/Programming/anaconda3/lib/python3.6/site-packages/dolfin/cpp/common.py",
line 18, in swig_import_helper
return importlib.import_module(mname) File "/home/camv/Documents/Programming/anaconda3/lib/python3.6/importlib/init.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level) File "", line 978, in _gcd_import File
"", line 961, in _find_and_load File
"", line 950, in _find_and_load_unlocked
File "", line 648, in _load_unlocked
File "", line 560, in module_from_spec
File "", line 922, in
create_module File "", line 205, in
_call_with_frames_removed ImportError: numpy.core.multiarray failed to import During handling of the above exception, another exception
occurred: Traceback (most recent call last): File
"/home/camv/Downloads/demo_nonlinear-poisson.py", line 47, in
from dolfin import * File "/home/camv/Documents/Programming/anaconda3/lib/python3.6/site-packages/dolfin/init.py",
line 17, in
from . import cpp File "/home/camv/Documents/Programming/anaconda3/lib/python3.6/site-packages/dolfin/cpp/init.py",
line 43, in
exec("from . import %s" % module_name) File "", line 1, in File
"/home/camv/Documents/Programming/anaconda3/lib/python3.6/site-packages/dolfin/cpp/common.py",
line 21, in
_common = swig_import_helper() File "/home/camv/Documents/Programming/anaconda3/lib/python3.6/site-packages/dolfin/cpp/common.py",
line 20, in swig_import_helper
return importlib.import_module('_common') File "/home/camv/Documents/Programming/anaconda3/lib/python3.6/importlib/init.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named '_common'