Dear all,
I'm coding my FEniCS code under Pycharm and every is ok, I can run it and see the results. But when I try to run it under the terminal by just type:
python myFEniCS-Code.py
Then I received this error. So now I can only run my code by PyCharm, this is not so convenient. How can I solve it? Maybe this is a very stupid question, I'm a very new FEniCSer. Thank you!
Python 2.7.12 (default, Jul 1 2016, 15:12:24)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import dolfin
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/dist-packages/dolfin/init.py", line 17, in
from . import cpp
File "/usr/lib/python2.7/dist-packages/dolfin/cpp/init.py", line 43, in
exec("from . import %s" % module_name)
File "", line 1, in
File "/usr/lib/python2.7/dist-packages/dolfin/cpp/common.py", line 32, in
_common = swig_import_helper()
File "/usr/lib/python2.7/dist-packages/dolfin/cpp/common.py", line 28, in swig_import_helper
_mod = imp.load_module('_common', fp, pathname, description)
ImportError: /usr/lib/libblacsCinit-openmpi.so.1: undefined symbol: ompi_mpi_comm_world
I checked my /usr/lib, and I find I have the libblacsCinit-openmpi.so.1 file, so I don't know why this problem happen.
Hope someone can help me.
Thank you.