Sorry for the delay in replying

1. This has nothing to do with your path.
2. It appears that your pympi build will actually run non-interactively, though I suggest you confirm it by creating a non-trivial script, such as the pi example and running it as a file:

$ mpirun -np 3 pyMPI

3. If this runs with good output over all cpu's then the probable cause is the build, you need to add --isatty to the configure, There is an example of building on Solaris in the mailing list [2005] that discusses this. Also there are new line config flags that need to be considered.
4. If the above test doesn t work, you need to fall back to testing mpi itself, using the examples in the mpi installation. pympi is effectively an mpi program, so mpi itself must work for python to work.

Julian Cook

----- Original Message ----
From: Luigi Paioro <>
Sent: Friday, July 7, 2006 5:01:30 AM
Subject: [Pympi-users] Problem running pyMPI with OpenMPI


Sorry for boring you, but I have yet another problem with pyMPI and
OpenMPI. I was reading your article (P. MILLER, 2002) which is "An
introduction to parallel Python" in order to learn how to use pyMPI.
Well, just at my first attempt to use it, something doesn't work
properly. If I type:

$ mpirun -np 3 pyMPI

the >>> prompt doesn't appears, and if I type some commands, they are
execute (only one time) only when I digit Ctrl+d to exit from the Python
shell. Here my output:

$ mpirun -np 3 pyMPI
print "Hello!"


So, I thought that was a problem of my PYTHONPATH, which hasn't defined
how to reach the mpi module ( Well, I've searched for it in my
installation directory, but I haven't found it!

Can you suggest me some tests or something else in order to understand
what's the trouble (and solve it)?

Thank you!


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Pympi-users mailing list