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

M

Martin Koekenberg

Hello,

Ik get the following error when I install a new Python software
package such as Zope or PIL.

This is what I get whem I 'make' Zope :

running build_ext
Traceback (most recent call last):
File "/usr/local/zope/Zope-2.7.2-0/setup.py", line 1091, in ?
distclass=ZopeDistribution,
File "/usr/local/lib/python2.3/distutils/core.py", line 149, in
setup
dist.run_commands()
File "/usr/local/lib/python2.3/distutils/dist.py", line 907, in
run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.3/distutils/dist.py", line 927, in
run_command
cmd_obj.run()
File "/usr/local/lib/python2.3/distutils/command/build.py", line
107, in run
self.run_command(cmd_name)
File "/usr/local/lib/python2.3/distutils/cmd.py", line 333, in
run_command
self.distribution.run_command(command)
File "/usr/local/lib/python2.3/distutils/dist.py", line 927, in
run_command
cmd_obj.run()
File "/usr/local/lib/python2.3/distutils/command/build_ext.py", line
244, in run
customize_compiler(self.compiler)
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


../configure has finisched withoud problems.

System : Fedora Core 2
Python 2.3.3


What is wrong here ?

Greetings,

Martin Koekenberg
 
S

Steve

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
 
M

Martin Koekenberg

Hello Steve,

That is not the problem.
gcc-3.3.3-7 and gcc-c++-3.3.3-7 are installed.

Greetings,

Martin Koekenberg
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
 
M

Martin Koekenberg

Ok mayby that is the solution. but....

How do I set this environmet variable ??
I don't have a lot of linux experience ;-)

Thanks,

Martin Koekenberg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top