Problem Running Example Code ft01_poisson.py using FEniCS installed using Ubunutu


20
views
0
11 days ago by
Hello,
I installed fenics using Ubuntu packages and ran the test command (python -c ’import fenics’) without any error message. However, when I try to run the example code ft01_poisson.py, I get the following error message:

In instant.import_module_directly: Failed to import module 'dolfin_108a2b2ad0c5c9270b489d564ef5b6dc6b136255' from '/home/arabeh/.cache/instant/python2.7/cache';
ImportError:/home/arabeh/Packages/petsc-3.6.4/arch-linux2-c-debug/lib/libmpifort.so.12: undefined symbol: MPIR_F_TRUE;
Failed to import module found in cache. Modulename: 'dolfin_108a2b2ad0c5c9270b489d564ef5b6dc6b136255';
Path: '/home/arabeh/.cache/instant/python2.7/cache';
ImportError:/home/arabeh/Packages/petsc-3.6.4/arch-linux2-c-debug/lib/libmpifort.so.12: undefined symbol: MPIR_F_TRUE;
Traceback (most recent call last):
File "ft01_poisson.py", line 20, in <module>
u_D = Expression('1 + x[0]*x[0] + 2*x[1]*x[1]', degree=2)
File "/usr/lib/python2.7/dist-packages/dolfin/functions/expression.py", line 679, in __new__
mpi_comm=kwargs.get("mpi_comm"))
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/expressions.py", line 266, in compile_expressions
mpi_comm=mpi_comm)
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/expressions.py", line 183, in compile_expression_code
mpi_comm=mpi_comm)
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line 70, in mpi_jit
return local_jit(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/compilemodule.py", line 567, in compile_extension_module
compiled_module = instant.import_module(module_name)
File "/usr/lib/python2.7/dist-packages/instant/cache.py", line 176, in import_module
return check_disk_cache(modulename, cache_dir, moduleids)
File "/usr/lib/python2.7/dist-packages/instant/cache.py", line 144, in check_disk_cache
module = import_and_cache_module(path, modulename, moduleids)
File "/usr/lib/python2.7/dist-packages/instant/cache.py", line 92, in import_and_cache_module
e))
File "/usr/lib/python2.7/dist-packages/instant/output.py", line 103, in instant_assert
raise AssertionError(text)
AssertionError: Failed to import module found in cache. Modulename: 'dolfin_108a2b2ad0c5c9270b489d564ef5b6dc6b136255';
Path: '/home/arabeh/.cache/instant/python2.7/cache';
ImportError:/home/arabeh/Packages/petsc-3.6.4/arch-linux2-c-debug/lib/libmpifort.so.12: undefined symbol: MPIR_F_TRUE;
Aborted (core dumped)
I will highly appreciate if anyone have suggestions on how to solve this issue.



Community: FEniCS Project
Please login to add an answer/comment or follow this question.

Similar posts:
Search »