[ python-Bugs-1021756 ] 2.4a3: unhelpful error message from distutils

SourceForge.net noreply at sourceforge.net
Wed Oct 13 17:29:51 CEST 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-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