[CIG-SHORT] Problem on the installation of Pylith

Ikuo Cho ikuo-chou at aist.go.jp
Mon Mar 16 17:27:12 PDT 2009


Brad,

Thanks for the reply.
I did "nemesis & import mpi" and obtained 

[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
>>> 

It seems that nemesis imported mpi correctly.
I append two config files that you requested to this email, hoping that
the problem will be solved. 

Ikuo Cho


On Mon, 16 Mar 2009 08:35:34 -0700
Brad Aagaard <baagaard at usgs.gov> wrote:

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


長 郁夫 (Ikuo Cho)
----------------------------------------------------------
独立行政法人 産業技術総合研究所
地質情報研究部門 地震発生機構研究グループ
〒305-8567 つくば市東1-1-1 つくば中央第七
Tel 029-861-3891
     029-861-3688,3534(つながらない場合はこちら迄)
Fax 029-861-3682, e-mail ikuo-chou at aist.go.jp
----------------------------------------------------------
※  転送先の個人アドレスから容量オーバーのメッセージが届く場合
    がありますが,オフィスには届いておりますので再送は不要です。

-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-nemesis.log
Type: application/octet-stream
Size: 18419 bytes
Desc: not available
Url : http://geodynamics.org/pipermail/cig-short/attachments/20090317/aa0354e4/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-pylith.log
Type: application/octet-stream
Size: 49971 bytes
Desc: not available
Url : http://geodynamics.org/pipermail/cig-short/attachments/20090317/aa0354e4/attachment-0003.obj 


More information about the CIG-SHORT mailing list