[Zope] Problem setting up Ultraseek DA

John Lawson jlawson@dundeecity.gov.uk
23 Apr 2001 13:45:00 -0000


Hello everyone,

Has anybody had any success integrating the Inktomi search engine with a Zo=
pe
application=3F

I have been trying   to use the Ultraseek DA product, without much success.

Creating  an Ultaseek DA object fails with  "An error occurred=20connecting=
 to
the server. " message.
 After debugging UltraseekDA.py, I found a  problem with   the following
statement;

data=3Dmarshal.loads(data)   (line 135)

I  have included a small python program  along with it's output which
demonstrates the=20problem (I think).

Regards,

John Lawson



import marshal
import httplib
h =3D httplib.HTTP('proxy:8765')
h.putrequest('GET', '/da/config.html')
h.putheader('Accept', '*/*')
h.endheaders()
errcode, errmsg, headers =3D h.getreply()
f =3D h.getfile()
data =3D f.read() #get the  marshalled data
f.close()
print headers
data=3Dmarshal.loads(data)


>>>
Server: Inktomi Search 4.1.0
Date: Mon, 23 Apr 2001 12:25:46 GMT
Content-type: application/x-python-marshal
Content-length: 41473

Traceback (innermost last):
  File "C:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py",=
 line
301, in RunScript
    exec codeObject in =5F=5Fmain=5F=5F.=5F=5Fdict=5F=5F
  File "C:\Program Files\Python\ultraseek=5Ftest.py", line 12, in =3F
    f.close()
ValueError: bad marshal data
>>>