[Numpy-discussion] F2PY errors still exist

Blubaugh, David A. dblubaugh at belcan.com
Thu Sep 25 17:44:12 EDT 2008


To All,

I am now trying to use the visual compaq compiler.  I am legally
required to utilize this compiler for my employment.  I have tried the
following:


C:\Python25\Scripts>C:\python25\python f2py.py -c --fcompiler=compaqv -m
hello hello.f90

I was wondering as to if I should input --compiler=msvc.  If so, I am
also obtaining an error with that as well.  


I will then obtain the following error!!  I am now starting to becomed
deeply concerned about F2PY's inability to generate any working
executable or DLL files in capacity.  


The errors are as follows:


running build
running scons
No module named msvccompiler in numpy.distutils; trying from distutils
customize MSVCCompiler
Found executable C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\cl.e
xe
customize GnuFCompiler
Could not locate executable g77
Found executable C:\Program Files\Microsoft Visual
Studio\DF98\BIN\f77.exe
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
Found executable C:\Program Files\Microsoft Visual
Studio\DF98\BIN\f77.exe
customize IntelVisualFCompiler
Could not locate executable ifl
customize AbsoftFCompiler
Found executable C:\Program Files\Microsoft Visual
Studio\DF98\BIN\f90.exe
Found executable C:\Program Files\Microsoft Visual
Studio\DF98\BIN\f90.exe
customize CompaqVisualFCompiler
Found executable C:\Program Files\Microsoft Visual
Studio\DF98\BIN\DF.exe
Found executable C:\Program Files\Microsoft Visual
Studio\DF98\BIN\DF.exe
customize CompaqVisualFCompiler
No module named msvccompiler in numpy.distutils; trying from distutils
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using scons
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands
--compiler opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands
--fcompiler opt
ions
running build_src
building extension "hello" sources
f2py options: []
f2py:>
c:\docume~1\david\locals~1\temp\tmpmladol\src.win32-2.5\hellomodule.c
creating c:\docume~1\david\locals~1\temp\tmpmladol
creating c:\docume~1\david\locals~1\temp\tmpmladol\src.win32-2.5
Reading fortran codes...
        Reading file 'hello.f90' (format:free)
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\david\locals~1\temp\tmpm
ladol\src.win32-2.5/hellomodule.c"
  adding
'c:\docume~1\david\locals~1\temp\tmpmladol\src.win32-2.5\fortranobject.
c' to sources.
  adding 'c:\docume~1\david\locals~1\temp\tmpmladol\src.win32-2.5' to
include_di
rs.
copying C:\python25\lib\site-packages\numpy\f2py\src\fortranobject.c ->
c:\docum
e~1\david\locals~1\temp\tmpmladol\src.win32-2.5
copying C:\python25\lib\site-packages\numpy\f2py\src\fortranobject.h ->
c:\docum
e~1\david\locals~1\temp\tmpmladol\src.win32-2.5
running build_ext
No module named msvccompiler in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
customize CompaqVisualFCompiler
customize CompaqVisualFCompiler using build_ext
building 'hello' extension
compiling C sources
creating c:\docume~1\david\locals~1\temp\tmpmladol\Release
creating c:\docume~1\david\locals~1\temp\tmpmladol\Release\docume~1
creating
c:\docume~1\david\locals~1\temp\tmpmladol\Release\docume~1\david
creating
c:\docume~1\david\locals~1\temp\tmpmladol\Release\docume~1\david\locals
~1
creating
c:\docume~1\david\locals~1\temp\tmpmladol\Release\docume~1\david\locals
~1\temp
creating
c:\docume~1\david\locals~1\temp\tmpmladol\Release\docume~1\david\locals
~1\temp\tmpmladol
creating
c:\docume~1\david\locals~1\temp\tmpmladol\Release\docume~1\david\locals
~1\temp\tmpmladol\src.win32-2.5
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c
/nologo /Ox
 /MD /W3 /GX /DNDEBUG
-Ic:\docume~1\david\locals~1\temp\tmpmladol\src.win32-2.5
-IC:\python25\lib\site-packages\numpy\core\include -IC:\python25\include
-IC:\py
thon25\PC
/Tcc:\docume~1\david\locals~1\temp\tmpmladol\src.win32-2.5\hellomodule
.c
/Foc:\docume~1\david\locals~1\temp\tmpmladol\Release\docume~1\david\loca
ls~1\
temp\tmpmladol\src.win32-2.5\hellomodule.obj
Found executable C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\cl.e
xe
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c
/nologo /Ox
 /MD /W3 /GX /DNDEBUG
