PIL for Python 2.4?

Robin Becker robin at reportlab.com
Thu Nov 18 16:03:46 CET 2004


Christos TZOTZIOY Georgiou wrote:
> On Thu, 18 Nov 2004 14:17:50 +0100, rumours say that Gerhard Haering
> <gh at ghaering.de> might have written:
> 
> 
>>>Has anyone built PIL (1.1.4 or 1.1.5) for Python 2.4?  If yes,
>>>please let me know, [...]
>>
>>I haven't. But it would have been useful if you had mentioned which
>>platform ;-) Windows?
> 
> 
> Oh, yes, Windows... On Linux I built it myself.  I just don't have
> access to a MS compiler on Windows.
> 
> Sorry for not being clear.
well I have old MS VC++ 6 and building with setup.py Python 2.4b2 gives an error 
related to the compiler; :( I guess I need MSVC++ 7.

I have MSDN subscription, but no idea whether I can get 6 & 7 to coexist.

#####
running build_ext
Traceback (most recent call last):
   File "setup.py", line 314, in ?
     ext_modules = MODULES,
   File "C:\python24\lib\distutils\core.py", line 149, in setup
     dist.run_commands()
   File "C:\python24\lib\distutils\dist.py", line 946, in run_commands
     self.run_command(cmd)
   File "C:\python24\lib\distutils\dist.py", line 966, in run_command
     cmd_obj.run()
   File "C:\python24\lib\distutils\command\install.py", line 501, in run
     self.run_command('build')
   File "C:\python24\lib\distutils\cmd.py", line 333, in run_command
     self.distribution.run_command(command)
   File "C:\python24\lib\distutils\dist.py", line 966, in run_command
     cmd_obj.run()
   File "C:\python24\lib\distutils\command\build.py", line 112, in run
     self.run_command(cmd_name)
   File "C:\python24\lib\distutils\cmd.py", line 333, in run_command
     self.distribution.run_command(command)
   File "C:\python24\lib\distutils\dist.py", line 966, in run_command
     cmd_obj.run()
   File "C:\python24\lib\distutils\command\build_ext.py", line 253, 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'

-- 
Robin Becker



More information about the Python-list mailing list