[Trilinos-Users] Problems using PyTrilinos

Daniel Stiles monkey.chess at gmail.com
Sun Sep 7 07:22:18 MDT 2008


Hello everyone,

I am trying to build Trilinos to use in Python.  Everything builds and
installs fine, but when I open a python shell and say "from PyTrilinos
import *, I get:

from PyTrilinos import *
---------------------------------------------------------------------------
<type 'exceptions.ImportError'>           Traceback (most recent call last)

/home/daniel/Desktop/trilinos-8.0.8/configure-files/<ipython console> in
<module>()

/usr/lib/python2.5/site-packages/PyTrilinos/Teuchos.py in <module>()
     43 """
     44
---> 45 import _Teuchos
     46 import new
     47 new_instancemethod = new.instancemethod

<type 'exceptions.ImportError'>: libteuchos.so: cannot open shared object
file: No such file or directory

The configuration I used was:

../configure CXXFLAGS="-O3 -DMPICH_IGNORE_CXX_SEEK" CFLAGS="-O3" FFLAGS="-O5
-funroll-all-loops -malign-double" --enable-epetra --enable-aztecoo
--enable-pytrilinos --enable-ml --enable-ifpack --enable-amesos --enable-mpi
--with-gnumake --with-shared

from within a folder I made.  I then just ran make, then sudo make install.

The shared objects are created, and are located in /usr/local/lib,
PyTrilinos is located at /usr/lib/python2.5/site-packages/PyTrilinos.

If I install locally, the same problem occurs.

-- 
-Daniel Stiles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20080907/f249137c/attachment.html 


More information about the Trilinos-Users mailing list