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
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).
I haven't worked with Ultraseek in a long, long while - is it possible that you have different Python versions on each end? What Python version does your Ultraseek server use? Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
Brian, Thanks for the prompt response. I can confirm that the Ultraseek server is based on Python 2.0. Is there any way to make this work with Zope/Python 1.5.2? John Brian Lloyd (23/04/01 13:49):
I haven't worked with Ultraseek in a long, long while - is it possible that you have different Python versions on each end? What Python version does your Ultraseek server use?
Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
Thanks for the prompt response. I can confirm that the Ultraseek server is based on Python 2.0.
Is there any way to make this work with Zope/Python 1.5.2?
Hmm - I bet you are getting back a Unicode object or some other object that marshal understands in 2.0 but not 1.5. I don't know of any real solution for that (other than trying to run your Zope instance under 2.0 - YMMV). Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
participants (2)
-
Brian Lloyd -
John Lawson