[Pythonmac-SIG] distutils "unsupported operand type"
Eli Stevens (WG.c)
listsub at wickedgrey.com
Thu Sep 29 01:00:20 CEST 2005
I'm trying to build Cheetah 0.9.18 (the template engine) on OSX 10.3
with python 2.4.1 (a framework build). I found other people having
similar problems with Zope or PIL.
I get an error inside the distutils stuff that seems like it's tracing
back to how python was built. As best I can tell, it's looking for an
OPT var inside of the Makefile (possibly the one at
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config/Makefile
?).
The closest thing to a solution that I've seen was at:
http://nixdoc.net/files/forum/about47446.html
But that's just an accurate assesment of what's wrong. Has anyone else
encountered this? Am I just searching on the wrong terms?
Thanks,
Eli
Here's the command lines and stack traces:
~/Downloads/Cheetah-0.9.18> python ./setup.py build
running build
running build_py
running build_ext
Traceback (most recent call last):
File "./setup.py", line 13, in ?
SetupTools.run_setup( configurations )
File "/Users/elis/Downloads/Cheetah-0.9.18/SetupTools.py", line 143,
in run_setup
apply(setup, (), kws)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/core.py",
line 149, in setup
dist.run_commands()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 946, in run_commands
self.run_command(cmd)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 966, in run_command
cmd_obj.run()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/command/build.py",
line 112, in run
self.run_command(cmd_name)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 966, in run_command
cmd_obj.run()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/command/build_ext.py",
line 254, in run
customize_compiler(self.compiler)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/sysconfig.py",
line 161, in customize_compiler
cpp = cc + " -E" # not always
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
~/Downloads/Cheetah-0.9.18> export CPP=g++
~/Downloads/Cheetah-0.9.18> python ./setup.py build
running build
running build_py
running build_ext
Traceback (most recent call last):
File "./setup.py", line 13, in ?
SetupTools.run_setup( configurations )
File "/Users/elis/Downloads/Cheetah-0.9.18/SetupTools.py", line 143,
in run_setup
apply(setup, (), kws)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/core.py",
line 149, in setup
dist.run_commands()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 946, in run_commands
self.run_command(cmd)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 966, in run_command
cmd_obj.run()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/command/build.py",
line 112, in run
self.run_command(cmd_name)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 966, in run_command
cmd_obj.run()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/command/build_ext.py",
line 254, in run
customize_compiler(self.compiler)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/sysconfig.py",
line 174, in customize_compiler
cc_cmd = cc + ' ' + opt
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
More information about the Pythonmac-SIG
mailing list