mbr / tinyrpc

A compact, modular transport and protocol agnostic RPC library. Does jsonrpc v2.
https://tinyrpc.readthedocs.org
MIT License
156 stars 53 forks source link

python http_server_example.py error #56

Closed TXien closed 6 years ago

TXien commented 6 years ago

Traceback (most recent call last): File "http_server_example.py", line 5, in import gevent.wsgi ImportError: No module named wsgi

lnoor commented 6 years ago

Thanks for reporting. I cannot reproduce your report. What version of python and gevent are you using?

python 2.7.9 with gevent 1.0.1 and python 3.4.2 with gevent 1.2.2 do not report this error.

lnoor commented 6 years ago

Kinda weird. I got an email with your reply stating you use python 2.7.12 and 3.5.2.

I suspect the issue is with the gevent version. gevent.wsgi became an alias for gevent.pywsgi some time ago. Perhaps the alias is dropped in your version of gevent.

Can you check if importing gevent.pywsgi instead of gevent.wsgi solves the issue? If so, I can change the code accordingly.

Thanks for helping out. Leo

lnoor commented 6 years ago

suppose its resolved