[python-win32] [Newbie] KeyError: '__str__'
Matteo Villari
villari at studenti.unina.it
Thu May 5 15:57:59 CEST 2005
Hi.
I'm not intended to learn Python actually but i have a little problem. I
have to run a Python script under my Apache/win32 server. After solved
some problems now the script runs but doesn't work
properly. That's the output error
Traceback (most recent call last):
File "C:/Programmi/Apache Group/Apache2/cgi-bin/cacheability.py",
line 901, in cgi_wrap
cgi_main()
File "C:/Programmi/Apache Group/Apache2/cgi-bin/cacheability.py",
line 870, in cgi_main
print "
", f, "
"
File "C:/Programmi/Apache Group/Apache2/cgi-bin/cacheability.py",
line 111, in __repr__
p(" %s\n" % (self._hdrs.get('Cache-Control', " " + self.no_data)))
File "C:\Programmi\Apache Group\Apache2\cgi-bin\httpheadertypes.py",
line 280, in __getattr__
return self.__dict__[attr]
KeyError: '__str__'
The script is the cacheability engine by mnot
(http://www.mnot.net/cacheability/) and i have no idea to how to solve
this problem. Thank you very much for your patience, Matteo Villari
More information about the Python-win32
mailing list