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 :

---------------------------------errors
--------------------------------------------------
12:53 loic:~ % f2py -c -m hastings hastings.f90 --fcompiler=gnu95
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --
compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --
fcompiler options
running build_src
building extension "hastings" sources
f2py options: []
f2py:> /tmp/tmpDRL9Gh/src.linux-i686-2.5/hastingsmodule.c
creating /tmp/tmpDRL9Gh
creating /tmp/tmpDRL9Gh/src.linux-i686-2.5
Reading fortran codes...
        Reading file 'hastings.f90' (format:free)
Post-processing...
        Block: hastings
                        Block: model
                                Block: fweb
Post-processing (stage 2)...
        Block: hastings
                Block: unknown_interface
                        Block: model
                                Block: fweb
Building modules...
        Building module "hastings"...
                Constructing F90 module support for "model"...
                  Variables: a1 a2 b1 b2 d2 d1
                        Constructing wrapper function "model.fweb"...
                          yprime = fweb(y,t)
        Wrote C/API module "hastings" to file "/tmp/tmpDRL9Gh/src.linux-
i686-2.5/hastingsmodule.c"
Traceback (most recent call last):
  File "/usr/bin/f2py", line 26, in <module>
    main()
  File "/usr/lib/python2.5/site-packages/numpy/f2py/f2py2e.py", line
558, in main
    run_compile()
  File "/usr/lib/python2.5/site-packages/numpy/f2py/f2py2e.py", line
545, in run_compile
    setup(ext_modules = [ext])
  File "/usr/lib/python2.5/site-packages/numpy/distutils/core.py",
line 176, in setup
    return old_setup(**new_attr)
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in
run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in
run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/distutils/command/build.py", line 113, in
run
    self.run_command(cmd_name)
  File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in
run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/numpy/distutils/command/
build_src.py", line 130, in run
    self.build_sources()
  File "/usr/lib/python2.5/site-packages/numpy/distutils/command/
build_src.py", line 147, in build_sources
    self.build_extension_sources(ext)
  File "/usr/lib/python2.5/site-packages/numpy/distutils/command/
build_src.py", line 256, in build_extension_sources
    sources = self.f2py_sources(sources, ext)
  File "/usr/lib/python2.5/site-packages/numpy/distutils/command/
build_src.py", line 513, in f2py_sources
    ['-m',ext_name]+f_sources)
  File "/usr/lib/python2.5/site-packages/numpy/f2py/f2py2e.py", line
367, in run_main
    ret=buildmodules(postlist)
  File "/usr/lib/python2.5/site-packages/numpy/f2py/f2py2e.py", line
319, in buildmodules
    dict_append(ret[mnames[i]],rules.buildmodule(modules[i],um))
  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

---------------------------------
configuration-------------------------------------
I'm using debian testing, and I got the following information at the
bottom of `f2py -h` :
Version:     2_4422
numpy Version: 1.0.4
Requires:    Python 2.3 or higher.
License:     NumPy license (see LICENSE.txt in the NumPy source code)


Have you got any clue to solve this pb ?
--
LB
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to