On 26 March 2013 13:36, Brett Parker iDunno@sommitrealweird.co.uk wrote:
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...
Told you it was probably a stupid error. However, although I started with eventlet.py as my script I had already tried a different example as eventlet2.py with the same results. I've just renamed to eventlet-test.py with the following results:
$ python eventlet-test.py Traceback (most recent call last): File "eventlet-test.py", line 4, in <module> import eventlet File "/home/mark/Dropbox/Projects/Python/eventlet.py", line 5, in <module> ImportError: cannot import name wsgi
(Paths slightly different this time as test was on a different PC.)
I'm confused as /home/mark/Dropbox/Projects/Python/eventlet.py doesn't exist (not any more, anyway).