-Ic:\docume~1\david\locals~1\temp\tmpmladol\src.win32-2.5
-IC:\python25\lib\site-packages\numpy\core\include -IC:\python25\include
-IC:\py
thon25\PC
/Tcc:\docume~1\david\locals~1\temp\tmpmladol\src.win32-2.5\fortranobje
ct.c
/Foc:\docume~1\david\locals~1\temp\tmpmladol\Release\docume~1\david\loca
ls~
1\temp\tmpmladol\src.win32-2.5\fortranobject.obj
compiling Fortran sources
Fortran f77 compiler: C:\Program Files\Microsoft Visual
Studio\DF98\BIN\DF.exe /
f77rtl /fixed /nologo /MD /WX /iface=(cref,nomixed_str_len_arg)
/names:lowercase
 /assume:underscore /Ox /fast /optimize:5 /unroll:0 /math_library:fast
/threads
Fortran f90 compiler: C:\Program Files\Microsoft Visual
Studio\DF98\BIN\DF.exe /
nologo /MD /WX /iface=(cref,nomixed_str_len_arg) /names:lowercase
/assume:unders
core /Ox /fast /optimize:5 /unroll:0 /math_library:fast /threads
Fortran fix compiler: C:\Program Files\Microsoft Visual
Studio\DF98\BIN\DF.exe /
fixed /nologo /MD /WX /iface=(cref,nomixed_str_len_arg) /names:lowercase
/assume
:underscore /Ox /fast /optimize:5 /unroll:0 /math_library:fast /threads
compile options:
'-Ic:\docume~1\david\locals~1\temp\tmpmladol\src.win32-2.5 -IC:
\python25\lib\site-packages\numpy\core\include -IC:\python25\include
-IC:\python
25\PC -c'
DF.exe:f90: hello.f90
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL
/nologo
 /INCREMENTAL:NO /LIBPATH:C:\python25\libs /LIBPATH:C:\python25\PCBuild
/LIBPATH
:C:\python25\libs /LIBPATH:C:\python25\PCBuild /EXPORT:inithello
c:\docume~1\dav
id\locals~1\temp\tmpmladol\Release\docume~1\david\locals~1\temp\tmpmlado
l\src.wi
n32-2.5\hellomodule.obj
c:\docume~1\david\locals~1\temp\tmpmladol\Release\docume
~1\david\locals~1\temp\tmpmladol\src.win32-2.5\fortranobject.obj
c:\docume~1\dav
id\locals~1\temp\tmpmladol\Release\hello.o /OUT:.\hello.pyd
/IMPLIB:c:\docume~1\
david\locals~1\temp\tmpmladol\Release\docume~1\david\locals~1\temp\tmpml
adol\src
.win32-2.5\hello.lib
Found executable C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\link
.exe
LINK : fatal error LNK1104: cannot open file 'dformd.lib'
error: Command "C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\link.
exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\python25\libs
/LIBPATH:C:\python25\
PCBuild /LIBPATH:C:\python25\libs /LIBPATH:C:\python25\PCBuild
/EXPORT:inithello
 
c:\docume~1\david\locals~1\temp\tmpmladol\Release\docume~1\david\locals~
1\temp\
tmpmladol\src.win32-2.5\hellomodule.obj
c:\docume~1\david\locals~1\temp\tmpmlado
l\Release\docume~1\david\locals~1\temp\tmpmladol\src.win32-2.5\fortranob
ject.obj
 c:\docume~1\david\locals~1\temp\tmpmladol\Release\hello.o
/OUT:.\hello.pyd /IMP
LIB:c:\docume~1\david\locals~1\temp\tmpmladol\Release\docume~1\david\loc
als~1\te
mp\tmpmladol\src.win32-2.5\hello.lib" failed with exit status 1104

C:\Python25\Scripts>

This e-mail transmission contains information that is confidential and may be 
privileged. It is intended only for the addressee(s) named above. If you receive 
this e-mail in error, please do not read, copy or disseminate it in any manner. 
If you are not the intended recipient, any disclosure, copying, distribution or 
use of the contents of this information is prohibited. Please reply to the 
message immediately by informing the sender that the message was misdirected. 
After replying, please erase it from your computer system. Your assistance in 
correcting this error is appreciated.




More information about the NumPy-Discussion mailing list