Re: [ncl-talk] compiled versions of C-API fatal error

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 4 Dec 2006 13:52:50 -0700 (MST)

Hi Roelof,

Since this is a PyNGL question, it's more appropriate to post it to
pyngl-talk rather than ncl-talk. I will CC pyngl-talk on this message.

I think what's happening is that you have a version of PyNGL was
compiled on a system that had GCC version 3.x, and trying to run
it on a system that has GCC 4.x. With NCL, you can run it on both
3.x and 4.x systems, but that doesn't seem to be the case with PyNGL.

I will try to build you a new version to try. Unfortunately, I have
meetings for the rest of the day.

Maybe tonight or tomorrow...

--Mary

On Mon, 4 Dec 2006 roelof_at_crg.wits.ac.za wrote:

> Hi everybody,
> I'm a new user (theoretically net yet, since I can't get it to
> work...), so excuse any apparent cluelessness.
>
> I'm trying to get pyngl_numpy to work without success, I get the
> following after install:
>
> <start python 2.4.3>
>
>>>> import PyNGL_numpy.Ngl as Ngl
> RuntimeError: module compiled against version 1000009 of C-API but
> this version of numpy is 1000002
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/X11R6/lib/python2.4/site-packages/PyNGL_numpy/Ngl.py",
> line 58, in ?
> from hlu import *
> File "/usr/X11R6/lib/python2.4/site-packages/PyNGL_numpy/hlu.py",
> line 5, in ?
> import _hlu
> ImportError: numpy.core.multiarray failed to import
>
> <end python 2.4.3>
>
> So I think that mean I used different C-API's to compile PyNGL and
> numpy? Problem is I can't compile PyNGL and I don't know where to get
> a numpy with the same C-API as PyNGL - that's if I have a correct
> understanding of the whole problem.
>
> Here's the details of my system (Gentoo):
> gcc version 4.1
> Python 2.4.3
> numpy-1.0
> PyNGL_numpy-1.1.0
>
> Thanks for your time and suggestions,
> Regards,
> Roelof
> --
> Climatology Research Group - Wits University
> Tel: 011 7176533 Fax: 011 7176535 Cel: 082 5639776
> roelof_at_crg.wits.ac.za <><
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Mon Dec 04 2006 - 13:52:50 MST

This archive was generated by hypermail 2.2.0 : Tue Dec 05 2006 - 13:30:16 MST