IMPORT PROBLEM

623 views
Skip to first unread message

Mahan Raj Banerjee

unread,
May 14, 2012, 2:17:10 AM5/14/12
to mpi...@googlegroups.com
Hello

I have installed mpi4py-1.3 with ETD-7.2-1 in my system (Fedora 16). But whenever I try to import MPI from mpi4py in ipython console I get the following message:

"ImportErro
r: libmpi.so.0: cannot open shared object file: No such file or directory"

Please help

I have openmpi-1.4.5 installed in my system.

Mahan
Doctoral Student
IIT Kanpur, INDIA

Aron Ahmadia

unread,
May 14, 2012, 9:46:39 AM5/14/12
to mpi...@googlegroups.com
Where is libmpi.so.0 on your system?  Is it on your LD_LIBRARY_PATH?  I seem to recall that Fedora uses modules to handle MPI installations in a fairly wonky manner.

A


--
You received this message because you are subscribed to the Google Groups "mpi4py" group.
To post to this group, send email to mpi...@googlegroups.com.
To unsubscribe from this group, send email to mpi4py+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mpi4py?hl=en.

Thomas Spura

unread,
May 14, 2012, 11:16:32 AM5/14/12
to mpi...@googlegroups.com
On Mon, May 14, 2012 at 8:17 AM, Mahan Raj Banerjee <mahan...@gmail.com> wrote:
I have installed mpi4py-1.3 with ETD-7.2-1 in my system (Fedora 16). But whenever I try to import MPI from mpi4py in ipython console I get the following message:

"ImportErro
r: libmpi.so.0: cannot open shared object file: No such file or directory"

mpi4py is also available in the Fedora repository, so it would probably best to install it from there with:
"yum install mpi4py-openmpi"
or
"yum install mpi4py-mpich2"

After loading the proper mpi environment with e.g. "module load openmpi-x86_64" you should be able to use mpi4py out of the box.

Greetings,
     Tom

Lisandro Dalcin

unread,
May 14, 2012, 12:26:53 PM5/14/12
to mpi...@googlegroups.com
However, IIUC, the OP want to use mpi4py with EPD Python distribution.
So perhaps building mpi4py is still required. Anyway, I expect that
installing mpi4py from Fedora repos and adding a symlink to EPD's
site-packages directory would work.


--
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169
Reply all
Reply to author
Forward
0 new messages