error while importing dolfin to python

Asked by mighalis

I tried my first example on Fenics an i got this error:

Traceback (most recent call last):
  File "test1.py", line 1, in <module>
    from dolfin import *
  File "/usr/lib/python2.7/dist-packages/dolfin/__init__.py", line 23, in <module>
    from dolfin.cppimports import *
  File "/usr/lib/python2.7/dist-packages/dolfin/cppimports.py", line 4, in <module>
    import dolfin.cpp as cpp
  File "/usr/lib/python2.7/dist-packages/dolfin/cpp.py", line 30, in <module>
    _cpp = swig_import_helper()
  File "/usr/lib/python2.7/dist-packages/dolfin/cpp.py", line 26, in swig_import_helper
    _mod = imp.load_module('_cpp', fp, pathname, description)
ImportError: libtrilinos_epetra.so.10.8: cannot open shared object file: No such file or directory

dpkg -l | grep fenics
gives me:
ii fenics 1:1.0.0-2~ppa1~oneiric1 automation of computational mathematical modeling

dpkg -l | grep python-dolfin
ii python-dolfin 1.0.0-2~ppa2~oneiric1 Python interface for DOLFIN

i run dolfin in a linux mint 12 system with the ubuntu package of fenics.

Question information

Language:
English Edit question
Status:
Solved
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Solved by:
mighalis
Solved:
Last query:
Last reply:
Revision history for this message
mighalis (mighalis) said :
#1

Obviously the solution was to install the libtrilinos lib. ;)