[ python-Bugs-1021756 ] 2.4a3: unhelpful error message from
distutils
SourceForge.net
noreply at sourceforge.net
Mon Nov 22 20:00:29 CET 2004
Bugs item #1021756, was opened at 2004-09-03 13:34
Message generated for change (Comment added) made by effbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1021756&group_id=5470
Category: Distutils
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Fredrik Lundh (effbot)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2.4a3: unhelpful error message from distutils
Initial Comment:
C:\somewhere> python
Python 2.4a3 (#56, Sep 2 2004, 20:50:21) ...
C:\somewhere> python setup.py build
running build_ext
Traceback (most recent call last):
File "setup.py", line 19, in ?
ext_modules = [
File "C:\python24\lib\distutils\core.py", line 150, in
setup
dist.run_commands()
File "C:\python24\lib\distutils\dist.py", line 991, in
run_commands
self.run_command(cmd)
File "C:\python24\lib\distutils\dist.py", line 1011, in
run_command
cmd_obj.run()
File "C:\python24\lib\distutils\command\build_ext.py",
line 243, in run
force=self.force)
File "C:\python24\lib\distutils\ccompiler.py", line 1177,
in new_compiler
return klass (None, dry_run, force)
File "C:\python24\lib\distutils\msvccompiler.py", line
206, in __init__
self.__macros = MacroExpander(self.__version)
File "C:\python24\lib\distutils\msvccompiler.py", line
112, in __init__
self.load_macros(version)
File "C:\python24\lib\distutils\msvccompiler.py", line
128, in load_macros
self.set_macro("FrameworkSDKDir",
net, "sdkinstallrootv1.1")
File "C:\python24\lib\distutils\msvccompiler.py", line
118, in set_macro
self.macros["$(%s)" % macro] = d[key]
KeyError: 'sdkinstallrootv1.1'
I suppose it's trying to tell me something, but I'm not
sure what.
</F>
----------------------------------------------------------------------
>Comment By: Fredrik Lundh (effbot)
Date: 2004-11-22 20:00
Message:
Logged In: YES
user_id=38376
"I would wrap the offending line in load_macros function and
throw an exception with more informative args. Do you want
me to?"
Makes sense to me.
----------------------------------------------------------------------
Comment By: Christos Georgiou (tzot)
Date: 2004-11-22 16:00
Message:
Logged In: YES
user_id=539787
Please forgive my previous quadruple followup.
This page ( http://www.vrplumber.com/programming/mstoolkit/
) is relevant. The message about sdkinstallroot1.1 should
be related to the .NET Framework SDK v1.1 not being installed.
I would wrap the offending line in load_macros function and
throw an exception with more informative args. Do you want
me to?
PS I attempted to "pass" the failing statement in line 128
(in the load_macros function); building Imaging complains
that VS 7.1 is not installed.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2004-11-22 12:08
Message:
Logged In: NO
I get the same message trying to build PIL with 2.4rc1,
having installed the VC++ toolkit (free command line
compiler), so it's not a problem of VS 6. I assume/fear
that the .NET SDK framework needs to be installed.
----------------------------------------------------------------------
Comment By: Christos Georgiou (tzot)
Date: 2004-11-22 12:08
Message:
Logged In: YES
user_id=539787
I get the same message trying to build PIL with 2.4rc1,
having installed the VC++ toolkit (free command line
compiler), so it's not a problem of VS 6. I assume/fear
that the .NET SDK framework needs to be installed.
----------------------------------------------------------------------
Comment By: Christos Georgiou (tzot)
Date: 2004-11-22 12:07
Message:
Logged In: YES
user_id=539787
I get the same message trying to build PIL with 2.4rc1,
having installed the VC++ toolkit (free command line
compiler), so it's not a problem of VS 6. I assume/fear
that the .NET SDK framework needs to be installed.
----------------------------------------------------------------------
Comment By: Christos Georgiou (tzot)
Date: 2004-11-22 12:05
Message:
Logged In: YES
user_id=539787
I get the same message trying to build PIL with 2.4rc1,
having installed the VC++ toolkit (free command line
compiler), so it's not a problem of VS 6. I assume/fear
that the .NET SDK framework needs to be installed.
----------------------------------------------------------------------
Comment By: Michiel de Hoon (mdehoon)
Date: 2004-10-18 07:44
Message:
Logged In: YES
user_id=488897
Note that the same error occurs with python setup.py install
(using Python 2.4b1):
C:\somewhere> python setup.py build
....
File "c:\Python24\lib\distutils\msvccompiler.py", line
118, in set_macro
self.macros["$(%s)" % macro] = d[key]
KeyError: 'sdkinstallrootv1.1'
Using MinGW for the compilation works:
C:\somewhere> python setup.py build --compiler=mingw32
....
compiles without errors. However, the install still fails:
C:\somewhere> python setup.py install
File "c:\Python24\lib\distutils\msvccompiler.py", line
118, in set_macro
self.macros["$(%s)" % macro] = d[key]
KeyError: 'sdkinstallrootv1.1'
----------------------------------------------------------------------
Comment By: Anthony Baxter (anthonybaxter)
Date: 2004-10-13 17:56
Message:
Logged In: YES
user_id=29957
Yep. Can you produce a small patch for this? I have no
access to MSVC 6 or 7 (in fact, my Windows box won't even
boot at the moment).
----------------------------------------------------------------------
Comment By: Fredrik Lundh (effbot)
Date: 2004-10-13 17:29
Message:
Logged In: YES
user_id=38376
If I'm using the wrong compiler, distutils should say so,
instead of showing me a 10-level KeyError traceback...
----------------------------------------------------------------------
Comment By: Anthony Baxter (anthonybaxter)
Date: 2004-10-13 17:11
Message:
Logged In: YES
user_id=29957
It looks (to me) like it's expecting you to have some
additional package (Framework SDK?) installed. The code in
question was added as part of the MSVC7 support - are you
building with MSVC6?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1021756&group_id=5470
More information about the Python-bugs-list
mailing list