-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'module' object has no attribute 'FullLoader' #2298
Comments
FullLoader can't be used in python2.7, find config.py and delete Loader=yaml.FullLoader. |
Hi~ python -m elastalert.elastalert --config /data/elastalert/config.yaml --verbose --rule /data/elastalert/example_rules/prod_dsg.yaml########################################################################### |
In that case what version of Python are you supposed to run? ElastAlert documentation says to use 2.7. |
query syntax or query attributes seems to have some problem, check query itself and the index. Is it a timeseries index including @timestamp inside or someelse |
not sure the problem is led into by python version or someelse such as environment, just found that FullLoader was used since a centain version of elastalert,so this method should work without effecting any function at least so far |
Now, elastalert was installed successfully. Reinstall it,python must uninstall Depend on the package |
you need to install PyYAML using pip |
I ran into the FullLoader message while running
I'm guessing that is why @Evasion added the version to the install command. So, thanks @Evasion ! Would a documentation change or modification of what happens when you run |
Hi,
When I started elastalert,I reported the following error.Can you help me?
python -m elastalert.elastalert --config ./config.yaml --rule ./example_rules/prod_dsg.yaml
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/data/elastalert/elastalert/elastalert.py", line 22, in
from config import get_rule_hashes
File "elastalert/config.py", line 31, in
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'
The text was updated successfully, but these errors were encountered: