On 26 March 2013 14:09, Steve Engledow steve@offend.me.uk wrote:
Is there a /home/mark/Dropbox/Projects/Python/eventlet.pyc by any chance?
Thanks but I worked out just before you told me, so that counts as progress, right??
OK, so I'm now using the examples exactly as provided now that I've found them in /usr/share/doc/python-eventlet/examples
Still running the same example (now called websocket_chat.py), it correctly runs and when I connect with my browser it serves websocket_chat.html to it, which then prompts the browser to attempt to open a websocket. This seems to be generating an error, as reported by the python script:
------------------------ $ python websocket_chat.py
Visit http://localhost:7000/ in your websocket-capable browser.
(26573) wsgi starting up on http://127.0.0.1:7000/ (26573) accepted ('127.0.0.1', 49733) 127.0.0.1 - - [26/Mar/2013 14:25:59] "GET / HTTP/1.1" 200 940 0.000161 (26573) accepted ('127.0.0.1', 49735) 127.0.0.1 - - [26/Mar/2013 14:25:59] "GET /favicon.ico HTTP/1.1" 200 940 0.000210 127.0.0.1 - - [26/Mar/2013 14:25:59] "GET /chat HTTP/1.1" 400 103 0.000094 ------------------------
Note the 400 response which I assume in this context is an error, at "return handle(environ, start_response)". Certainly the chat doesn't seem to work. Again I've tried this on a couple of PCs so is this something equally daft on my part or do I need to dig deeper this time?