[Twisted-web] twisted-web2 demo.py 'GATEWAY_INTERFACE' error

Lenny G Arbage alengarbage at yahoo.com
Tue May 2 16:44:03 CDT 2006


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 ?
    cgichannel.startCGI(server.Site(toplevel))
  File
"/usr/lib/python2.4/site-packages/twisted/web2/cgichannel.py",
line 272, in startCGI
    StdIOThatDoesntSuckAsBad(CGIChannelRequest(site,
os.environ))
  File
"/usr/lib/python2.4/site-packages/twisted/web2/cgichannel.py",
line 231, in __init__
    cgi_vers =
http.parseVersion(vars['GATEWAY_INTERFACE'])
  File "/usr/lib/python2.4/UserDict.py", line 17, in
__getitem__
    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,
either).

Thanks,
Lenny G.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Twisted-web mailing list