daleroberts / pypar

Efficient and scalable parallelism using the message passing interface (MPI) to handle big data and highly computational problems.
GNU General Public License v3.0
69 stars 15 forks source link

Error on import pypar #8

Closed abdulbudiaji closed 8 years ago

abdulbudiaji commented 8 years ago

I recently installed fresh ubuntu14.04. Then I installed mpich2. I forgot whether i have installed openmpi also or not.

I create virtual environment. Install numpy as required by pypar 2.0 using pip Then install pypar using

python setup.py install

I checked using pip freeze and pypar is really installed

I tried pypar in python intrepeter

import pypar

Then i got this error.

[pangrango:02488] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_paffinity_hwloc: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[pangrango:02488] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_carto_auto_detect: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[pangrango:02488] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_carto_file: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[pangrango:02488] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_shmem_mmap: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[pangrango:02488] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_shmem_posix: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
[pangrango:02488] mca: base: component_find: unable to open /usr/lib/openmpi/lib/openmpi/mca_shmem_sysv: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored)
--------------------------------------------------------------------------
Sorry!  You were supposed to get help about:
    opal_init:startup:internal-failure
But I couldn't open the help file:
    /usr/share/openmpi/help-opal-runtime.txt: No such file or directory.  Sorry!
--------------------------------------------------------------------------
[pangrango:02488] [[INVALID],INVALID] ORTE_ERROR_LOG: Error in file runtime/orte_init.c at line 79
--------------------------------------------------------------------------
Sorry!  You were supposed to get help about:
    mpi_init:startup:internal-failure
But I couldn't open the help file:
    /usr/share/openmpi/help-mpi-runtime: No such file or directory.  Sorry!
--------------------------------------------------------------------------
*** An error occurred in MPI_Init
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL: your MPI job will now abort
[pangrango:2488] Local abort before MPI_INIT completed successfully; not able to aggregate error messages, and not able to guarantee that all other processes were killed!

I try:

mpirun -np 4 pwd

and it worked/

I tried restart the computer, and I still got the same error. Any idea what might have happened? Thanks.

wfang commented 8 years ago

The error message is coming from OpenMPI, but you mention you are using MPICH. Please make sure you are referring to the right MPI.

daleroberts commented 8 years ago

Thanks @wfang