On 26 Mar 12:44, Mark Rogers wrote:
I'm a programmer, but I'm not a Python programmer, yet. So I'm sure what I'm doing wrong here relates more to my lack of knowledge than anything else...
I'm looking at a Websockets example here: http://eventlet.net/doc/examples.html#websocket-server-example
On my Ubuntu system I have tried: sudo apt-get install python-eventlet (which installs Eventlet 0.12.1, which appears to be the current version)
I then try to run the example and get: $python eventlet.py Traceback (most recent call last): File "eventlet.py", line 1, in <module> import eventlet File "/home/mark/python/eventlet.py", line 4, in <module> from eventlet import wsgi ImportError: cannot import name wsgi
Right - so you've named your local script "eventlet.py"? Erm, well, that's going to then be the "eventlet" namespace, and so you've broken yourself straight off...
So, rename "eventlet.py" to "eventlet-test.py" or similar and try again.
Cheers,