mrq: ImportError: No module named coros

故障现象:

运行mrq示例(mrq-run tasks.Fetch url http://www.google.com),报错

[root@web4 test-mrq]# mrq-run tasks.Fetch url http://www.google.com
Traceback (most recent call last):
  File "/bin/mrq-run", line 9, in 
    load_entry_point('mrq==0.1.18', 'console_scripts', 'mrq-run')()
  File "/usr/lib/python2.7/site-packages/mrq/bin/mrq_run.py", line 33, in main
    set_current_config(cfg)
  File "/usr/lib/python2.7/site-packages/mrq/context.py", line 82, in set_current_config
    patch_import()
  File "/usr/lib/python2.7/site-packages/mrq/monkey.py", line 127, in patch_import
    import gevent.coros
  File "/usr/lib64/python2.7/site-packages/gevent/builtins.py", line 93, in __import__
    result = _import(*args, **kwargs)
ImportError: No module named coros

解决方法:

yum install python-gevent

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注