Hello everyone, Has anybody had any success integrating the Inktomi search engine with a Zope application? I have been trying to use the Ultraseek DA product, without much success. Creating an Ultaseek DA object fails with "An error occurred connecting to the server. " message. After debugging UltraseekDA.py, I found a problem with the following statement; data=marshal.loads(data) (line 135) I have included a small python program along with it's output which demonstrates the problem (I think). Regards, John Lawson import marshal import httplib h = httplib.HTTP('proxy:8765') h.putrequest('GET', '/da/config.html') h.putheader('Accept', '*/*') h.endheaders() errcode, errmsg, headers = h.getreply() f = h.getfile() data = f.read() #get the marshalled data f.close() print headers data=marshal.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 __main__.__dict__ File "C:\Program Files\Python\ultraseek_test.py", line 12, in ? f.close() ValueError: bad marshal data