[SciPy-dev] Bug in f2py
Nils Wagner
nwagner at mecha.uni-stuttgart.de
Mon Jul 25 15:21:52 EDT 2005
Hi all,
python setup.py build results in
Reading fortran codes...
Reading file 'Lib/optimize/lbfgsb-0.9/lbfgsb.pyf'
(format:free)
Post-processing...
Block: _lbfgsb
Block: setulb
"name 'x' is not defined" in evaluating 'len(x)'
(available names: [])
Traceback (most recent call last):
File "setup.py", line 124, in ?
setup_package(ignore_packages)
File "setup.py", line 112, in setup_package
url = "http://www.scipy.org",
File
"/home/nwagner/cvs/scipy/scipy_core/scipy_distutils/core.py",
line 73, in setup
return old_setup(**new_attr)
File "/usr/lib/python2.4/distutils/core.py", line 149,
in setup
dist.run_commands()
File "/usr/lib/python2.4/distutils/dist.py", line 946,
in run_commands
self.run_command(cmd)
File "/usr/lib/python2.4/distutils/dist.py", line 966,
in run_command
cmd_obj.run()
File "/usr/lib/python2.4/distutils/command/build.py",
line 112, in run
self.run_command(cmd_name)
File "/usr/lib/python2.4/distutils/cmd.py", line 333,
in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.4/distutils/dist.py", line 966,
in run_command
cmd_obj.run()
File
"/home/nwagner/cvs/scipy/scipy_core/scipy_distutils/command/build_src.py",
line 129, in run
self.build_sources()
File
"/home/nwagner/cvs/scipy/scipy_core/scipy_distutils/command/build_src.py",
line 215, in build_sources
self.build_extension_sources(ext)
File
"/home/nwagner/cvs/scipy/scipy_core/scipy_distutils/command/build_src.py",
line 255, in build_extension_sources
sources = self.f2py_sources(sources, ext)
File
"/home/nwagner/cvs/scipy/scipy_core/scipy_distutils/command/build_src.py",
line 399, in f2py_sources
f2py2e.run_main(f2py_options +
['--build-dir',target_dir,source])
File
"/usr/lib/python2.4/site-packages/f2py2e/f2py2e.py", line
417, in run_main
postlist=callcrackfortran(files,options)
File
"/usr/lib/python2.4/site-packages/f2py2e/f2py2e.py", line
356, in callcrackfortran
postlist=crackfortran.crackfortran(files)
File
"/usr/lib/python2.4/site-packages/f2py2e/crackfortran.py",
line 2521, in crackfortran
postlist=postcrack(grouplist[0])
File
"/usr/lib/python2.4/site-packages/f2py2e/crackfortran.py",
line 1469, in postcrack
g=postcrack(g,tab=tab+'\t')
File
"/usr/lib/python2.4/site-packages/f2py2e/crackfortran.py",
line 1487, in postcrack
block['body']=analyzebody(block,args,tab=tab)
File
"/usr/lib/python2.4/site-packages/f2py2e/crackfortran.py",
line 1628, in analyzebody
b=postcrack(b,as,tab=tab+'\t')
File
"/usr/lib/python2.4/site-packages/f2py2e/crackfortran.py",
line 1487, in postcrack
block['body']=analyzebody(block,args,tab=tab)
File
"/usr/lib/python2.4/site-packages/f2py2e/crackfortran.py",
line 1628, in analyzebody
b=postcrack(b,as,tab=tab+'\t')
File
"/usr/lib/python2.4/site-packages/f2py2e/crackfortran.py",
line 1483, in postcrack
block['vars']=analyzevars(block)
File
"/usr/lib/python2.4/site-packages/f2py2e/crackfortran.py",
line 2140, in analyzevars
length = _eval_length(vars[n]['charselector']['*'],
NameError: global name '_eval_length' is not defined
Nils
More information about the SciPy-Dev
mailing list