[CIG-SHORT] Problem on the installation of Pylith

Brad Aagaard baagaard at usgs.gov
Mon Mar 16 08:35:34 PDT 2009


Ikuo-

It looks like PyLith built okay, but there is probably something wrong in your 
environment variables. "import mpi" should fail in a python shell, but not in 
a python shell started via nemesis.

What happens when you run the following?

nemesis
import mpi

Please send the config.log files that were created when installing nemesis and 
PyLith.

Brad



On Monday 16 March 2009 4:27:26 am Ikuo Cho wrote:
> Dear pylith developers,
>
> I have installed Pylith from the source code into a Linux machine with
> specification:
>
> OS: Fedora Core 8
> CPU: Intel(R) Pentium(R) D CPU 3.00GHz
> uname -m = i686
> uname -r = 2.6.24.5-85.fc8
> uname -s = Linux
> uname -v = #1 SMP Sat Apr 19 12:39:34 EDT 2008
>
> As a note, I installed Python2.5.2 to /home/beowulf/local and export
> PYTHONPATH=/home/beowulf/local/lib/python2.5/site-packages
> although I have another python version 2.5.1 in the system directory
> /usr. I installed pylith so that it does NOT depend on MPICH but MPICH2.
>
> No noticeable warning was found in the installation process of Pylith,
> but I was not able to run it correctly. To be specific, I tried to run
> Pylith in the directory
> /home/beowulf/Shoyu_cho.1.3.1/pylith-1.3.1/examples/3d/hex8 by typing
> “ pylith dislocation.cfg”. However, I only obtained the following
> messages.
>
> [beowulf at localhost hex8]$ pylith dislocation.cfg
> Traceback (most recent call last):
>   File "/home/beowulf/local/bin/pylith", line 31, in <module>
>     from pylith.PyLithApp import PyLithApp
>   File
> "/home/beowulf/local/lib/python2.5/site-packages/pylith/PyLithApp.py", line
> 17, in <module> from mpi import Application
>   File
> "/home/beowulf/local/lib/python2.5/site-packages/pythia-0.8.1.7-py2.5.egg/m
>pi/__init__.py", line 14, in <module> from _mpi import *
> ImportError: No module named _mpi
>
> Could you tell me what happened?
> I append two make.log files to this maiil and I think that the following
> information obtained from the python shell is useful to make a diagnosis.
>
> [beowulf at localhost ~]$ python
> Python 2.5.2 (r252:60911, Mar 16 2009, 16:42:20)
> [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import sys
> >>> sys.path
>
> ['', '/home/beowulf/local/lib/python2.5/site-packages/merlin-1.6.egg',
> '/home/beowulf/local/lib/python2.5/site-packages/pythia-0.8.1.7-py2.5.egg',
> '/home/beowulf/local/lib/python2.5/site-packages/Cheetah-2.0rc8-py2.5-linux
>-i686.egg', '/home/beowulf/local/lib/python2.5/site-packages',
> '/home/beowulf/local/lib/python25.zip',
> '/home/beowulf/local/lib/python2.5',
> '/home/beowulf/local/lib/python2.5/plat-linux2',
> '/home/beowulf/local/lib/python2.5/lib-tk',
> '/home/beowulf/local/lib/python2.5/lib-dynload']
>
> >>> import mpi
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/home/beowulf/local/lib/python2.5/site-packages/pythia-0.8.1.7-py2.5.egg/m
>pi/__init__.py", line 14, in <module> from _mpi import *
> ImportError: No module named _mpi
>
> Also,
>
> [beowulf at localhost ~]$ nemesis
> Python 2.5.2 (r252:60911, Mar 16 2009, 16:42:20)
> [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import _mpi
>
> After all, the nemesis  seems to have been installed correctly and I
> have a single MPI installation on this machine (I installed MPI for
> Pylith). Also, I made sure the correct 'mpiexec' and 'python' in my path
> when installing nemesis.
>
> Ikuo Cho
> ----------------------------------------------------------
> Geological Survey of Japan,
> National Institute of Advanced Industrial Science and Technology
> Tsukuba Central 7, Tsukuba 305-8567 Japan
> Tel +81-29-861-3891, Fax +81-29-861-3682
> ----------------------------------------------------------




More information about the CIG-SHORT mailing list