f2py error - windows xp (F2PY-2.43.239_1806)

Robert Kern rkern at ucsd.edu
Mon Sep 27 20:42:52 EDT 2004


M. Faust wrote:
> Thanks, Bethold for a good hint ...
> 
> I had in "Numeric/arrayobject.h"
> 
> typedef struct {
>   PyObject_HEAD
>   char *data;
>   int nd;
>   int *dimensions, *strides;
>   PyObject *base;
>   PyArray_Descr *descr;
>   int flags;
> } PyArrayObject;
> 
> After adding
> 
>    PyObject *weakreflist;
> 
> I could generate a hello.pyd. Python really is an incredibly versatile 
> and powerful tool.

Don't do that. You are looking at an old version of 
Numeric/arrayobject.h . Delete that directory and everything else 
Numeric and re-install Numeric 23.3 . Check it again. It should have the 
appropriate members, then.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter



More information about the Python-list mailing list