f2py error - windows xp (F2PY-2.43.239_1806)

M. Faust marfadeut at gmx.de
Sat Sep 25 18:43:50 EDT 2004


M. Faust wrote:
> 
> I got the same error with NumPy 23.3.
> 
> Markus
numpy_info:
   FOUND:
     define_macros = [('NUMERIC_VERSION', '"\\"23.3\\""')]
     include_dirs = ['D:\\Python23\\include']

running build
running config_fc
running build_src
building extension "hello" sources
f2py:> d:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src\hellomodule.c
creating d:\dokume~1\faust\lokale~1\temp\tmp57wwzd
creating d:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src
Reading fortran codes...
         Reading file 'hello.f'
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 
"d:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src/hellomodule.c"
   adding 
'd:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src\fortranobject.c' to sources.
   adding 'd:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src' to include_dirs.
copying D:\Python23\lib\site-packages\f2py2e\src\fortranobject.c -> 
d:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src
copying D:\Python23\lib\site-packages\f2py2e\src\fortranobject.h -> 
d:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src
running build_ext
No module named msvccompiler in scipy_distutils, trying from distutils..
customize MSVCCompiler
customize MSVCCompiler using build_ext
0
customize CompaqVisualFCompiler
customize CompaqVisualFCompiler using build_ext
building 'hello' extension
compling C sources
D:\Programme\Microsoft Visual Studio\VC98\BIN\cl.exe /c /nologo /Ox /MD 
/W3 /GX /DNDEBUG -ID:\Python23\include -Id:\dokume~1\faust\l
okale~1\temp\tmp57wwzd\src -ID:\Python23\include -ID:\Python23\PC 
/Tcd:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src\fortranobject.c /
Fod:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src\fortranobject.obj
fortranobject.c
d:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src\fortranobject.c(576) : 
error C2039: 'weakreflist' : is not a member of 'PyArrayObject'

         D:\Python23\include\Numeric/arrayobject.h(49) : see declaration 
of 'PyArrayObject'
d:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src\fortranobject.c(576) : 
error C2039: 'weakreflist' : is not a member of 'PyArrayObject'

         D:\Python23\include\Numeric/arrayobject.h(49) : see declaration 
of 'PyArrayObject'
d:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src\fortranobject.c(576) : 
error C2039: 'weakreflist' : is not a member of 'PyArrayObject'

         D:\Python23\include\Numeric/arrayobject.h(49) : see declaration 
of 'PyArrayObject'
d:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src\fortranobject.c(576) : 
error C2039: 'weakreflist' : is not a member of 'PyArrayObject'

         D:\Python23\include\Numeric/arrayobject.h(49) : see declaration 
of 'PyArrayObject'
error: Command ""D:\Programme\Microsoft Visual Studio\VC98\BIN\cl.exe" 
/c /nologo /Ox /MD /W3 /GX /DNDEBUG -ID:\Python23\include -Id
:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src -ID:\Python23\include 
-ID:\Python23\PC /Tcd:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src
\fortranobject.c 
/Fod:\dokume~1\faust\lokale~1\temp\tmp57wwzd\src\fortranobject.obj" 
failed with exit status 2




More information about the Python-list mailing list