Issue 8384: Better error message for executables not found (original) (raw)

Created on 2010-04-13 01:15 by cmcqueen1975, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (9)
msg103000 - (view) Author: Craig McQueen (cmcqueen1975) Date: 2010-04-13 01:15
I tried to build a C extension in Python 3.1.2. \Python31\python.exe setup.py build --compiler=mingw32 I got a stack-trace: ... File "C:\Python31\lib\distutils\cygwinccompiler.py", line 280, in __init__ CygwinCCompiler.__init__ (self, verbose, dry_run, force) File "C:\Python31\lib\distutils\cygwinccompiler.py", line 124, in __init__ if self.ld_version >= "2.10.90": TypeError: unorderable types: NoneType() >= str() This is Windows 2000 SP4, with MinGW 5.1.6.
msg103035 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2010-04-13 11:19
Can you run the following command: ld -v and paste the result?
msg103094 - (view) Author: Craig McQueen (cmcqueen1975) Date: 2010-04-13 23:29
\MinGW\bin\ld.exe -v GNU ld (GNU Binutils) 2.20
msg103109 - (view) Author: Craig McQueen (cmcqueen1975) Date: 2010-04-14 02:21
I just realised--I didn't have c:\mingw\bin in my path. Once I added that to the path, then the build worked fine. So I guess the issue is only that the error message is somewhat cryptic.
msg103112 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2010-04-14 07:47
Ok thanks for you test. If it can't get the ld version I'll display this message: "could not detect the ld version. Make sure MinGW is installed and its bin directory is in the path" I'll do this for 2.7/3.2
msg103421 - (view) Author: anatoly techtonik (techtonik) Date: 2010-04-17 18:21
To me a better option would be an ability to specify a path to compiler from command line. --compiler-path=./mingw/bin/gcc.exe
msg121402 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-11-18 01:18
Anatoly: Please open a feature request for distutils2. Thanks in advance. Craig: This seems to have fallen out of the radar, sorry. Someone may propose a patch during the upcoming bug week-end, or we’ll do it.
msg221824 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-29 00:04
@Éric can you put this on your todo list if it's not already there?
msg386304 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-03 18:16
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools
History
Date User Action Args
2022-04-11 14:56:59 admin set github: 52631
2021-02-03 18:16:21 steve.dower set status: open -> closednosy: + steve.dowermessages: + resolution: out of datestage: resolved
2019-03-16 00:04:33 BreamoreBoy set nosy: - BreamoreBoy
2014-06-29 00:04:04 BreamoreBoy set nosy: + BreamoreBoymessages: + versions: + Python 3.4, Python 3.5, - Python 3.1, Python 3.2
2010-11-18 01🔞07 eric.araujo set nosy: + eric.araujotitle: Distutils C extension build with MinGW on Windows fails -> Better error message for executables not foundmessages: + versions: + Python 3.1
2010-04-17 18:21:48 techtonik set nosy: + techtonikmessages: +
2010-04-14 07:47:33 tarek set priority: lowtype: crash -> behaviormessages: + versions: + Python 2.7, Python 3.2, - Python 3.1
2010-04-14 07:44:23 amaury.forgeotdarc set keywords: + easy
2010-04-14 02:21:36 cmcqueen1975 set messages: +
2010-04-13 23:29:46 cmcqueen1975 set messages: +
2010-04-13 17:15:53 srid set components: + Windows
2010-04-13 11:19:01 amaury.forgeotdarc set nosy: + amaury.forgeotdarcmessages: +
2010-04-13 01:15:37 cmcqueen1975 create