[Zope] Error with installing zope 2.7.2

Roché Compaan roche at upfrontsystems.co.za
Sat Aug 21 01:54:59 EDT 2004


* Martin Koekenberg <zope at digital-adventures.nl> [2004-08-20 19:56]:
> Hello,
> 
> I did a new try to install Zope 2.7.2. But i'm getting a error with I can't explain.
> 
> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
> (This is the same error I get whem I want to install PIL.)
> 
> This Is the way I installed Zope
> 
> ./configure --prefix=/usr/local/zope/2.7.2
> Make 
> Then I get the following error line :
> 
> 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                                               
> 
> Where do I have to serach for the solution, Is it Zope, Python or a corrupted library ???
> Whon can Help me ?

It seems that there is something wrong with your Python installation's
Makefile or with your C compiler. disutils parses Python's Makefile to
find out what compiler you use. There should be a line that says "CC =
gcc ­pthread" or the like in  /usr/local/lib/python2.3/config/Makefile
which there obviously isn't. Try and reinstall Python.

-- 
Roché Compaan
Upfront Systems                 http://www.upfrontsystems.co.za


More information about the Zope mailing list