TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Steve lonetwin at gmail.com
Fri Aug 20 04:42:50 EDT 2004


Hi Martin,
>   File "/usr/local/lib/python2.3/distutils/sysconfig.py", line 159, in
> customize_compiler
>     cpp = cc + " -E"           # not always
> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
> make: *** [build] Error 1

Judging by the error I'm guessing that you might not have a c or c++
compiler installed. Run the following command to check if you have the
required rpms:

rpm -q gcc
rpm -q gcc-c++

Install them if you they are missing and then rerun 'configure' and 'make'.

HTH
Steve



More information about the Python-list mailing list