Jonathan Buck
unread,Feb 25, 2014, 4:01:34 PM2/25/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to f2py-...@cens.ioc.ee
I'm trying out f2py with a basic fortran subroutine that calculate the sum
of an array. I'm getting a "cannot find the file specified" error once f2py
starts trying to compile. I'm usually pretty good at tracking these things
down, but this one has me stumped. I have all the files printed above the
error: python27.dll, libmsvcr90.a, msvcr90d.dll. Can someone steer me in the
right direction? Thanks, I really appreciate it!
H:\training\Python\2014Seminar\Demos>f2py -c -m fortran_sum fortran_sum_sub.f
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 "fortran_sum" sources
f2py options: []
f2py:>
c:\users\jbuck\appdata\local\temp\tmpkiu6pf\src.win-amd64-2.7\
fortran_summodule.c
creating c:\users\jbuck\appdata\local\temp\tmpkiu6pf
creating c:\users\jbuck\appdata\local\temp\tmpkiu6pf\src.win-amd64-2.7
Reading fortran codes...
Reading file 'fortran_sum_sub.f' (format:fix,strict)
Post-processing...
Block: fortran_sum
Block: fortran_sum
Post-processing (stage 2)...
Building modules...
Building module "fortran_sum"...
Constructing wrapper function "fortran_sum"...
fortran_sum(x,my_sum,[n])
Wrote C/API module "fortran_sum" to file
"c:\users\jbuck\appdata\local\temp\tmpkiu6pf\src.win-amd64-2.7\
fortran_summodule.c"
adding
'c:\users\jbuck\appdata\local\temp\tmpkiu6pf\src.win-amd64-2.7\fortranobject.c'
to sources.
adding 'c:\users\jbuck\appdata\local\temp\tmpkiu6pf\src.win-amd64-2.7' to
include_dirs.
copying C:\Anaconda\lib\site-packages\numpy\f2py\src\fortranobject.c ->
c:\users\jbuck\appdata\local\temp\tmpkiu6pf\src.win-amd64-2.7
copying C:\Anaconda\lib\site-packages\numpy\f2py\src\fortranobject.h ->
c:\users\jbuck\appdata\local\temp\tmpkiu6pf\src.win-amd64-2.7
build_src: building npy-pkg config files
running build_ext
Looking for python27.dll
Building msvcr library: "C:\Anaconda\libs\libmsvcr90d.a" (from
C:\Windows\winsxs\
amd64_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.4967_none_e2a19f2740da
af62\msvcr90d.dll)
error: The system cannot find the file specified