[SciPy-user] new problem with f2py --fcompiler=intelem no longer works.

George Nurser gnurser at googlemail.com
Fri Jun 8 18:15:22 EDT 2007


First problem is now solved, thanks, but compilationstill fails with
the second error, with None in version_cmd

--George.



ipython
In [1]: %pdb on
Automatic pdb calling has been turned ON

In [2]: run -i ~/bin/f2py --fcompiler=intelem -c -m J Wright.F
........
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
Found executable
/data/ncs/packages4/linux/intel_compilers/v9.1/em64t/fc/9.1.036/bin/ifort
---------------------------------------------------------------------------
<type 'exceptions.TypeError'>             Traceback (most recent call last)

/noc/users/agn/bin/f2py in <module>()
     24     print >> sys.stderr, "Unknown mode:",`mode`
     25     sys.exit(1)
---> 26 main()
     27
     28

/noc/users/agn/ext/AMD64/lib/python2.5/site-packages/numpy/f2py/f2py2e.py
in main()
    551         return
    552     if '-c' in sys.argv[1:]:
--> 553         run_compile()
    554     else:
    555         run_main(sys.argv[1:])

/noc/users/agn/ext/AMD64/lib/python2.5/site-packages/numpy/f2py/f2py2e.py
in run_compile()
    538         sys.argv.extend(['build_ext']+flib_flags)
    539
--> 540     setup(ext_modules = [ext])
    541
    542     if remove_build_dir and os.path.exists(build_dir):

/noc/users/agn/ext/AMD64/lib/python2.5/site-packages/numpy/distutils/core.py
in setup(**attr)
    174         new_attr['headers'] = []
    175
--> 176     return old_setup(**new_attr)
    177
    178 def _check_append_library(libraries, item):

/noc/users/agn/lib/python2.5/distutils/core.py in setup(**attrs)
    149     if ok:
    150         try:
--> 151             dist.run_commands()
    152         except KeyboardInterrupt:
    153             raise SystemExit, "interrupted"

/noc/users/agn/lib/python2.5/distutils/dist.py in run_commands(self)
    972         """
    973         for cmd in self.commands:
--> 974             self.run_command(cmd)
    975
    976

/noc/users/agn/lib/python2.5/distutils/dist.py in run_command(self, command)
    992         cmd_obj = self.get_command_obj(command)
    993         cmd_obj.ensure_finalized()
--> 994         cmd_obj.run()
    995         self.have_run[command] = 1
    996

/noc/users/agn/lib/python2.5/distutils/command/build.py in run(self)
    110         #  - build_scripts - (Python) scripts
    111         for cmd_name in self.get_sub_commands():
--> 112             self.run_command(cmd_name)
    113
    114

/noc/users/agn/lib/python2.5/distutils/cmd.py in run_command(self, command)
    331         necessary and then invokes its 'run()' method.
    332         """
--> 333         self.distribution.run_command(command)
    334
    335

/noc/users/agn/lib/python2.5/distutils/dist.py in run_command(self, command)
    992         cmd_obj = self.get_command_obj(command)
    993         cmd_obj.ensure_finalized()
--> 994         cmd_obj.run()
    995         self.have_run[command] = 1
    996

/noc/users/agn/ext/AMD64/lib/python2.5/site-packages/numpy/distutils/command/build_ext.py
in run(self)
    179             if fcompiler:
    180                 ctype = fcompiler.compiler_type
--> 181             if fcompiler and fcompiler.get_version():
    182                 fcompiler.customize(self.distribution)
    183                 fcompiler.customize_cmd(self)

/noc/users/agn/ext/AMD64/lib/python2.5/site-packages/numpy/distutils/ccompiler.py
in CCompiler_get_version(self, force, ok_status)
    263     if not version_cmd or not version_cmd[0]:
    264         return None
--> 265     cmd = ' '.join(version_cmd)
    266     try:
    267         matcher = self.version_match

<type 'exceptions.TypeError'>: sequence item 1: expected string, NoneType found
> /noc/users/agn/ext/AMD64/lib/python2.5/site-packages/numpy/distutils/ccompiler.py(265)CCompiler_get_version()
    264         return None
--> 265     cmd = ' '.join(version_cmd)
    266     try:

ipdb> print version_cmd
['/data/ncs/packages4/linux/intel_compilers/v9.1/em64t/fc/9.1.036/bin/ifort',
None]
i



More information about the SciPy-User mailing list