[Numpy-discussion] f2py problems

Pearu Peterson pearu at scipy.org
Tue Jan 24 08:18:02 EST 2006


On Tue, 24 Jan 2006, George Nurser wrote:

> I'm not sure whether this is the right list for f2py questions, but anyway.
>
> Tried it (v 2_1967) out today. It worked beautifully for a simple function.
>
> But for a more complicated (f77) *.F file with preprocessor directives and a 
> lot of data statements I have been having problems.
>
> Firstly, it just seemed to ignore all of the lines with preprocessor 
> directives.

f2py does not do preprocessing.

> Secondly, after I used a preprocessor to create the .f file separately, and 
> then ran the .f file through f2py, I got the following error trace.
> Anybody have any ideas?

> line 2007, in analyzevars
>   for k in implicitrules[ln0].keys():
> KeyError: '('

Could you send me the file that caused this error? The error may be due to 
a f2py bug or a non-standard Fortran code.

Thanks,
Pearu




More information about the NumPy-Discussion mailing list