[Twisted-web] twisted-web2 demo.py 'GATEWAY_INTERFACE' error
jmontanez at gorilla3d.com
Tue May 2 23:31:01 CDT 2006
I had the same problem. Reason is those sources are outdated while the
documentation is a little newer. Download the CVS Version and compile.
Also as a side note I tried to python setup.py all install and it didn't
install my web2, I had to copy it over to my site-packaged. I wrote a
little journal just deal with twisted in general. take a look:
Lenny G Arbage wrote:
> I just downloaded the latest web2 (0.1.0) and tried to
> run the demo:
>> python demo.py
> Traceback (most recent call last):
> File "demo.py", line 156, in ?
> line 272, in startCGI
> line 231, in __init__
> cgi_vers =
> File "/usr/lib/python2.4/UserDict.py", line 17, in
> def __getitem__(self, key): return self.data[key]
> KeyError: 'GATEWAY_INTERFACE'
> I don't see others reporting the same problem, so I
> must be doing something silly. After looking through
> cgichannel.py, it appears that I'm supposed to have a
> "GATEWAY_INTERFACE" defined in my environment.
> Looking at parseVersion in http.py, it is apparent
> that this env variable needs to be of the format
> "something/somethingelse," but I have no idea what...
> Any help?
> (I can't seem to get demo.py to run through twistd,
> Lenny G.
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
developer at gorilla3d.com
826 Normark Ter 3
Vista, Ca 92084
More information about the Twisted-web