F2py and Compaq Visual Fortran 6.6, Win-XP

Markus Faust marfadeu at gmx.de
Sun Nov 2 18:06:06 EST 2003


Pearu Peterson (pearu at cens.ioc.ee) replied by email:

On Sun, 2 Nov 2003 M wrote:


 >> Hi Pearu,
 >>
 >> I'm trying to link Fortran files generated with “Compaq Visual Fortran
 >> Optimizing Compiler Version 6.6 (Update B)” under “Enthought Edition
 >> build 1028, Python 2.3 (#46, Aug 11 2003, 09:34:05) [MSC v.1200 32 bit
 >> (Intel)] on win32” on Windows-XP”.
 >>
 >>
 >> I changed mingw32_support.py as proposed by you on April 8 2003 (I
 >> changed `if 1:` block into `if 0:` block).
 >>
 >>
 >> When trying the following Python session:
 >>
 >> import sys
 >> from scipy_distutils.command.build_flib import 
compaq_visual_fortran_compiler
 >> class wrap(compaq_visual_fortran_compiler):
 >>   def announce(self, s):
 >>      sys.stdout.write(s+'\n')
 >>
 >>
 >> wrap().get_version()
 >>
 >> I get
 >>
 >>
 >> detecting Compaq Fortran compiler...
 >> DF /what
 >> found Compaq Visual Fortran Optimizing Compiler Version 6.6 (Update B)
 >> Traceback (most recent call last):
 >>   File "E:\Programme\F2PY-2.37.233-1545\docs\test_visualfortran.py", 
line 8, in ?
 >>     wrap().get_version()
 >>   File 
"E:\Python23\lib\site-packages\scipy_distutils\command\build_flib.py", 
line 1443, in __init__
 >>     from distutils.msvccompiler import find_exe
 >> ImportError: cannot import name find_exe


Hooks related to find_exe were changed in Python 2.3 distutils and this
causes the import error above in your scipy_distutils that assumes Python
2.2 or earlier. CVS version of scipy_distutils works now also with Python
2.3. So, you should update scipy_distutils from scipy CVS when you are
planning to use Python 2.3.

Regards,
	Pearu








More information about the Python-list mailing list