![](https://secure.gravatar.com/avatar/e3f31f1e03aa0582a2de43bae8c96f44.jpg?s=120&d=mm&r=g)
Hello, i'm experiencing strange problems after upgrading to python2.6. I'm also using numpy-svn and scipy-svn. So here is the problem. When i try to wrap the following simple fortran code, C File hello.f subroutine foo (a) integer a print*, "Hello from Fortran!" print*, "a=",a end I have problems executing this from python, i.e.
import hello print hello.__doc__ This module 'hello' is auto-generated with f2py (version:2_5968). Functions: foo(a) . print hello.foo.__doc__ foo - Function signature: foo(a) Required arguments: a : input int
hello.foo(4) Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: more argument specifiers than keyword list entries (remaining format:'|:hello.foo')
Thanks for the help in advance
![](https://secure.gravatar.com/avatar/bfe74134e8ac81b6bc24f7358e1e1636.jpg?s=120&d=mm&r=g)
Benjamin Kern <kern <at> mpi-magdeburg.mpg.de> writes:
C File hello.f subroutine foo (a) integer a print*, "Hello from Fortran!" print*, "a=",a end I have problems executing this from python, i.e.
import hello print hello.__doc__ This module 'hello' is auto-generated with f2py (version:2_5968). Functions: foo(a) . print hello.foo.__doc__ foo - Function signature: foo(a) Required arguments: a : input int
hello.foo(4) Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: more argument specifiers than keyword list entries (remaining format:'|:hello.foo')
I am having the same problem. Seemed to happen after I upgraded to python 2.6 and built from numpy-svn and scipy-svn. Any ideas on what's causing this to happen? There was also a post on tbe development list that seems to be the same type of problem. http://thread.gmane.org/gmane.comp.python.scientific.devel/9098 - Kyle
![](https://secure.gravatar.com/avatar/b905e587ef9c92947701c636858c662b.jpg?s=120&d=mm&r=g)
I wasn't aware the problems related to it affected f2py, but AFAIK numny and scipy do not yet support the Python 2.6 release. You're best off staying with Python 2.5.2 for the time being if you need to get work done with numpy and scipy. Josh On Tue, Nov 4, 2008 at 9:45 AM, Benjamin Kern <kern@mpi-magdeburg.mpg.de> wrote:
Hello,
i'm experiencing strange problems after upgrading to python2.6. I'm also using numpy-svn and scipy-svn. So here is the problem. When i try to wrap the following simple fortran code, C File hello.f subroutine foo (a) integer a print*, "Hello from Fortran!" print*, "a=",a end I have problems executing this from python, i.e.
import hello print hello.__doc__ This module 'hello' is auto-generated with f2py (version:2_5968). Functions: foo(a) . print hello.foo.__doc__ foo - Function signature: foo(a) Required arguments: a : input int
hello.foo(4) Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: more argument specifiers than keyword list entries (remaining format:'|:hello.foo')
Thanks for the help in advance _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
![](https://secure.gravatar.com/avatar/e3f31f1e03aa0582a2de43bae8c96f44.jpg?s=120&d=mm&r=g)
Thanks, for the feedback. But still i'm wondering why some of the routines in scipy still work (although they use the same f2py wrapper). In particular, atm i'm writing a small application, which depends heavily on fast integration of ODEs. To increase the speed of the Ode solver, i used to make an fortran module for the ODEs to be solved, as described here http://www.scipy.org/Cookbook/Theoretical_Ecology/Hastings_and_Powell This approach doesn't work anymore. However, if i'm using a python module for the Odes, sth. like the following
def y(t,x): return ydot(..)
i have no problems executing the scipy ode routines....
Benjamin On Wed, 19 Nov 2008 08:10:13 -0800 "Joshua Lippai" <discerptor@gmail.com> wrote:
I wasn't aware the problems related to it affected f2py, but AFAIK numny and scipy do not yet support the Python 2.6 release. You're best off staying with Python 2.5.2 for the time being if you need to get work done with numpy and scipy.
Josh
On Tue, Nov 4, 2008 at 9:45 AM, Benjamin Kern <kern@mpi-magdeburg.mpg.de> wrote:
Hello,
i'm experiencing strange problems after upgrading to python2.6. I'm also using numpy-svn and scipy-svn. So here is the problem. When i try to wrap the following simple fortran code, C File hello.f subroutine foo (a) integer a print*, "Hello from Fortran!" print*, "a=",a end I have problems executing this from python, i.e.
import hello print hello.__doc__ This module 'hello' is auto-generated with f2py (version:2_5968). Functions: foo(a) . print hello.foo.__doc__ foo - Function signature: foo(a) Required arguments: a : input int
hello.foo(4) Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: more argument specifiers than keyword list entries (remaining format:'|:hello.foo')
Thanks for the help in advance _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
participants (4)
-
Benjamin Kern
-
Joshua Lippai
-
kern@mpi-magdeburg.mpg.de
-
Kyle Mandli