Thread: [Pypar-developers] FW: python-C API compatibility problem with pypar [SEC=UNCLASSIFIED]
Brought to you by:
uniomni
|
From: <Ole...@ga...> - 2009-06-09 23:56:28
|
Has anyone seen this warning before?
It appears that the compiled mpiext is newer than the Python he is running.
But, since the compile script is using Python itself, I don't understand what might be happening here.
Any ideas anyone?
Cheers and many thanks
Ole Nielsen
-----Original Message-----
From: Jean-Baptiste Juin [mailto:jb...@as...]
Sent: Wednesday, 10 June 2009 7:54 AM
To: Nielsen Ole
Subject: python-C API compatibility problem with pypar
Dear Ole,
I'm using pypar for astronomy data analysis and I installed it on two
laptop for the moment wihtout any problem.
I tried on a new machine with a functionnal mpich2 installation
(1.0.8p1). The compilation is fine, the problem comes when running a
mpi program, I got that error:
/home/jbjuin/sciSofts/pypar_2.1.0_66/source/pypar.py:731:
RuntimeWarning: Python C API version mismatch for module mpiext: This
Python has API version 1012, module mpiext has version 1013. import
mpiext /home/jbjuin/sciSofts/pypar_2.1.0_66/source/pypar.py:731:
RuntimeWarning: Python C API version mismatch for module mpiext: This
Python has API version 1012, module mpiext has version 1013. import
mpiext
The python version I use is the 2.5.4,
pypar version is 2.1.0_66.
Any idea to solve that issue ?
Thanks for that wonderful module,
Jean-Baptiste Juin
--
jb...@as...
Astronomy Department
P. Universidad Catolica
|
|
From: <Ole...@ga...> - 2009-06-11 21:00:35
|
Has anyone else had this problem?
Cheers
Ole
-----Original Message-----
From: Jean-Baptiste Juin [mailto:jb...@as...]
Sent: Friday, 12 June 2009 12:16 AM
To: Nielsen Ole
Subject: Re: python-C API compatibility problem with pypar [SEC=UNCLASSIFIED]
mpich2 use python scripts as daemon and to run mpi programs: mpd,
mpiexec, etc. Anyway after few try mpich2 recognized my python 2.5.4
installation. Then I built pypar with the same python 2.5.4. Same
error.
I will try again and eventually try another python parallel module.
Cheers,
Jean-Baptiste
Le Thu, 11 Jun 2009 11:56:27 +1000,
<Ole...@ga...> a écrit :
>
> I have no idea, sorry, but I am surprised that mpich2 has any
> reference to Python at all. If this causes trouble, you might
> consider switching to OpenMPI instead.
>
> Thoughts anyone?
>
> Cheers
> Ole
>
> -----Original Message-----
> From: Jean-Baptiste Juin [mailto:jb...@as...]
> Sent: Thursday, 11 June 2009 6:16 AM
> To: Nielsen Ole
> Subject: Re: python-C API compatibility problem with pypar
> [SEC=UNCLASSIFIED]
>
> Hi Ole,
>
> you are right: mpich2 use python2.4.
>
> Do you know how to force the python location when compiling mpich2 ?
> I installed python2.5.4 and 2.6.2 in my home and they are not found by
> the mpich2 configure script.
>
> Cheers,
>
> JB
>
>
> Le Wed, 10 Jun 2009 09:57:26 +1000,
> <Ole...@ga...> a écrit :
>
> > Hi Jean-Baptiste
> >
> > Thanks for you mail.
> >
> > I don't know what may be the matter so I forwarded your request onto
> > the pypar mailing list with a few thoughts of my own.
> >
> > Are you sure you are using the same version of Python for compiling
> > Pypar as the one you use to execute your MPI programs?
> >
> > Cheers
> > Ole
> >
> > -----Original Message-----
> > From: Jean-Baptiste Juin [mailto:jb...@as...]
> > Sent: Wednesday, 10 June 2009 7:54 AM
> > To: Nielsen Ole
> > Subject: python-C API compatibility problem with pypar
> >
> > Dear Ole,
> >
> > I'm using pypar for astronomy data analysis and I installed it on
> > two laptop for the moment wihtout any problem.
> >
> > I tried on a new machine with a functionnal mpich2 installation
> > (1.0.8p1). The compilation is fine, the problem comes when running a
> > mpi program, I got that error:
> >
> > /home/jbjuin/sciSofts/pypar_2.1.0_66/source/pypar.py:731:
> > RuntimeWarning: Python C API version mismatch for module mpiext:
> > This Python has API version 1012, module mpiext has version 1013.
> > import
> > mpiext /home/jbjuin/sciSofts/pypar_2.1.0_66/source/pypar.py:731:
> > RuntimeWarning: Python C API version mismatch for module mpiext:
> > This Python has API version 1012, module mpiext has version 1013.
> > import mpiext
> >
> > The python version I use is the 2.5.4,
> > pypar version is 2.1.0_66.
> >
> > Any idea to solve that issue ?
> >
> > Thanks for that wonderful module,
> >
> > Jean-Baptiste Juin
> >
> >
> >
> > --
> >
> > jb...@as...
> >
> > Astronomy Department
> > P. Universidad Catolica
> >
> >
> >
> >
> >
> >
>
>
> --
>
> jb...@as...
>
> Astronomy Department
> P. Universidad Catolica
>
>
>
>
>
>
--
jb...@as...
Astronomy Department
P. Universidad Catolica
|
|
From: Prabhu R. <pr...@ae...> - 2009-06-10 16:23:10
|
On 06/10/09 05:26, Ole...@ga... wrote: > Has anyone seen this warning before? > It appears that the compiled mpiext is newer than the Python he is running. > But, since the compile script is using Python itself, I don't understand what might be happening here. As you mention, the only reason this may happen is that the mpiext is compiled with a different Python version. I would clean out the build directory and rebuild/reinstall pypar to get this working. I think it is simply a matter of the mpiext.so file already existing from an earlier install or build. cheers, prabhu |