[SciPy-user] Debugging f2py-created modules

Pearu Peterson pearu@cens.ioc...
Tue Nov 25 02:31:50 CST 2008


Hi,

Use --debug-capi f2py flag to debug f2py generated modules. With the
flag all interface operations, including processing arguments,
are reported to stdout.

HTH,
Pearu

On Mon, November 24, 2008 9:16 pm, Jose Luis Gomez Dans wrote:
> Hi,
> I have an f2py created module that wraps some fortran into a Python
> object.
> When I run one of the methods, I get the following error:
> <type 'exceptions.ValueError'>: failed to initialize intent(inout) array
> --
> expected elsize=4 but got 8
>
> My method teakes some 34 or so parameters, and there are several defined
> as
> inout, so I don't really know where to start looking. Is there some option
> that tells me what bit of my calling sequence is causing the problem? Say
> my
> function call is
> (a, b, c, d) = my_mod.my_method ( x, y, z, inout_a, inout_b, inout_c)
>
> how do I know that the error is coming from inout_a, or inout_b? Or indeed
> somewhere else? In general, how do you debug a f2py module?
>
> Thanks
> J
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:
> http://www.gmx.net/de/go/multimessenger
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>




More information about the SciPy-user mailing list