[f2py] Location of vcvarsall.bat on Windows

Paul Hobson <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
Hey everyone,

I've followed f2py's example instructions to a T, and figure out this error:
"error: Unable to find vcvarsall.bat" (more f2py output is below)

I wrestled with this for several hours over the weekend. Went out got
the contents of vcvarsall.bat, but now I just can't figure out what's
calling it and where it should be.

-I've tried C:\Python26\scripts, several gfortran directories,
C:\...\Visual Studio\vc, etc
-I'm on Python 2.6 with a fresh intallation of Numpy and gfortan
(started fresh on Friday)
-calling f2py without any arguments confirms that it's installed correctly

Any thoughts? Any help is very much appreciated.
-paul

-----f2py output-----

PHobson@por-phobson /cygdrive/c/python26/scripts
$ python f2py.py -c mingw32 -m hello hello.f90
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 "hello" sources
f2py options: []
f2py:> c:\docume~1\phobson\locals~1\temp\tmppoxgl2\src.win32-2.6\hellomodule.c
creating c:\docume~1\phobson\locals~1\temp\tmppoxgl2
creating c:\docume~1\phobson\locals~1\temp\tmppoxgl2\src.win32-2.6
Reading fortran codes...
        Reading file 'hello.f90' (format:fix)
Post-processing...
        Block: hello
                        Block: foo
Post-processing (stage 2)...
Building modules...
        Building module "hello"...
                Constructing wrapper function "foo"...
                  foo(a)
        Wrote C/API module "hello" to file
"c:\docume~1\phobson\locals~1\temp\tmppoxgl2\src.win32-2.6/hellomodule.c"
  adding 'c:\docume~1\phobson\locals~1\temp\tmppoxgl2\src.win32-2.6\fortranobject.c'
to sources.
  adding 'c:\docume~1\phobson\locals~1\temp\tmppoxgl2\src.win32-2.6'
to include_dirs.
copying c:\Python26\lib\site-packages\numpy\f2py\src\fortranobject.c
-> c:\docume~1\phobson\locals~1\temp\tmppoxgl2\src.win32-2.6
copying c:\Python26\lib\site-packages\numpy\f2py\src\fortranobject.h
-> c:\docume~1\phobson\locals~1\temp\tmppoxgl2\src.win32-2.6
running build_ext
No module named msvccompiler in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Found executable C:\cygwin\bin\DF.exe
Found executable C:\cygwin\bin\DF.exe
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Found executable c:\gfortran\bin\gfortran.exe
Found executable c:\gfortran\bin\gfortran.exe
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'hello' extension
compiling C sources
error: Unable to find vcvarsall.bat

----/f2py output----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.