[Pythonmac-SIG] Issue with distutils on OS X ( 10.3)

Bob Ippolito bob at redivi.com
Mon Aug 16 00:54:32 CEST 2004


On Aug 13, 2004, at 5:23 PM, Nathen Hinson wrote:

> To All
>
> 	I am receiving an error with distutils while trying to build an  
> extension module ( pyclips ). I get the following Traceback:
>
> Traceback (most recent call last):
>   File "setup.py", line 1182, in ?
>     include_dirs=[ClipsLIB_dir]),
>   File  
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
> python2.3/distutils/core.py", line 149, in setup
>     dist.run_commands()
>   File  
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
> python2.3/distutils/dist.py", line 907, in run_commands
>     self.run_command(cmd)
>   File  
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
> python2.3/distutils/dist.py", line 927, in run_command
>     cmd_obj.run()
>   File  
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
> python2.3/distutils/command/build.py", line 107, in run
>     self.run_command(cmd_name)
>   File  
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
> python2.3/distutils/cmd.py", line 333, in run_command
>     self.distribution.run_command(command)
>   File  
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
> python2.3/distutils/dist.py", line 927, in run_command
>     cmd_obj.run()
>   File  
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
> python2.3/distutils/command/build_ext.py", line 244, in run
>     customize_compiler(self.compiler)
>   File  
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
> python2.3/distutils/sysconfig.py", line 172, in customize_compiler
>     cc_cmd = cc + ' ' + opt
> TypeError: cannot concatenate 'str' and 'NoneType' objects
>
> I have taken a look at the sysconfig.py script where  
> customize_compiler lives and also taken a look at get_config_vars  
> which is trying to populate a tuple with environmental variables which  
> OS X does not have by default. Running get_config_vars on this machine  
> give me the following output:
> 	{'exec_prefix':  
> '/System/Library/Frameworks/Python.framework/Versions/2.3', 'prefix':  
> '/System/Library/Frameworks/Python.framework/Versions/2.3'}
>
> The get_config_vars() in customize_compiler is looking for variables  
> that are not in the dictionary I get when using this function on OS X.
>
> Does anyone on this list have any ideas or places I might look for  
> answers ?

Do you have Xcode installed?  I've never seen this error message before.

-bob



More information about the Pythonmac-SIG mailing list