This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: weave build_tools library identification
Type: compile error Stage: resolved
Components: Library (Lib), Windows Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, Tim.Holme, eric.araujo, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2011-08-08 16:52 by Tim.Holme, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg141793 - (view) Author: Tim Holme (Tim.Holme) Date: 2011-08-08 16:52
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
msg141967 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-08-12 16:17
> When running the program,
Which program? :)  To see if this is a bug in Python (i.e. in distutils), it would be helpful if you could provide the simplest possible code that triggers the error.

> 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?)
I think there is another report about that.
msg241572 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2015-04-19 22:44
Is case sensitivity still an issue on Windows?  I've tried searching but there are so many issues referring to case sensitivity that I got swamped.
msg241622 - (view) Author: Tim Golden (tim.golden) * (Python committer) Date: 2015-04-20 08:05
I can't see anything here which is clearly a Python bug. If the OP or anyone else cares to come back (after more than 4 years!) with a clearly-reproducible problem I'm happy to revisit.

I apologise for "waking up" this issue after so long; we really should have closed it within days...
History
Date User Action Args
2022-04-11 14:57:20adminsetgithub: 56921
2015-04-20 08:05:03tim.goldensetstatus: open -> closed
resolution: not a bug
messages: + msg241622

stage: resolved
2015-04-19 22:44:02BreamoreBoysetnosy: + tim.golden, BreamoreBoy, zach.ware, steve.dower
messages: + msg241572
components: + Windows
2011-08-12 16:17:16eric.araujosetnosy: + eric.araujo
messages: + msg141967
2011-08-08 16:52:59Tim.Holmecreate