[Trilinos-Users] Problems using PyTrilinos
Bill Spotz
wfspotz at sandia.gov
Sun Sep 7 14:34:21 MDT 2008
Daniel,
Check /usr/lib/python2.5/site-packages/PyTrilinos. The file
_Teuchos.so should be in there. If not, you have an installation
issue. If it is, I have no idea how python can find the Teuchos.py
file but not the _Teuchos.so file.
On Sep 7, 2008, at 9:22 AM, Daniel Stiles wrote:
> 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
> <ATT00001.txt>
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370 Email: wfspotz at sandia.gov **
More information about the Trilinos-Users
mailing list