[Numpy-discussion] First steps with f2py and first problems...
Pearu Peterson
pearu at cens.ioc.ee
Thu May 8 07:20:06 EDT 2008
On Thu, May 8, 2008 2:06 pm, LB wrote:
> Hi,
>
> I've tried to follow the example given at :
> http://www.scipy.org/Cookbook/Theoretical_Ecology/Hastings_and_Powell
> but I've got errors when compiling the fortran file :
>
> 12:53 loic:~ % f2py -c -m hastings hastings.f90 --fcompiler=gnu95
...
> File "/usr/lib/python2.5/site-packages/numpy/f2py/rules.py", line
> 1222, in buildmodule
> for l in '\n\n'.join(funcwrappers2)+'\n'.split('\n'):
> TypeError: cannot concatenate 'str' and 'list' objects
> zsh: exit 1 f2py -c -m hastings hastings.f90 --fcompiler=gnu95
...
> Have you got any clue to solve this pb ?
This issue is fixed in SVN. So, either use numpy from svn,
or wait a bit until numpy 1.0.5 is released, or change the
line #1222 in numpy/f2py/rules.py to
for l in ('\n\n'.join(funcwrappers2)+'\n').split('\n'):
HTH,
Pearu
More information about the NumPy-Discussion
mailing list