Trying to use requests module in eventlet python2 hit below error.
>>> import eventlet
>>> eventlet.patcher.import_patched('requests')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/eventlet/patcher.py", line 120, in import_patched
*additional_modules + tuple(kw_additional_modules.items()))
File "/usr/lib/python2.7/site-packages/eventlet/patcher.py", line 94, in inject
module = __import__(module_name, {}, {}, module_name.split('.')[:-1])
File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 112, in <module>
from . import utils
ImportError: cannot import name utils
So how why this module can not be patched?
How could we know if one module can be patched?