This is an incompatibility between the version of zope3 and the version of python you are using.

There is an answer here :


Arne Nordmann a écrit :
Hey guys.

I have a problem with my Zope3 installation on a kubuntu edgy system. I installed the current zope3 package (zope 3.2.2) with aptitude. Starting a zope3 instance is working, but if I want to add a file, an image or a self-made content object with the ZMI, I get a Traceback like it's reported here [1]

I tried to apply the patch [2] I found, but that failed. I then tried to apply it manually by just modifying the two affected lines.
old: def readline(self):
old:     data =
new: def readline(self, size=None):
new:     data =
That's what I deduced from [1] and [2].

After that the traceback changed a little bit, but adding the objects still fails with the following output:
2007-01-03T18:46:37 ERROR SiteError http://localhost:9673
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/zope/publisher/", line 131, in publish
File "/usr/lib/python2.4/site-packages/zope/publisher/", line 255, in processInputs
    fs = FieldStorage(fp=fp, environ=self._environ, keep_blank_values=1)
  File "", line 530, in __init__
    self.read_multi(environ, keep_blank_values, strict_parsing)
  File "", line 650, in read_multi
    environ, keep_blank_values, strict_parsing)
  File "", line 532, in __init__
  File "", line 665, in read_single
  File "", line 687, in read_lines
  File "", line 715, in read_lines_to_outerboundary
    line = self.fp.readline(1<<16)
File "/usr/lib/zope3/lib/python/zope/publisher/", line 205, in readline
    data =
TypeError: readline() takes exactly 1 argument (2 given)

As you can see, the traceback is pretty similar to the one before I changed those two lines. I don't really know, what to do because I don't deem myself able to fix that on my own by changing the affected python code.

Does anone know that problem or has a clue what to do? I would appreciate every hint.

Thanks in advance,


[1] (bottom of the page)
Zope3-users mailing list

Zope3-users mailing list

Reply via email to