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

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 5 Dec 2006 09:41:47 -0700 (MST)

Thanks Dallas, I had forgotten I had compiled a gcc4 version of
PyNGL. Still, I'm surprised the gcc3 version wouldn't work.

--Mary

On Mon, 4 Dec 2006 mastersd_at_ucar.edu wrote:

> Roelof,
>
> I have this same exact set up. I had to install the latest numpy (not
> in portage) and also use a gcc4 version of pyngl:
> PyNGL_numpy-1.1.0.linux-i686.gcc4.tar.gz. That wors for me.
>
> Dallas
>
> roelof_at_crg.bpb.wits.ac.za writes:
>
>> 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
>
> --
> Dallas Masters, PhD
> National Center for Atmospheric Research
> PO BOX 3000
> Boulder, CO 80307-3000
> 1-303-497-2924
> _______________________________________________
> 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 Tue Dec 05 2006 - 09:41:47 MST

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