出现了什么错误??
这个错误有没有见过 楼主
Traceback (most recent call last):
File "/usr/bin/elastalert-test-rule", line 11, in <module>
load_entry_point('elastalert==0.1.39', 'console_scripts', 'elastalert-test-rule')()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2291, in load
return self.resolve()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python2.7/site-packages/elastalert-0.1.39-py2.7.egg/elastalert/test_rule.py", line 20, in <module>
import elastalert.config
File "/usr/lib/python2.7/site-packages/elastalert-0.1.39-py2.7.egg/elastalert/config.py", line 31, in <module>
rule_schema = jsonschema.Draft4Validator(yaml.load(open(os.path.join(os.path.dirname(__file__), 'schema.yaml')), Loader=yaml.FullLoader))
AttributeError: 'module' object has no attribute 'FullLoader'
elastalert centos7 安装错误问题在centos 7.4 下安装elastalert时候,老出现报错。查来查去原来是setuptools的最新版版本不兼容导致的。安装指定版本即可解决。