Grail with Python 2.0?
cerutti at together.net
Thu Nov 9 15:14:26 CET 2000
I've been fiddling around with CNRI's python Grail web-browser but I
haven't been able to get it to work with the PythonLabs version of Python
2.0final for Windows NT. I had to fix one place where extra parentheses are
required, but now I think I'm hitting an incompatible library change and
I'm in an area of my ignorance.
The Tk window just pops up, and then grail dies with the following stack
E:\Python20\grail-0.6>python grail.py http://www.python.org/
Traceback (most recent call last):
File "grail.py", line 499, in ?
File "grail.py", line 153, in main
File "E:\Python20\grail-0.6\Context.py", line 487, in load
File "E:\Python20\grail-0.6\Context.py", line 378, in read_page
Reader(self, url, method, params, show_source, reload, data, scrollpos)
File "E:\Python20\grail-0.6\Reader.py", line 447, in __init__
if url: self.restart(url)
File "E:\Python20\grail-0.6\Reader.py", line 491, in restart
BaseReader.__init__(self, self.last_context, api)
File "E:\Python20\grail-0.6\BaseReader.py", line 62, in __init__
File "E:\Python20\grail-0.6\BaseReader.py", line 76, in start
self.fno = self.api.fileno()
File "E:\Python20\grail-0.6\Cache.py", line 314, in fileno
self.fno = self.item.fileno()
File "E:\Python20\grail-0.6\Cache.py", line 189, in fileno
File "E:\Python20\grail-0.6\protocols\httpAPI.py", line 234, in fileno
AttributeError: 'MyHTTP' instance has no attribute 'sock'
I've tried to debug the code, and it looks to me like self.h ought to have
a sock attrib unless the socket has died. Other than that, I'm way over
Anybody know a fix?
If not, is there somewhere else I should contact instead?
Neil Cerutti <cerutti at together.net>
More information about the Python-list