[New-bugs-announce] [issue12712] weave build_tools library identification

Tim Holme report at bugs.python.org
Mon Aug 8 18:53:00 CEST 2011


New submission from Tim Holme <timholme at gmail.com>:

This may be a problem with scipy/weave, or it may be a problem with the site-library pythonequations, or it may be in python 2.7.2 itself.  

When running the program, it looks for an installed version of MinGW, which it finds.  It is possibly looking for C:\Python27\lib\distutils\core.py in the wrong location (the "Lib" should be capitalized?) It then throws the error report:

Found executable C:\MinGW\bin\g++.exe

Traceback (most recent call last):
  File "C:\Python27\Lib\site-packages\pythonequations\QuadFit3D.py", line 327, in <module>
    TkFileDialogExample(root).pack()
  File "C:\Python27\Lib\site-packages\pythonequations\QuadFit3D.py", line 315, in __init__
    run(fname,MAX_MSE)
  File "C:\Python27\Lib\site-packages\pythonequations\QuadFit3D.py", line 68, in run
    equation.SetGAParametersAndGuessInitialCoefficientsIfNeeded() # estimate initial parameters if needed
  File "C:\Python27\lib\site-packages\pythonequations\EquationBaseClasses.py", line 631, in SetGAParametersAndGuessInitialCoefficientsIfNeeded
    self.EstimateInitialCoefficientsUsingCPP()
  File "C:\Python27\lib\site-packages\pythonequations\EquationBaseClasses.py", line 1502, in EstimateInitialCoefficientsUsingCPP
    weave.inline(code, parameterNameList, support_code = supportCode, extra_compile_args = Equation.compiler_flags_for_weave_inline, compiler = Equation.compiler_name)
  File "C:\Python27\lib\site-packages\scipy\weave\inline_tools.py", line 355, in inline
    **kw)
  File "C:\Python27\lib\site-packages\scipy\weave\inline_tools.py", line 482, in compile_function
    verbose=verbose, **kw)
  File "C:\Python27\lib\site-packages\scipy\weave\ext_tools.py", line 367, in compile
    verbose = verbose, **kw)
  File "C:\Python27\lib\site-packages\scipy\weave\build_tools.py", line 272, in build_extension
    setup(name = module_name, ext_modules = [ext],verbose=verb)
  File "C:\Python27\lib\site-packages\numpy\distutils\core.py", line 186, in setup
    return old_setup(**new_attr)
  File "C:\Python27\lib\distutils\core.py", line 162, in setup
    raise SystemExit, error
CompileError: error: Bad file descriptor

----------
components: Library (Lib)
messages: 141793
nosy: Tim.Holme
priority: normal
severity: normal
status: open
title: weave build_tools library identification
type: compile error
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12712>
_______________________________________


More information about the New-bugs-announce mailing list