[f2py] Problem running F2PY
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <67114873.9514961259860702733.JavaMail.root@sz0120a.emeryville.ca.mail.comcast.net> |
I attempted the following: >>>f2py -c fib1.f -m fib1 The output is in the attached file out.txt Errors went to the attached file out.txt fib1.f is also attached. I have Cygwin installed; but I have problems interpreting the error message. error: Python was built with Visual Studio 2003; extensions must be built with a compiler than can generate compatible binaries. Visual Studio 2003 was not found on this system. If you have Cygwin installed, you can try compiling with MingW32, by passing "-c mingw32" to setup.py. which setup.py should I pass -c mingw32? george send mail to [email protected] _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] http://cens.ioc.ee/mailman/listinfo/f2py-users
err.txt
(text/plain, 281 B)
error: Python was built with Visual Studio 2003; extensions must be built with a compiler than can generate compatible binaries. Visual Studio 2003 was not found on this system. If you have Cygwin installed, you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
out.txt
(text/plain, 1.4 KB)
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 build_src building extension "fib1" sources f2py options: [] f2py:> c:\users\george\appdata\local\temp\tmpakcy9n\src.win32-2.5\fib1module.c creating c:\users\george\appdata\local\temp\tmpakcy9n creating c:\users\george\appdata\local\temp\tmpakcy9n\src.win32-2.5 Reading fortran codes... Reading file 'fib1.f' (format:fix,strict) Post-processing... Block: fib1 Block: fib Post-processing (stage 2)... Building modules... Building module "fib1"... Constructing wrapper function "fib"... fib(a,[n]) Wrote C/API module "fib1" to file "c:\users\george\appdata\local\temp\tmpakcy9n\src.win32-2.5/fib1module.c" adding 'c:\users\george\appdata\local\temp\tmpakcy9n\src.win32-2.5\fortranobject.c' to sources. adding 'c:\users\george\appdata\local\temp\tmpakcy9n\src.win32-2.5' to include_dirs. copying c:\Python25\lib\site-packages\numpy\f2py\src\fortranobject.c -> c:\users\george\appdata\local\temp\tmpakcy9n\src.win32-2.5 copying c:\Python25\lib\site-packages\numpy\f2py\src\fortranobject.h -> c:\users\george\appdata\local\temp\tmpakcy9n\src.win32-2.5 build_src: building npy-pkg config files running build_ext No module named msvccompiler in numpy.distutils; trying from distutils
fib1.f
(text/x-fortran, 381 B)
C FILE: FIB1.F
SUBROUTINE FIB(A,N)
C
C CALCULATE FIRST N FIBONACCI NUMBERS
C
INTEGER N
REAL*8 A(N)
DO I=1,N
IF (I.EQ.1) THEN
A[I) = 0.0D0
ELSEIF (I.EQ.2) THEN
A(I) = 1.0
ELSE
A(I) = A(I-1) + A(I-2)
ENDIF
ENDDO
END
C END FILE FIB1.F