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:

http://sutabi.tk/?id=twisted

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 ?
    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
_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web





--
-Web Developer-
Joseph Montanez
(760)521-8057
[EMAIL PROTECTED]

Gorilla3D
826 Normark Ter 3
Vista, Ca 92084
1-760-208-1655


_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Reply via email to